UNPKG

@trimble-oss/trimble-id

Version:

Trimble Identity SDK for JavaScript/ TypeScript

35 lines (31 loc) 959 B
/** * Copyright (c) Trimble Inc. * Licensed under the MIT License. */ 'use strict'; // implements IHttpClientProvider (function (root, factory) { /* istanbul ignore next */ if (typeof define === 'function' && define.amd) { // AMD define(['./HttpClient'], factory); } else if (typeof exports === 'object') { // CommonJS module.exports = factory(require('./HttpClient')); } else { // Browser globals (Note: root is window) root.SimpleHttpClientProvider = factory(root.HttpClient); } }(this, function (HttpClient) { const SimpleHttpClientProvider = function () { // Default constructor }; SimpleHttpClientProvider.prototype.RetrieveClient = function () { const self = this; return new Promise(function (resolve, reject) { resolve(new HttpClient()); }); }; // Exposed public methods return SimpleHttpClientProvider; }));