UNPKG

@trimble-oss/trimble-id

Version:

Trimble Identity SDK for JavaScript/ TypeScript

28 lines (25 loc) 845 B
'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) { var SimpleHttpClientProvider = function () {}; SimpleHttpClientProvider.prototype.RetrieveClient = function () { var self = this; return new Promise(function (resolve, reject) { resolve(new HttpClient()); }); }; // Exposed public methods return SimpleHttpClientProvider; }));