backendless 7.0.4 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/backendless.js +302 -84
- package/dist/backendless.js.map +1 -1
- package/dist/backendless.min.js +2 -2
- package/package.json +4 -4
package/dist/backendless.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ********************************************************************************************************************
|
|
3
|
-
* Backendless SDK for JavaScript. Version: 7.0
|
|
3
|
+
* Backendless SDK for JavaScript. Version: 7.1.0
|
|
4
4
|
*
|
|
5
5
|
* Copyright 2012-2023 BACKENDLESS.COM. All Rights Reserved.
|
|
6
6
|
*
|
|
@@ -12256,34 +12256,57 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
12256
12256
|
/***/ (function(module, exports, __webpack_require__) {
|
|
12257
12257
|
|
|
12258
12258
|
"use strict";
|
|
12259
|
-
|
|
12259
|
+
/* WEBPACK VAR INJECTION */(function(process) {
|
|
12260
12260
|
|
|
12261
12261
|
Object.defineProperty(exports, "__esModule", {
|
|
12262
12262
|
value: true
|
|
12263
12263
|
});
|
|
12264
|
-
exports.
|
|
12265
|
-
|
|
12264
|
+
exports.castArray = void 0;
|
|
12265
|
+
exports.getFormData = getFormData;
|
|
12266
|
+
exports.isStream = exports.isObject = exports.isNodeJS = exports.isFormData = exports.isBrowser = void 0;
|
|
12267
|
+
exports.setFormData = setFormData;
|
|
12268
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
12266
12269
|
/**
|
|
12267
12270
|
* Casts `value` as an array if it's not one.
|
|
12268
12271
|
* Equvivalent to lodash/castArray
|
|
12269
12272
|
*/
|
|
12270
|
-
var castArray = function castArray(value) {
|
|
12273
|
+
var castArray = exports.castArray = function castArray(value) {
|
|
12271
12274
|
return Array.isArray(value) ? value : [value];
|
|
12272
12275
|
};
|
|
12273
|
-
exports.
|
|
12274
|
-
var isObject = function isObject(value) {
|
|
12276
|
+
var isObject = exports.isObject = function isObject(value) {
|
|
12275
12277
|
return null != value && _typeof(value) === 'object';
|
|
12276
12278
|
};
|
|
12277
|
-
exports.
|
|
12278
|
-
|
|
12279
|
+
var isFormData = exports.isFormData = function isFormData(value) {
|
|
12280
|
+
if (!value) {
|
|
12281
|
+
return false;
|
|
12282
|
+
}
|
|
12283
|
+
var FormData = getFormData();
|
|
12284
|
+
if (value instanceof FormData) {
|
|
12285
|
+
return true;
|
|
12286
|
+
}
|
|
12279
12287
|
return value && value.constructor && value.constructor.toString().trim().indexOf('function FormData') === 0;
|
|
12280
12288
|
};
|
|
12281
|
-
exports.
|
|
12282
|
-
var
|
|
12283
|
-
var stream = __webpack_require__(5);
|
|
12289
|
+
var isStream = exports.isStream = function isStream(value) {
|
|
12290
|
+
var stream = __webpack_require__(6);
|
|
12284
12291
|
return value instanceof stream.Stream;
|
|
12285
12292
|
};
|
|
12286
|
-
exports.
|
|
12293
|
+
var isNodeJS = exports.isNodeJS = function isNodeJS() {
|
|
12294
|
+
return typeof process !== 'undefined' && process.versions != null && process.versions.node != null;
|
|
12295
|
+
};
|
|
12296
|
+
var isBrowser = exports.isBrowser = function isBrowser() {
|
|
12297
|
+
return typeof window !== 'undefined' && typeof window.document !== 'undefined';
|
|
12298
|
+
};
|
|
12299
|
+
var CustomFormData = null;
|
|
12300
|
+
function getFormData() {
|
|
12301
|
+
if (CustomFormData) {
|
|
12302
|
+
return CustomFormData;
|
|
12303
|
+
}
|
|
12304
|
+
return isNodeJS() || typeof FormData === 'undefined' ? __webpack_require__(7) : FormData;
|
|
12305
|
+
}
|
|
12306
|
+
function setFormData(value) {
|
|
12307
|
+
CustomFormData = value;
|
|
12308
|
+
}
|
|
12309
|
+
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))
|
|
12287
12310
|
|
|
12288
12311
|
/***/ }),
|
|
12289
12312
|
/* 1 */
|
|
@@ -12298,25 +12321,27 @@ throw new Error('This Backendless JS SDK assembly is not intended for Node.js en
|
|
|
12298
12321
|
"use strict";
|
|
12299
12322
|
|
|
12300
12323
|
|
|
12301
|
-
function _typeof(
|
|
12324
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
12302
12325
|
Object.defineProperty(exports, "__esModule", {
|
|
12303
12326
|
value: true
|
|
12304
12327
|
});
|
|
12305
12328
|
exports.Request = void 0;
|
|
12306
|
-
var _cache = __webpack_require__(
|
|
12307
|
-
var _eventEmitter = _interopRequireDefault(__webpack_require__(
|
|
12308
|
-
var qs = _interopRequireWildcard(__webpack_require__(
|
|
12329
|
+
var _cache = __webpack_require__(12);
|
|
12330
|
+
var _eventEmitter = _interopRequireDefault(__webpack_require__(13));
|
|
12331
|
+
var qs = _interopRequireWildcard(__webpack_require__(14));
|
|
12309
12332
|
var _utils = __webpack_require__(0);
|
|
12310
|
-
var _error = __webpack_require__(
|
|
12333
|
+
var _error = __webpack_require__(15);
|
|
12311
12334
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12312
12335
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
12313
12336
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12314
|
-
function ownKeys(
|
|
12315
|
-
function _objectSpread(
|
|
12316
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
12337
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12338
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12339
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
12317
12340
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12318
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
12341
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
12319
12342
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
12343
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
12344
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
12320
12345
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
12321
12346
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
12322
12347
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
@@ -12329,7 +12354,7 @@ var REQUEST_EVENT = 'request';
|
|
|
12329
12354
|
var RESPONSE_EVENT = 'response';
|
|
12330
12355
|
var ERROR_EVENT = 'error';
|
|
12331
12356
|
var DONE_EVENT = 'done';
|
|
12332
|
-
var Request = /*#__PURE__*/function (_EventEmitter) {
|
|
12357
|
+
var Request = exports.Request = /*#__PURE__*/function (_EventEmitter) {
|
|
12333
12358
|
_inherits(Request, _EventEmitter);
|
|
12334
12359
|
var _super = _createSuper(Request);
|
|
12335
12360
|
function Request(path, method, body) {
|
|
@@ -12401,30 +12426,27 @@ var Request = /*#__PURE__*/function (_EventEmitter) {
|
|
|
12401
12426
|
}, {
|
|
12402
12427
|
key: "form",
|
|
12403
12428
|
value: function form(_form) {
|
|
12404
|
-
var _this2 = this;
|
|
12405
12429
|
if (_form) {
|
|
12406
12430
|
var FormData = Request.FormData;
|
|
12407
12431
|
if (_form instanceof FormData) {
|
|
12408
12432
|
this.body = _form;
|
|
12409
12433
|
} else {
|
|
12410
|
-
|
|
12411
|
-
|
|
12412
|
-
|
|
12413
|
-
|
|
12414
|
-
(
|
|
12415
|
-
|
|
12416
|
-
|
|
12417
|
-
|
|
12418
|
-
|
|
12419
|
-
|
|
12420
|
-
});
|
|
12421
|
-
}
|
|
12422
|
-
};
|
|
12423
|
-
for (var formKey in _form) {
|
|
12424
|
-
_loop(formKey);
|
|
12434
|
+
var formData = new FormData();
|
|
12435
|
+
var _loop = function _loop(formKey) {
|
|
12436
|
+
if (formKey) {
|
|
12437
|
+
(0, _utils.castArray)(_form[formKey]).forEach(function (formValue) {
|
|
12438
|
+
if (formValue && formValue.hasOwnProperty('value') && formValue.hasOwnProperty('options')) {
|
|
12439
|
+
formData.append(formKey, formValue.value, formValue.options);
|
|
12440
|
+
} else {
|
|
12441
|
+
formData.append(formKey, formValue);
|
|
12442
|
+
}
|
|
12443
|
+
});
|
|
12425
12444
|
}
|
|
12426
|
-
|
|
12427
|
-
|
|
12445
|
+
};
|
|
12446
|
+
for (var formKey in _form) {
|
|
12447
|
+
_loop(formKey);
|
|
12448
|
+
}
|
|
12449
|
+
this.body = formData;
|
|
12428
12450
|
}
|
|
12429
12451
|
}
|
|
12430
12452
|
return this;
|
|
@@ -12532,7 +12554,7 @@ var Request = /*#__PURE__*/function (_EventEmitter) {
|
|
|
12532
12554
|
}, {
|
|
12533
12555
|
key: "send",
|
|
12534
12556
|
value: function send(body) {
|
|
12535
|
-
var
|
|
12557
|
+
var _this2 = this;
|
|
12536
12558
|
this.emit(REQUEST_EVENT, this);
|
|
12537
12559
|
var path = this.path;
|
|
12538
12560
|
var queryString = qs.stringify(this.queryParams);
|
|
@@ -12554,15 +12576,15 @@ var Request = /*#__PURE__*/function (_EventEmitter) {
|
|
|
12554
12576
|
body = isJSON && typeof body !== 'string' ? JSON.stringify(body) : body;
|
|
12555
12577
|
}
|
|
12556
12578
|
var unwrapBody = function unwrapBody(res) {
|
|
12557
|
-
return
|
|
12579
|
+
return _this2.unwrap ? res.body : res;
|
|
12558
12580
|
};
|
|
12559
12581
|
|
|
12560
12582
|
/**
|
|
12561
12583
|
* Caches the response if required
|
|
12562
12584
|
*/
|
|
12563
12585
|
var cacheResponse = function cacheResponse(res) {
|
|
12564
|
-
if (
|
|
12565
|
-
_cache.cache.set(path, res,
|
|
12586
|
+
if (_this2.cacheTTL) {
|
|
12587
|
+
_cache.cache.set(path, res, _this2.tags, _this2.cacheTTL);
|
|
12566
12588
|
}
|
|
12567
12589
|
return res;
|
|
12568
12590
|
};
|
|
@@ -12571,8 +12593,8 @@ var Request = /*#__PURE__*/function (_EventEmitter) {
|
|
|
12571
12593
|
* Deletes all relevant to req.cacheTags keys from the cache if this request method is not GET
|
|
12572
12594
|
*/
|
|
12573
12595
|
var flushCache = function flushCache(res) {
|
|
12574
|
-
if (
|
|
12575
|
-
_cache.cache.deleteByTags(
|
|
12596
|
+
if (_this2.tags && _this2.method !== 'get') {
|
|
12597
|
+
_cache.cache.deleteByTags(_this2.tags);
|
|
12576
12598
|
}
|
|
12577
12599
|
return res;
|
|
12578
12600
|
};
|
|
@@ -12582,11 +12604,11 @@ var Request = /*#__PURE__*/function (_EventEmitter) {
|
|
|
12582
12604
|
var withCredentials = typeof this.withCredentials === 'boolean' ? this.withCredentials : Request.withCredentials;
|
|
12583
12605
|
var request = Request.send(path, this.method.toUpperCase(), this.headers, body, this.encoding, this.timeout, withCredentials).then(parseBody).then(checkStatus).then(unwrapBody).then(cacheResponse).then(flushCache);
|
|
12584
12606
|
request.then(function (result) {
|
|
12585
|
-
|
|
12586
|
-
|
|
12607
|
+
_this2.emit(RESPONSE_EVENT, result);
|
|
12608
|
+
_this2.emit(DONE_EVENT, null, result);
|
|
12587
12609
|
})["catch"](function (error) {
|
|
12588
|
-
|
|
12589
|
-
|
|
12610
|
+
_this2.emit(ERROR_EVENT, error);
|
|
12611
|
+
_this2.emit(DONE_EVENT, error);
|
|
12590
12612
|
});
|
|
12591
12613
|
return request;
|
|
12592
12614
|
}
|
|
@@ -12618,7 +12640,6 @@ var Request = /*#__PURE__*/function (_EventEmitter) {
|
|
|
12618
12640
|
}]);
|
|
12619
12641
|
return Request;
|
|
12620
12642
|
}(_eventEmitter["default"]);
|
|
12621
|
-
exports.Request = Request;
|
|
12622
12643
|
function parseBody(res) {
|
|
12623
12644
|
try {
|
|
12624
12645
|
return _objectSpread(_objectSpread({}, res), {}, {
|
|
@@ -12655,11 +12676,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
12655
12676
|
});
|
|
12656
12677
|
exports["default"] = void 0;
|
|
12657
12678
|
var _clientNode = __webpack_require__(4);
|
|
12658
|
-
var _clientBrowser = __webpack_require__(
|
|
12679
|
+
var _clientBrowser = __webpack_require__(11);
|
|
12659
12680
|
var _request = __webpack_require__(2);
|
|
12681
|
+
var _utils = __webpack_require__(0);
|
|
12660
12682
|
Object.defineProperty(_request.Request, 'FormData', {
|
|
12661
12683
|
get: function get() {
|
|
12662
|
-
return
|
|
12684
|
+
return (0, _utils.getFormData)();
|
|
12685
|
+
},
|
|
12686
|
+
set: function set(value) {
|
|
12687
|
+
(0, _utils.setFormData)(value);
|
|
12663
12688
|
}
|
|
12664
12689
|
});
|
|
12665
12690
|
_request.Request.XMLHttpRequest = typeof XMLHttpRequest !== 'undefined' ? XMLHttpRequest : undefined;
|
|
@@ -12676,8 +12701,7 @@ _request.Request.methods.forEach(function (method) {
|
|
|
12676
12701
|
};
|
|
12677
12702
|
});
|
|
12678
12703
|
exports = module.exports = _request.Request;
|
|
12679
|
-
var _default = _request.Request;
|
|
12680
|
-
exports["default"] = _default;
|
|
12704
|
+
var _default = exports["default"] = _request.Request;
|
|
12681
12705
|
|
|
12682
12706
|
/***/ }),
|
|
12683
12707
|
/* 4 */
|
|
@@ -12693,7 +12717,7 @@ exports.sendNodeAPIRequest = sendNodeAPIRequest;
|
|
|
12693
12717
|
var _utils = __webpack_require__(0);
|
|
12694
12718
|
function sendNodeAPIRequest(path, method, headers, body, encoding, timeout, withCredentials) {
|
|
12695
12719
|
return new Promise(function (resolve, reject) {
|
|
12696
|
-
var u = __webpack_require__(
|
|
12720
|
+
var u = __webpack_require__(8).parse(path);
|
|
12697
12721
|
var form = (0, _utils.isFormData)(body) && body;
|
|
12698
12722
|
var https = u.protocol === 'https:';
|
|
12699
12723
|
var options = {
|
|
@@ -12709,7 +12733,7 @@ function sendNodeAPIRequest(path, method, headers, body, encoding, timeout, with
|
|
|
12709
12733
|
}
|
|
12710
12734
|
var _send = function _send() {
|
|
12711
12735
|
var Buffer = __webpack_require__(1).Buffer;
|
|
12712
|
-
var httpClient = __webpack_require__(https ?
|
|
12736
|
+
var httpClient = __webpack_require__(https ? 9 : 10);
|
|
12713
12737
|
var req = httpClient.request(options, function (res) {
|
|
12714
12738
|
var strings = [];
|
|
12715
12739
|
var buffers = [];
|
|
@@ -12779,7 +12803,191 @@ function sendNodeAPIRequest(path, method, headers, body, encoding, timeout, with
|
|
|
12779
12803
|
/* 5 */
|
|
12780
12804
|
/***/ (function(module, exports) {
|
|
12781
12805
|
|
|
12782
|
-
|
|
12806
|
+
// shim for using process in browser
|
|
12807
|
+
var process = module.exports = {};
|
|
12808
|
+
|
|
12809
|
+
// cached from whatever global is present so that test runners that stub it
|
|
12810
|
+
// don't break things. But we need to wrap it in a try catch in case it is
|
|
12811
|
+
// wrapped in strict mode code which doesn't define any globals. It's inside a
|
|
12812
|
+
// function because try/catches deoptimize in certain engines.
|
|
12813
|
+
|
|
12814
|
+
var cachedSetTimeout;
|
|
12815
|
+
var cachedClearTimeout;
|
|
12816
|
+
|
|
12817
|
+
function defaultSetTimout() {
|
|
12818
|
+
throw new Error('setTimeout has not been defined');
|
|
12819
|
+
}
|
|
12820
|
+
function defaultClearTimeout () {
|
|
12821
|
+
throw new Error('clearTimeout has not been defined');
|
|
12822
|
+
}
|
|
12823
|
+
(function () {
|
|
12824
|
+
try {
|
|
12825
|
+
if (typeof setTimeout === 'function') {
|
|
12826
|
+
cachedSetTimeout = setTimeout;
|
|
12827
|
+
} else {
|
|
12828
|
+
cachedSetTimeout = defaultSetTimout;
|
|
12829
|
+
}
|
|
12830
|
+
} catch (e) {
|
|
12831
|
+
cachedSetTimeout = defaultSetTimout;
|
|
12832
|
+
}
|
|
12833
|
+
try {
|
|
12834
|
+
if (typeof clearTimeout === 'function') {
|
|
12835
|
+
cachedClearTimeout = clearTimeout;
|
|
12836
|
+
} else {
|
|
12837
|
+
cachedClearTimeout = defaultClearTimeout;
|
|
12838
|
+
}
|
|
12839
|
+
} catch (e) {
|
|
12840
|
+
cachedClearTimeout = defaultClearTimeout;
|
|
12841
|
+
}
|
|
12842
|
+
} ())
|
|
12843
|
+
function runTimeout(fun) {
|
|
12844
|
+
if (cachedSetTimeout === setTimeout) {
|
|
12845
|
+
//normal enviroments in sane situations
|
|
12846
|
+
return setTimeout(fun, 0);
|
|
12847
|
+
}
|
|
12848
|
+
// if setTimeout wasn't available but was latter defined
|
|
12849
|
+
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
|
|
12850
|
+
cachedSetTimeout = setTimeout;
|
|
12851
|
+
return setTimeout(fun, 0);
|
|
12852
|
+
}
|
|
12853
|
+
try {
|
|
12854
|
+
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
12855
|
+
return cachedSetTimeout(fun, 0);
|
|
12856
|
+
} catch(e){
|
|
12857
|
+
try {
|
|
12858
|
+
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
12859
|
+
return cachedSetTimeout.call(null, fun, 0);
|
|
12860
|
+
} catch(e){
|
|
12861
|
+
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
|
|
12862
|
+
return cachedSetTimeout.call(this, fun, 0);
|
|
12863
|
+
}
|
|
12864
|
+
}
|
|
12865
|
+
|
|
12866
|
+
|
|
12867
|
+
}
|
|
12868
|
+
function runClearTimeout(marker) {
|
|
12869
|
+
if (cachedClearTimeout === clearTimeout) {
|
|
12870
|
+
//normal enviroments in sane situations
|
|
12871
|
+
return clearTimeout(marker);
|
|
12872
|
+
}
|
|
12873
|
+
// if clearTimeout wasn't available but was latter defined
|
|
12874
|
+
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
|
|
12875
|
+
cachedClearTimeout = clearTimeout;
|
|
12876
|
+
return clearTimeout(marker);
|
|
12877
|
+
}
|
|
12878
|
+
try {
|
|
12879
|
+
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
12880
|
+
return cachedClearTimeout(marker);
|
|
12881
|
+
} catch (e){
|
|
12882
|
+
try {
|
|
12883
|
+
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
12884
|
+
return cachedClearTimeout.call(null, marker);
|
|
12885
|
+
} catch (e){
|
|
12886
|
+
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
|
|
12887
|
+
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
|
12888
|
+
return cachedClearTimeout.call(this, marker);
|
|
12889
|
+
}
|
|
12890
|
+
}
|
|
12891
|
+
|
|
12892
|
+
|
|
12893
|
+
|
|
12894
|
+
}
|
|
12895
|
+
var queue = [];
|
|
12896
|
+
var draining = false;
|
|
12897
|
+
var currentQueue;
|
|
12898
|
+
var queueIndex = -1;
|
|
12899
|
+
|
|
12900
|
+
function cleanUpNextTick() {
|
|
12901
|
+
if (!draining || !currentQueue) {
|
|
12902
|
+
return;
|
|
12903
|
+
}
|
|
12904
|
+
draining = false;
|
|
12905
|
+
if (currentQueue.length) {
|
|
12906
|
+
queue = currentQueue.concat(queue);
|
|
12907
|
+
} else {
|
|
12908
|
+
queueIndex = -1;
|
|
12909
|
+
}
|
|
12910
|
+
if (queue.length) {
|
|
12911
|
+
drainQueue();
|
|
12912
|
+
}
|
|
12913
|
+
}
|
|
12914
|
+
|
|
12915
|
+
function drainQueue() {
|
|
12916
|
+
if (draining) {
|
|
12917
|
+
return;
|
|
12918
|
+
}
|
|
12919
|
+
var timeout = runTimeout(cleanUpNextTick);
|
|
12920
|
+
draining = true;
|
|
12921
|
+
|
|
12922
|
+
var len = queue.length;
|
|
12923
|
+
while(len) {
|
|
12924
|
+
currentQueue = queue;
|
|
12925
|
+
queue = [];
|
|
12926
|
+
while (++queueIndex < len) {
|
|
12927
|
+
if (currentQueue) {
|
|
12928
|
+
currentQueue[queueIndex].run();
|
|
12929
|
+
}
|
|
12930
|
+
}
|
|
12931
|
+
queueIndex = -1;
|
|
12932
|
+
len = queue.length;
|
|
12933
|
+
}
|
|
12934
|
+
currentQueue = null;
|
|
12935
|
+
draining = false;
|
|
12936
|
+
runClearTimeout(timeout);
|
|
12937
|
+
}
|
|
12938
|
+
|
|
12939
|
+
process.nextTick = function (fun) {
|
|
12940
|
+
var args = new Array(arguments.length - 1);
|
|
12941
|
+
if (arguments.length > 1) {
|
|
12942
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
12943
|
+
args[i - 1] = arguments[i];
|
|
12944
|
+
}
|
|
12945
|
+
}
|
|
12946
|
+
queue.push(new Item(fun, args));
|
|
12947
|
+
if (queue.length === 1 && !draining) {
|
|
12948
|
+
runTimeout(drainQueue);
|
|
12949
|
+
}
|
|
12950
|
+
};
|
|
12951
|
+
|
|
12952
|
+
// v8 likes predictible objects
|
|
12953
|
+
function Item(fun, array) {
|
|
12954
|
+
this.fun = fun;
|
|
12955
|
+
this.array = array;
|
|
12956
|
+
}
|
|
12957
|
+
Item.prototype.run = function () {
|
|
12958
|
+
this.fun.apply(null, this.array);
|
|
12959
|
+
};
|
|
12960
|
+
process.title = 'browser';
|
|
12961
|
+
process.browser = true;
|
|
12962
|
+
process.env = {};
|
|
12963
|
+
process.argv = [];
|
|
12964
|
+
process.version = ''; // empty string to avoid regexp issues
|
|
12965
|
+
process.versions = {};
|
|
12966
|
+
|
|
12967
|
+
function noop() {}
|
|
12968
|
+
|
|
12969
|
+
process.on = noop;
|
|
12970
|
+
process.addListener = noop;
|
|
12971
|
+
process.once = noop;
|
|
12972
|
+
process.off = noop;
|
|
12973
|
+
process.removeListener = noop;
|
|
12974
|
+
process.removeAllListeners = noop;
|
|
12975
|
+
process.emit = noop;
|
|
12976
|
+
process.prependListener = noop;
|
|
12977
|
+
process.prependOnceListener = noop;
|
|
12978
|
+
|
|
12979
|
+
process.listeners = function (name) { return [] }
|
|
12980
|
+
|
|
12981
|
+
process.binding = function (name) {
|
|
12982
|
+
throw new Error('process.binding is not supported');
|
|
12983
|
+
};
|
|
12984
|
+
|
|
12985
|
+
process.cwd = function () { return '/' };
|
|
12986
|
+
process.chdir = function (dir) {
|
|
12987
|
+
throw new Error('process.chdir is not supported');
|
|
12988
|
+
};
|
|
12989
|
+
process.umask = function() { return 0; };
|
|
12990
|
+
|
|
12783
12991
|
|
|
12784
12992
|
/***/ }),
|
|
12785
12993
|
/* 6 */
|
|
@@ -12801,6 +13009,18 @@ throw new Error('This Backendless JS SDK assembly is not intended for Node.js en
|
|
|
12801
13009
|
|
|
12802
13010
|
/***/ }),
|
|
12803
13011
|
/* 9 */
|
|
13012
|
+
/***/ (function(module, exports) {
|
|
13013
|
+
|
|
13014
|
+
throw new Error('This Backendless JS SDK assembly is not intended for Node.js environment. You should use "lib" folder modules instead. For any questions please contact as at http://support.backendless.com/')
|
|
13015
|
+
|
|
13016
|
+
/***/ }),
|
|
13017
|
+
/* 10 */
|
|
13018
|
+
/***/ (function(module, exports) {
|
|
13019
|
+
|
|
13020
|
+
throw new Error('This Backendless JS SDK assembly is not intended for Node.js environment. You should use "lib" folder modules instead. For any questions please contact as at http://support.backendless.com/')
|
|
13021
|
+
|
|
13022
|
+
/***/ }),
|
|
13023
|
+
/* 11 */
|
|
12804
13024
|
/***/ (function(module, exports, __webpack_require__) {
|
|
12805
13025
|
|
|
12806
13026
|
"use strict";
|
|
@@ -12871,7 +13091,7 @@ function parseHeaders(headersString) {
|
|
|
12871
13091
|
}
|
|
12872
13092
|
|
|
12873
13093
|
/***/ }),
|
|
12874
|
-
/*
|
|
13094
|
+
/* 12 */
|
|
12875
13095
|
/***/ (function(module, exports, __webpack_require__) {
|
|
12876
13096
|
|
|
12877
13097
|
"use strict";
|
|
@@ -12881,16 +13101,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
12881
13101
|
value: true
|
|
12882
13102
|
});
|
|
12883
13103
|
exports.cache = void 0;
|
|
13104
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
12884
13105
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
12885
13106
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
12886
|
-
function _iterableToArrayLimit(
|
|
13107
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12887
13108
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12888
|
-
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(
|
|
13109
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
12889
13110
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
12890
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
13111
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
12891
13112
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12892
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
13113
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
12893
13114
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13115
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
13116
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
12894
13117
|
/**
|
|
12895
13118
|
* @typedef {Object} CacheItem
|
|
12896
13119
|
* @property {*} value
|
|
@@ -13093,11 +13316,10 @@ var Cache = /*#__PURE__*/function () {
|
|
|
13093
13316
|
}();
|
|
13094
13317
|
var CACHE_FLUSH_INTERVAL = 60000; //60 sec
|
|
13095
13318
|
|
|
13096
|
-
var cache = new Cache(CACHE_FLUSH_INTERVAL);
|
|
13097
|
-
exports.cache = cache;
|
|
13319
|
+
var cache = exports.cache = new Cache(CACHE_FLUSH_INTERVAL);
|
|
13098
13320
|
|
|
13099
13321
|
/***/ }),
|
|
13100
|
-
/*
|
|
13322
|
+
/* 13 */
|
|
13101
13323
|
/***/ (function(module, exports, __webpack_require__) {
|
|
13102
13324
|
|
|
13103
13325
|
"use strict";
|
|
@@ -13107,10 +13329,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
13107
13329
|
value: true
|
|
13108
13330
|
});
|
|
13109
13331
|
exports["default"] = void 0;
|
|
13332
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
13110
13333
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13111
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
13334
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
13112
13335
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13113
|
-
var
|
|
13336
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
13337
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
13338
|
+
var EventEmitter = exports["default"] = /*#__PURE__*/function () {
|
|
13114
13339
|
function EventEmitter() {
|
|
13115
13340
|
_classCallCheck(this, EventEmitter);
|
|
13116
13341
|
this.events = {};
|
|
@@ -13153,10 +13378,9 @@ var EventEmitter = /*#__PURE__*/function () {
|
|
|
13153
13378
|
}]);
|
|
13154
13379
|
return EventEmitter;
|
|
13155
13380
|
}();
|
|
13156
|
-
exports["default"] = EventEmitter;
|
|
13157
13381
|
|
|
13158
13382
|
/***/ }),
|
|
13159
|
-
/*
|
|
13383
|
+
/* 14 */
|
|
13160
13384
|
/***/ (function(module, exports, __webpack_require__) {
|
|
13161
13385
|
|
|
13162
13386
|
"use strict";
|
|
@@ -13172,7 +13396,7 @@ var _utils = __webpack_require__(0);
|
|
|
13172
13396
|
* @param {Object} obj
|
|
13173
13397
|
* @returns {string}
|
|
13174
13398
|
*/
|
|
13175
|
-
var stringify = function stringify(obj) {
|
|
13399
|
+
var stringify = exports.stringify = function stringify(obj) {
|
|
13176
13400
|
var tokens = [];
|
|
13177
13401
|
Object.keys(obj).forEach(function (key) {
|
|
13178
13402
|
var value = obj[key];
|
|
@@ -13184,22 +13408,23 @@ var stringify = function stringify(obj) {
|
|
|
13184
13408
|
});
|
|
13185
13409
|
return tokens.join('&');
|
|
13186
13410
|
};
|
|
13187
|
-
exports.stringify = stringify;
|
|
13188
13411
|
|
|
13189
13412
|
/***/ }),
|
|
13190
|
-
/*
|
|
13413
|
+
/* 15 */
|
|
13191
13414
|
/***/ (function(module, exports, __webpack_require__) {
|
|
13192
13415
|
|
|
13193
13416
|
"use strict";
|
|
13194
13417
|
|
|
13195
13418
|
|
|
13196
|
-
function _typeof(
|
|
13419
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
13197
13420
|
Object.defineProperty(exports, "__esModule", {
|
|
13198
13421
|
value: true
|
|
13199
13422
|
});
|
|
13200
13423
|
exports.ResponseError = void 0;
|
|
13201
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
13424
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
13202
13425
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13426
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
13427
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
13203
13428
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13204
13429
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
13205
13430
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
@@ -13211,7 +13436,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
13211
13436
|
function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }
|
|
13212
13437
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
13213
13438
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
13214
|
-
var ResponseError = /*#__PURE__*/function (_Error) {
|
|
13439
|
+
var ResponseError = exports.ResponseError = /*#__PURE__*/function (_Error) {
|
|
13215
13440
|
_inherits(ResponseError, _Error);
|
|
13216
13441
|
var _super = _createSuper(ResponseError);
|
|
13217
13442
|
function ResponseError(response) {
|
|
@@ -13228,7 +13453,6 @@ var ResponseError = /*#__PURE__*/function (_Error) {
|
|
|
13228
13453
|
}
|
|
13229
13454
|
return _createClass(ResponseError);
|
|
13230
13455
|
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
13231
|
-
exports.ResponseError = ResponseError;
|
|
13232
13456
|
function parseError(res) {
|
|
13233
13457
|
if (res.status === 502) {
|
|
13234
13458
|
return 'No connection with server';
|
|
@@ -13236,12 +13460,6 @@ function parseError(res) {
|
|
|
13236
13460
|
return res.body || "Status Code ".concat(res.status, " (").concat(res.statusText, ")");
|
|
13237
13461
|
}
|
|
13238
13462
|
|
|
13239
|
-
/***/ }),
|
|
13240
|
-
/* 14 */
|
|
13241
|
-
/***/ (function(module, exports) {
|
|
13242
|
-
|
|
13243
|
-
throw new Error('This Backendless JS SDK assembly is not intended for Node.js environment. You should use "lib" folder modules instead. For any questions please contact as at http://support.backendless.com/')
|
|
13244
|
-
|
|
13245
13463
|
/***/ })
|
|
13246
13464
|
/******/ ]);
|
|
13247
13465
|
});
|