@icreate/ics-chromely-js-sdk
Advanced tools
Comparing version 0.0.7-beat.2 to 0.0.7-beat.3
@@ -88,3 +88,3 @@ /*! ***************************************************************************** | ||
var _b = _a === void 0 ? {} : _a, _c = _b.headers, headers = _c === void 0 ? {} : _c, fetch = _b.fetch; | ||
this._baseCommandUrl = 'http://command.com/'; | ||
// private _baseCommandUrl: string = 'http://command.com/' | ||
this._baseAjaxUrl = 'http://icreate.com/'; | ||
@@ -145,2 +145,5 @@ this.isChromely = !!window['CefSharp']; | ||
var _a, _b; | ||
if (!_this.isChromely) { | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
var options = __assign(__assign({}, config), opts); | ||
@@ -167,3 +170,3 @@ if (options.headers) { | ||
var res = config | ||
.fetch("" + config._baseAjaxUrl + opts.url, options) | ||
.fetch("" + config._baseAjaxUrl + opts.url.replace(/^\/+/, ''), options) | ||
.then(function (res) { return __awaiter(_this, void 0, void 0, function () { | ||
@@ -170,0 +173,0 @@ var _a, _b, _c, error, body; |
@@ -94,3 +94,3 @@ (function (global, factory) { | ||
var _b = _a === void 0 ? {} : _a, _c = _b.headers, headers = _c === void 0 ? {} : _c, fetch = _b.fetch; | ||
this._baseCommandUrl = 'http://command.com/'; | ||
// private _baseCommandUrl: string = 'http://command.com/' | ||
this._baseAjaxUrl = 'http://icreate.com/'; | ||
@@ -151,2 +151,5 @@ this.isChromely = !!window['CefSharp']; | ||
var _a, _b; | ||
if (!_this.isChromely) { | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
var options = __assign(__assign({}, config), opts); | ||
@@ -173,3 +176,3 @@ if (options.headers) { | ||
var res = config | ||
.fetch("" + config._baseAjaxUrl + opts.url, options) | ||
.fetch("" + config._baseAjaxUrl + opts.url.replace(/^\/+/, ''), options) | ||
.then(function (res) { return __awaiter(_this, void 0, void 0, function () { | ||
@@ -176,0 +179,0 @@ var _a, _b, _c, error, body; |
@@ -55,3 +55,3 @@ "use strict"; | ||
var _b = _a === void 0 ? {} : _a, _c = _b.headers, headers = _c === void 0 ? {} : _c, fetch = _b.fetch; | ||
this._baseCommandUrl = 'http://command.com/'; | ||
// private _baseCommandUrl: string = 'http://command.com/' | ||
this._baseAjaxUrl = 'http://icreate.com/'; | ||
@@ -112,2 +112,5 @@ this.isChromely = !!window['CefSharp']; | ||
var _a, _b; | ||
if (!_this.isChromely) { | ||
return Promise.reject('浏览器下暂时不支持,正在适配中...'); | ||
} | ||
var options = __assign(__assign({}, config), opts); | ||
@@ -134,3 +137,3 @@ if (options.headers) { | ||
var res = config | ||
.fetch("" + config._baseAjaxUrl + opts.url, options) | ||
.fetch("" + config._baseAjaxUrl + opts.url.replace(/^\/+/, ''), options) | ||
.then(function (res) { return __awaiter(_this, void 0, void 0, function () { | ||
@@ -137,0 +140,0 @@ var _a, _b, _c, error, body; |
import InterceptorManager from './lib/Interceptor-manage'; | ||
import { IMedxResponse } from './interfaces/interfaces'; | ||
declare class IcsChromelyClient { | ||
private _baseCommandUrl; | ||
private _baseAjaxUrl; | ||
@@ -6,0 +5,0 @@ isChromely: boolean; |
{ | ||
"name": "@icreate/ics-chromely-js-sdk", | ||
"version": "0.0.7-beat.2", | ||
"version": "0.0.7-beat.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73170
764