backendless 7.0.5 → 7.2.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/README.md +1 -0
- package/dist/backendless.js +325 -94
- package/dist/backendless.js.map +1 -1
- package/dist/backendless.min.js +2 -2
- package/es/index.js +1 -1
- package/es/logging/index.js +12 -7
- package/es/logging/logger.js +10 -2
- package/lib/index.js +1 -1
- package/lib/logging/index.js +12 -7
- package/lib/logging/logger.js +10 -2
- package/package.json +4 -4
- package/src/index.js +1 -1
- package/src/logging/index.js +11 -7
- package/src/logging/logger.js +13 -2
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.2.0
|
|
4
4
|
*
|
|
5
5
|
* Copyright 2012-2023 BACKENDLESS.COM. All Rights Reserved.
|
|
6
6
|
*
|
|
@@ -6437,7 +6437,7 @@ var Backendless = /*#__PURE__*/function () {
|
|
|
6437
6437
|
app.__removeService('LocalCache');
|
|
6438
6438
|
var loggingConfig = (0, _extends2["default"])({
|
|
6439
6439
|
loadLevels: true,
|
|
6440
|
-
|
|
6440
|
+
globalLevel: 'all',
|
|
6441
6441
|
levels: {}
|
|
6442
6442
|
}, config.logging);
|
|
6443
6443
|
if (app.__hasService('Logging')) {
|
|
@@ -7056,8 +7056,8 @@ var Logging = /*#__PURE__*/function () {
|
|
|
7056
7056
|
if (config.levels) {
|
|
7057
7057
|
this.levels = config.levels;
|
|
7058
7058
|
}
|
|
7059
|
-
if (config.
|
|
7060
|
-
this.
|
|
7059
|
+
if (config.globalLevel) {
|
|
7060
|
+
this.globalLevel = config.globalLevel;
|
|
7061
7061
|
}
|
|
7062
7062
|
if (config.loadLevels) {
|
|
7063
7063
|
this.loadLoggingLevels();
|
|
@@ -7067,7 +7067,7 @@ var Logging = /*#__PURE__*/function () {
|
|
|
7067
7067
|
key: "reset",
|
|
7068
7068
|
value: function reset() {
|
|
7069
7069
|
this.levels = {};
|
|
7070
|
-
this.
|
|
7070
|
+
this.globalLevel = 'all';
|
|
7071
7071
|
this.loggers = {};
|
|
7072
7072
|
this.messages = [];
|
|
7073
7073
|
this.numOfMessages = 10;
|
|
@@ -7080,11 +7080,16 @@ var Logging = /*#__PURE__*/function () {
|
|
|
7080
7080
|
var _this = this;
|
|
7081
7081
|
this.app.request.get({
|
|
7082
7082
|
url: this.app.urls.loggingLevels()
|
|
7083
|
-
}).then(function (
|
|
7084
|
-
loggers
|
|
7085
|
-
|
|
7083
|
+
}).then(function (loggersList) {
|
|
7084
|
+
var loggers = {};
|
|
7085
|
+
loggersList.forEach(function (logger) {
|
|
7086
|
+
loggers[logger.name] = logger.level;
|
|
7087
|
+
});
|
|
7088
|
+
var globalLevel = loggers[GLOBAL_LOGGER_NAME];
|
|
7089
|
+
_this.setConfig({
|
|
7090
|
+
loggers: loggers,
|
|
7091
|
+
globalLevel: globalLevel
|
|
7086
7092
|
});
|
|
7087
|
-
_this.defaultLevel = _this.levels[GLOBAL_LOGGER_NAME] || _this.defaultLevel;
|
|
7088
7093
|
})["catch"](function (error) {
|
|
7089
7094
|
// eslint-disable-next-line no-console
|
|
7090
7095
|
console.error('Could not load logging levels: ', error);
|
|
@@ -7290,8 +7295,16 @@ var Logger = /*#__PURE__*/function () {
|
|
|
7290
7295
|
}, {
|
|
7291
7296
|
key: "min",
|
|
7292
7297
|
value: function min(level) {
|
|
7293
|
-
|
|
7294
|
-
|
|
7298
|
+
level = level.toLowerCase();
|
|
7299
|
+
var globalLevel = this.logging.globalLevel;
|
|
7300
|
+
var loggerLevel = this.logging.levels[this.name];
|
|
7301
|
+
if (globalLevel && LogLevelPriorities[globalLevel.toLowerCase()] < LogLevelPriorities[level]) {
|
|
7302
|
+
return false;
|
|
7303
|
+
}
|
|
7304
|
+
if (!loggerLevel) {
|
|
7305
|
+
return true;
|
|
7306
|
+
}
|
|
7307
|
+
return LogLevelPriorities[loggerLevel.toLowerCase()] >= LogLevelPriorities[level];
|
|
7295
7308
|
}
|
|
7296
7309
|
}]);
|
|
7297
7310
|
return Logger;
|
|
@@ -12256,34 +12269,57 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
12256
12269
|
/***/ (function(module, exports, __webpack_require__) {
|
|
12257
12270
|
|
|
12258
12271
|
"use strict";
|
|
12259
|
-
|
|
12272
|
+
/* WEBPACK VAR INJECTION */(function(process) {
|
|
12260
12273
|
|
|
12261
12274
|
Object.defineProperty(exports, "__esModule", {
|
|
12262
12275
|
value: true
|
|
12263
12276
|
});
|
|
12264
|
-
exports.
|
|
12265
|
-
|
|
12277
|
+
exports.castArray = void 0;
|
|
12278
|
+
exports.getFormData = getFormData;
|
|
12279
|
+
exports.isStream = exports.isObject = exports.isNodeJS = exports.isFormData = exports.isBrowser = void 0;
|
|
12280
|
+
exports.setFormData = setFormData;
|
|
12281
|
+
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
12282
|
/**
|
|
12267
12283
|
* Casts `value` as an array if it's not one.
|
|
12268
12284
|
* Equvivalent to lodash/castArray
|
|
12269
12285
|
*/
|
|
12270
|
-
var castArray = function castArray(value) {
|
|
12286
|
+
var castArray = exports.castArray = function castArray(value) {
|
|
12271
12287
|
return Array.isArray(value) ? value : [value];
|
|
12272
12288
|
};
|
|
12273
|
-
exports.
|
|
12274
|
-
var isObject = function isObject(value) {
|
|
12289
|
+
var isObject = exports.isObject = function isObject(value) {
|
|
12275
12290
|
return null != value && _typeof(value) === 'object';
|
|
12276
12291
|
};
|
|
12277
|
-
exports.
|
|
12278
|
-
|
|
12292
|
+
var isFormData = exports.isFormData = function isFormData(value) {
|
|
12293
|
+
if (!value) {
|
|
12294
|
+
return false;
|
|
12295
|
+
}
|
|
12296
|
+
var FormData = getFormData();
|
|
12297
|
+
if (value instanceof FormData) {
|
|
12298
|
+
return true;
|
|
12299
|
+
}
|
|
12279
12300
|
return value && value.constructor && value.constructor.toString().trim().indexOf('function FormData') === 0;
|
|
12280
12301
|
};
|
|
12281
|
-
exports.
|
|
12282
|
-
var
|
|
12283
|
-
var stream = __webpack_require__(5);
|
|
12302
|
+
var isStream = exports.isStream = function isStream(value) {
|
|
12303
|
+
var stream = __webpack_require__(6);
|
|
12284
12304
|
return value instanceof stream.Stream;
|
|
12285
12305
|
};
|
|
12286
|
-
exports.
|
|
12306
|
+
var isNodeJS = exports.isNodeJS = function isNodeJS() {
|
|
12307
|
+
return typeof process !== 'undefined' && process.versions != null && process.versions.node != null;
|
|
12308
|
+
};
|
|
12309
|
+
var isBrowser = exports.isBrowser = function isBrowser() {
|
|
12310
|
+
return typeof window !== 'undefined' && typeof window.document !== 'undefined';
|
|
12311
|
+
};
|
|
12312
|
+
var CustomFormData = null;
|
|
12313
|
+
function getFormData() {
|
|
12314
|
+
if (CustomFormData) {
|
|
12315
|
+
return CustomFormData;
|
|
12316
|
+
}
|
|
12317
|
+
return isNodeJS() || typeof FormData === 'undefined' ? __webpack_require__(7) : FormData;
|
|
12318
|
+
}
|
|
12319
|
+
function setFormData(value) {
|
|
12320
|
+
CustomFormData = value;
|
|
12321
|
+
}
|
|
12322
|
+
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))
|
|
12287
12323
|
|
|
12288
12324
|
/***/ }),
|
|
12289
12325
|
/* 1 */
|
|
@@ -12298,25 +12334,27 @@ throw new Error('This Backendless JS SDK assembly is not intended for Node.js en
|
|
|
12298
12334
|
"use strict";
|
|
12299
12335
|
|
|
12300
12336
|
|
|
12301
|
-
function _typeof(
|
|
12337
|
+
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
12338
|
Object.defineProperty(exports, "__esModule", {
|
|
12303
12339
|
value: true
|
|
12304
12340
|
});
|
|
12305
12341
|
exports.Request = void 0;
|
|
12306
|
-
var _cache = __webpack_require__(
|
|
12307
|
-
var _eventEmitter = _interopRequireDefault(__webpack_require__(
|
|
12308
|
-
var qs = _interopRequireWildcard(__webpack_require__(
|
|
12342
|
+
var _cache = __webpack_require__(12);
|
|
12343
|
+
var _eventEmitter = _interopRequireDefault(__webpack_require__(13));
|
|
12344
|
+
var qs = _interopRequireWildcard(__webpack_require__(14));
|
|
12309
12345
|
var _utils = __webpack_require__(0);
|
|
12310
|
-
var _error = __webpack_require__(
|
|
12346
|
+
var _error = __webpack_require__(15);
|
|
12311
12347
|
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
12348
|
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
12349
|
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; }
|
|
12350
|
+
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; }
|
|
12351
|
+
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; }
|
|
12352
|
+
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
12353
|
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); } }
|
|
12354
|
+
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
12355
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
12356
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
12357
|
+
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
12358
|
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
12359
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
12322
12360
|
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 +12367,7 @@ var REQUEST_EVENT = 'request';
|
|
|
12329
12367
|
var RESPONSE_EVENT = 'response';
|
|
12330
12368
|
var ERROR_EVENT = 'error';
|
|
12331
12369
|
var DONE_EVENT = 'done';
|
|
12332
|
-
var Request = /*#__PURE__*/function (_EventEmitter) {
|
|
12370
|
+
var Request = exports.Request = /*#__PURE__*/function (_EventEmitter) {
|
|
12333
12371
|
_inherits(Request, _EventEmitter);
|
|
12334
12372
|
var _super = _createSuper(Request);
|
|
12335
12373
|
function Request(path, method, body) {
|
|
@@ -12401,30 +12439,27 @@ var Request = /*#__PURE__*/function (_EventEmitter) {
|
|
|
12401
12439
|
}, {
|
|
12402
12440
|
key: "form",
|
|
12403
12441
|
value: function form(_form) {
|
|
12404
|
-
var _this2 = this;
|
|
12405
12442
|
if (_form) {
|
|
12406
12443
|
var FormData = Request.FormData;
|
|
12407
12444
|
if (_form instanceof FormData) {
|
|
12408
12445
|
this.body = _form;
|
|
12409
12446
|
} else {
|
|
12410
|
-
|
|
12411
|
-
|
|
12412
|
-
|
|
12413
|
-
|
|
12414
|
-
(
|
|
12415
|
-
|
|
12416
|
-
|
|
12417
|
-
|
|
12418
|
-
|
|
12419
|
-
|
|
12420
|
-
});
|
|
12421
|
-
}
|
|
12422
|
-
};
|
|
12423
|
-
for (var formKey in _form) {
|
|
12424
|
-
_loop(formKey);
|
|
12447
|
+
var formData = new FormData();
|
|
12448
|
+
var _loop = function _loop(formKey) {
|
|
12449
|
+
if (formKey) {
|
|
12450
|
+
(0, _utils.castArray)(_form[formKey]).forEach(function (formValue) {
|
|
12451
|
+
if (formValue && formValue.hasOwnProperty('value') && formValue.hasOwnProperty('options')) {
|
|
12452
|
+
formData.append(formKey, formValue.value, formValue.options);
|
|
12453
|
+
} else {
|
|
12454
|
+
formData.append(formKey, formValue);
|
|
12455
|
+
}
|
|
12456
|
+
});
|
|
12425
12457
|
}
|
|
12426
|
-
|
|
12427
|
-
|
|
12458
|
+
};
|
|
12459
|
+
for (var formKey in _form) {
|
|
12460
|
+
_loop(formKey);
|
|
12461
|
+
}
|
|
12462
|
+
this.body = formData;
|
|
12428
12463
|
}
|
|
12429
12464
|
}
|
|
12430
12465
|
return this;
|
|
@@ -12532,7 +12567,7 @@ var Request = /*#__PURE__*/function (_EventEmitter) {
|
|
|
12532
12567
|
}, {
|
|
12533
12568
|
key: "send",
|
|
12534
12569
|
value: function send(body) {
|
|
12535
|
-
var
|
|
12570
|
+
var _this2 = this;
|
|
12536
12571
|
this.emit(REQUEST_EVENT, this);
|
|
12537
12572
|
var path = this.path;
|
|
12538
12573
|
var queryString = qs.stringify(this.queryParams);
|
|
@@ -12554,15 +12589,15 @@ var Request = /*#__PURE__*/function (_EventEmitter) {
|
|
|
12554
12589
|
body = isJSON && typeof body !== 'string' ? JSON.stringify(body) : body;
|
|
12555
12590
|
}
|
|
12556
12591
|
var unwrapBody = function unwrapBody(res) {
|
|
12557
|
-
return
|
|
12592
|
+
return _this2.unwrap ? res.body : res;
|
|
12558
12593
|
};
|
|
12559
12594
|
|
|
12560
12595
|
/**
|
|
12561
12596
|
* Caches the response if required
|
|
12562
12597
|
*/
|
|
12563
12598
|
var cacheResponse = function cacheResponse(res) {
|
|
12564
|
-
if (
|
|
12565
|
-
_cache.cache.set(path, res,
|
|
12599
|
+
if (_this2.cacheTTL) {
|
|
12600
|
+
_cache.cache.set(path, res, _this2.tags, _this2.cacheTTL);
|
|
12566
12601
|
}
|
|
12567
12602
|
return res;
|
|
12568
12603
|
};
|
|
@@ -12571,8 +12606,8 @@ var Request = /*#__PURE__*/function (_EventEmitter) {
|
|
|
12571
12606
|
* Deletes all relevant to req.cacheTags keys from the cache if this request method is not GET
|
|
12572
12607
|
*/
|
|
12573
12608
|
var flushCache = function flushCache(res) {
|
|
12574
|
-
if (
|
|
12575
|
-
_cache.cache.deleteByTags(
|
|
12609
|
+
if (_this2.tags && _this2.method !== 'get') {
|
|
12610
|
+
_cache.cache.deleteByTags(_this2.tags);
|
|
12576
12611
|
}
|
|
12577
12612
|
return res;
|
|
12578
12613
|
};
|
|
@@ -12582,11 +12617,11 @@ var Request = /*#__PURE__*/function (_EventEmitter) {
|
|
|
12582
12617
|
var withCredentials = typeof this.withCredentials === 'boolean' ? this.withCredentials : Request.withCredentials;
|
|
12583
12618
|
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
12619
|
request.then(function (result) {
|
|
12585
|
-
|
|
12586
|
-
|
|
12620
|
+
_this2.emit(RESPONSE_EVENT, result);
|
|
12621
|
+
_this2.emit(DONE_EVENT, null, result);
|
|
12587
12622
|
})["catch"](function (error) {
|
|
12588
|
-
|
|
12589
|
-
|
|
12623
|
+
_this2.emit(ERROR_EVENT, error);
|
|
12624
|
+
_this2.emit(DONE_EVENT, error);
|
|
12590
12625
|
});
|
|
12591
12626
|
return request;
|
|
12592
12627
|
}
|
|
@@ -12618,7 +12653,6 @@ var Request = /*#__PURE__*/function (_EventEmitter) {
|
|
|
12618
12653
|
}]);
|
|
12619
12654
|
return Request;
|
|
12620
12655
|
}(_eventEmitter["default"]);
|
|
12621
|
-
exports.Request = Request;
|
|
12622
12656
|
function parseBody(res) {
|
|
12623
12657
|
try {
|
|
12624
12658
|
return _objectSpread(_objectSpread({}, res), {}, {
|
|
@@ -12655,11 +12689,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
12655
12689
|
});
|
|
12656
12690
|
exports["default"] = void 0;
|
|
12657
12691
|
var _clientNode = __webpack_require__(4);
|
|
12658
|
-
var _clientBrowser = __webpack_require__(
|
|
12692
|
+
var _clientBrowser = __webpack_require__(11);
|
|
12659
12693
|
var _request = __webpack_require__(2);
|
|
12694
|
+
var _utils = __webpack_require__(0);
|
|
12660
12695
|
Object.defineProperty(_request.Request, 'FormData', {
|
|
12661
12696
|
get: function get() {
|
|
12662
|
-
return
|
|
12697
|
+
return (0, _utils.getFormData)();
|
|
12698
|
+
},
|
|
12699
|
+
set: function set(value) {
|
|
12700
|
+
(0, _utils.setFormData)(value);
|
|
12663
12701
|
}
|
|
12664
12702
|
});
|
|
12665
12703
|
_request.Request.XMLHttpRequest = typeof XMLHttpRequest !== 'undefined' ? XMLHttpRequest : undefined;
|
|
@@ -12676,8 +12714,7 @@ _request.Request.methods.forEach(function (method) {
|
|
|
12676
12714
|
};
|
|
12677
12715
|
});
|
|
12678
12716
|
exports = module.exports = _request.Request;
|
|
12679
|
-
var _default = _request.Request;
|
|
12680
|
-
exports["default"] = _default;
|
|
12717
|
+
var _default = exports["default"] = _request.Request;
|
|
12681
12718
|
|
|
12682
12719
|
/***/ }),
|
|
12683
12720
|
/* 4 */
|
|
@@ -12693,7 +12730,7 @@ exports.sendNodeAPIRequest = sendNodeAPIRequest;
|
|
|
12693
12730
|
var _utils = __webpack_require__(0);
|
|
12694
12731
|
function sendNodeAPIRequest(path, method, headers, body, encoding, timeout, withCredentials) {
|
|
12695
12732
|
return new Promise(function (resolve, reject) {
|
|
12696
|
-
var u = __webpack_require__(
|
|
12733
|
+
var u = __webpack_require__(8).parse(path);
|
|
12697
12734
|
var form = (0, _utils.isFormData)(body) && body;
|
|
12698
12735
|
var https = u.protocol === 'https:';
|
|
12699
12736
|
var options = {
|
|
@@ -12709,7 +12746,7 @@ function sendNodeAPIRequest(path, method, headers, body, encoding, timeout, with
|
|
|
12709
12746
|
}
|
|
12710
12747
|
var _send = function _send() {
|
|
12711
12748
|
var Buffer = __webpack_require__(1).Buffer;
|
|
12712
|
-
var httpClient = __webpack_require__(https ?
|
|
12749
|
+
var httpClient = __webpack_require__(https ? 9 : 10);
|
|
12713
12750
|
var req = httpClient.request(options, function (res) {
|
|
12714
12751
|
var strings = [];
|
|
12715
12752
|
var buffers = [];
|
|
@@ -12779,7 +12816,191 @@ function sendNodeAPIRequest(path, method, headers, body, encoding, timeout, with
|
|
|
12779
12816
|
/* 5 */
|
|
12780
12817
|
/***/ (function(module, exports) {
|
|
12781
12818
|
|
|
12782
|
-
|
|
12819
|
+
// shim for using process in browser
|
|
12820
|
+
var process = module.exports = {};
|
|
12821
|
+
|
|
12822
|
+
// cached from whatever global is present so that test runners that stub it
|
|
12823
|
+
// don't break things. But we need to wrap it in a try catch in case it is
|
|
12824
|
+
// wrapped in strict mode code which doesn't define any globals. It's inside a
|
|
12825
|
+
// function because try/catches deoptimize in certain engines.
|
|
12826
|
+
|
|
12827
|
+
var cachedSetTimeout;
|
|
12828
|
+
var cachedClearTimeout;
|
|
12829
|
+
|
|
12830
|
+
function defaultSetTimout() {
|
|
12831
|
+
throw new Error('setTimeout has not been defined');
|
|
12832
|
+
}
|
|
12833
|
+
function defaultClearTimeout () {
|
|
12834
|
+
throw new Error('clearTimeout has not been defined');
|
|
12835
|
+
}
|
|
12836
|
+
(function () {
|
|
12837
|
+
try {
|
|
12838
|
+
if (typeof setTimeout === 'function') {
|
|
12839
|
+
cachedSetTimeout = setTimeout;
|
|
12840
|
+
} else {
|
|
12841
|
+
cachedSetTimeout = defaultSetTimout;
|
|
12842
|
+
}
|
|
12843
|
+
} catch (e) {
|
|
12844
|
+
cachedSetTimeout = defaultSetTimout;
|
|
12845
|
+
}
|
|
12846
|
+
try {
|
|
12847
|
+
if (typeof clearTimeout === 'function') {
|
|
12848
|
+
cachedClearTimeout = clearTimeout;
|
|
12849
|
+
} else {
|
|
12850
|
+
cachedClearTimeout = defaultClearTimeout;
|
|
12851
|
+
}
|
|
12852
|
+
} catch (e) {
|
|
12853
|
+
cachedClearTimeout = defaultClearTimeout;
|
|
12854
|
+
}
|
|
12855
|
+
} ())
|
|
12856
|
+
function runTimeout(fun) {
|
|
12857
|
+
if (cachedSetTimeout === setTimeout) {
|
|
12858
|
+
//normal enviroments in sane situations
|
|
12859
|
+
return setTimeout(fun, 0);
|
|
12860
|
+
}
|
|
12861
|
+
// if setTimeout wasn't available but was latter defined
|
|
12862
|
+
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
|
|
12863
|
+
cachedSetTimeout = setTimeout;
|
|
12864
|
+
return setTimeout(fun, 0);
|
|
12865
|
+
}
|
|
12866
|
+
try {
|
|
12867
|
+
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
12868
|
+
return cachedSetTimeout(fun, 0);
|
|
12869
|
+
} catch(e){
|
|
12870
|
+
try {
|
|
12871
|
+
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
12872
|
+
return cachedSetTimeout.call(null, fun, 0);
|
|
12873
|
+
} catch(e){
|
|
12874
|
+
// 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
|
|
12875
|
+
return cachedSetTimeout.call(this, fun, 0);
|
|
12876
|
+
}
|
|
12877
|
+
}
|
|
12878
|
+
|
|
12879
|
+
|
|
12880
|
+
}
|
|
12881
|
+
function runClearTimeout(marker) {
|
|
12882
|
+
if (cachedClearTimeout === clearTimeout) {
|
|
12883
|
+
//normal enviroments in sane situations
|
|
12884
|
+
return clearTimeout(marker);
|
|
12885
|
+
}
|
|
12886
|
+
// if clearTimeout wasn't available but was latter defined
|
|
12887
|
+
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
|
|
12888
|
+
cachedClearTimeout = clearTimeout;
|
|
12889
|
+
return clearTimeout(marker);
|
|
12890
|
+
}
|
|
12891
|
+
try {
|
|
12892
|
+
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
12893
|
+
return cachedClearTimeout(marker);
|
|
12894
|
+
} catch (e){
|
|
12895
|
+
try {
|
|
12896
|
+
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
12897
|
+
return cachedClearTimeout.call(null, marker);
|
|
12898
|
+
} catch (e){
|
|
12899
|
+
// 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.
|
|
12900
|
+
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
|
12901
|
+
return cachedClearTimeout.call(this, marker);
|
|
12902
|
+
}
|
|
12903
|
+
}
|
|
12904
|
+
|
|
12905
|
+
|
|
12906
|
+
|
|
12907
|
+
}
|
|
12908
|
+
var queue = [];
|
|
12909
|
+
var draining = false;
|
|
12910
|
+
var currentQueue;
|
|
12911
|
+
var queueIndex = -1;
|
|
12912
|
+
|
|
12913
|
+
function cleanUpNextTick() {
|
|
12914
|
+
if (!draining || !currentQueue) {
|
|
12915
|
+
return;
|
|
12916
|
+
}
|
|
12917
|
+
draining = false;
|
|
12918
|
+
if (currentQueue.length) {
|
|
12919
|
+
queue = currentQueue.concat(queue);
|
|
12920
|
+
} else {
|
|
12921
|
+
queueIndex = -1;
|
|
12922
|
+
}
|
|
12923
|
+
if (queue.length) {
|
|
12924
|
+
drainQueue();
|
|
12925
|
+
}
|
|
12926
|
+
}
|
|
12927
|
+
|
|
12928
|
+
function drainQueue() {
|
|
12929
|
+
if (draining) {
|
|
12930
|
+
return;
|
|
12931
|
+
}
|
|
12932
|
+
var timeout = runTimeout(cleanUpNextTick);
|
|
12933
|
+
draining = true;
|
|
12934
|
+
|
|
12935
|
+
var len = queue.length;
|
|
12936
|
+
while(len) {
|
|
12937
|
+
currentQueue = queue;
|
|
12938
|
+
queue = [];
|
|
12939
|
+
while (++queueIndex < len) {
|
|
12940
|
+
if (currentQueue) {
|
|
12941
|
+
currentQueue[queueIndex].run();
|
|
12942
|
+
}
|
|
12943
|
+
}
|
|
12944
|
+
queueIndex = -1;
|
|
12945
|
+
len = queue.length;
|
|
12946
|
+
}
|
|
12947
|
+
currentQueue = null;
|
|
12948
|
+
draining = false;
|
|
12949
|
+
runClearTimeout(timeout);
|
|
12950
|
+
}
|
|
12951
|
+
|
|
12952
|
+
process.nextTick = function (fun) {
|
|
12953
|
+
var args = new Array(arguments.length - 1);
|
|
12954
|
+
if (arguments.length > 1) {
|
|
12955
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
12956
|
+
args[i - 1] = arguments[i];
|
|
12957
|
+
}
|
|
12958
|
+
}
|
|
12959
|
+
queue.push(new Item(fun, args));
|
|
12960
|
+
if (queue.length === 1 && !draining) {
|
|
12961
|
+
runTimeout(drainQueue);
|
|
12962
|
+
}
|
|
12963
|
+
};
|
|
12964
|
+
|
|
12965
|
+
// v8 likes predictible objects
|
|
12966
|
+
function Item(fun, array) {
|
|
12967
|
+
this.fun = fun;
|
|
12968
|
+
this.array = array;
|
|
12969
|
+
}
|
|
12970
|
+
Item.prototype.run = function () {
|
|
12971
|
+
this.fun.apply(null, this.array);
|
|
12972
|
+
};
|
|
12973
|
+
process.title = 'browser';
|
|
12974
|
+
process.browser = true;
|
|
12975
|
+
process.env = {};
|
|
12976
|
+
process.argv = [];
|
|
12977
|
+
process.version = ''; // empty string to avoid regexp issues
|
|
12978
|
+
process.versions = {};
|
|
12979
|
+
|
|
12980
|
+
function noop() {}
|
|
12981
|
+
|
|
12982
|
+
process.on = noop;
|
|
12983
|
+
process.addListener = noop;
|
|
12984
|
+
process.once = noop;
|
|
12985
|
+
process.off = noop;
|
|
12986
|
+
process.removeListener = noop;
|
|
12987
|
+
process.removeAllListeners = noop;
|
|
12988
|
+
process.emit = noop;
|
|
12989
|
+
process.prependListener = noop;
|
|
12990
|
+
process.prependOnceListener = noop;
|
|
12991
|
+
|
|
12992
|
+
process.listeners = function (name) { return [] }
|
|
12993
|
+
|
|
12994
|
+
process.binding = function (name) {
|
|
12995
|
+
throw new Error('process.binding is not supported');
|
|
12996
|
+
};
|
|
12997
|
+
|
|
12998
|
+
process.cwd = function () { return '/' };
|
|
12999
|
+
process.chdir = function (dir) {
|
|
13000
|
+
throw new Error('process.chdir is not supported');
|
|
13001
|
+
};
|
|
13002
|
+
process.umask = function() { return 0; };
|
|
13003
|
+
|
|
12783
13004
|
|
|
12784
13005
|
/***/ }),
|
|
12785
13006
|
/* 6 */
|
|
@@ -12801,6 +13022,18 @@ throw new Error('This Backendless JS SDK assembly is not intended for Node.js en
|
|
|
12801
13022
|
|
|
12802
13023
|
/***/ }),
|
|
12803
13024
|
/* 9 */
|
|
13025
|
+
/***/ (function(module, exports) {
|
|
13026
|
+
|
|
13027
|
+
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/')
|
|
13028
|
+
|
|
13029
|
+
/***/ }),
|
|
13030
|
+
/* 10 */
|
|
13031
|
+
/***/ (function(module, exports) {
|
|
13032
|
+
|
|
13033
|
+
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/')
|
|
13034
|
+
|
|
13035
|
+
/***/ }),
|
|
13036
|
+
/* 11 */
|
|
12804
13037
|
/***/ (function(module, exports, __webpack_require__) {
|
|
12805
13038
|
|
|
12806
13039
|
"use strict";
|
|
@@ -12871,7 +13104,7 @@ function parseHeaders(headersString) {
|
|
|
12871
13104
|
}
|
|
12872
13105
|
|
|
12873
13106
|
/***/ }),
|
|
12874
|
-
/*
|
|
13107
|
+
/* 12 */
|
|
12875
13108
|
/***/ (function(module, exports, __webpack_require__) {
|
|
12876
13109
|
|
|
12877
13110
|
"use strict";
|
|
@@ -12881,16 +13114,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
12881
13114
|
value: true
|
|
12882
13115
|
});
|
|
12883
13116
|
exports.cache = void 0;
|
|
13117
|
+
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
13118
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
12885
13119
|
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(
|
|
13120
|
+
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
13121
|
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(
|
|
13122
|
+
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
13123
|
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++)
|
|
13124
|
+
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
13125
|
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); } }
|
|
13126
|
+
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
13127
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13128
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
13129
|
+
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
13130
|
/**
|
|
12895
13131
|
* @typedef {Object} CacheItem
|
|
12896
13132
|
* @property {*} value
|
|
@@ -13093,11 +13329,10 @@ var Cache = /*#__PURE__*/function () {
|
|
|
13093
13329
|
}();
|
|
13094
13330
|
var CACHE_FLUSH_INTERVAL = 60000; //60 sec
|
|
13095
13331
|
|
|
13096
|
-
var cache = new Cache(CACHE_FLUSH_INTERVAL);
|
|
13097
|
-
exports.cache = cache;
|
|
13332
|
+
var cache = exports.cache = new Cache(CACHE_FLUSH_INTERVAL);
|
|
13098
13333
|
|
|
13099
13334
|
/***/ }),
|
|
13100
|
-
/*
|
|
13335
|
+
/* 13 */
|
|
13101
13336
|
/***/ (function(module, exports, __webpack_require__) {
|
|
13102
13337
|
|
|
13103
13338
|
"use strict";
|
|
@@ -13107,10 +13342,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
13107
13342
|
value: true
|
|
13108
13343
|
});
|
|
13109
13344
|
exports["default"] = void 0;
|
|
13345
|
+
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
13346
|
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); } }
|
|
13347
|
+
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
13348
|
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
|
|
13349
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
13350
|
+
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); }
|
|
13351
|
+
var EventEmitter = exports["default"] = /*#__PURE__*/function () {
|
|
13114
13352
|
function EventEmitter() {
|
|
13115
13353
|
_classCallCheck(this, EventEmitter);
|
|
13116
13354
|
this.events = {};
|
|
@@ -13153,10 +13391,9 @@ var EventEmitter = /*#__PURE__*/function () {
|
|
|
13153
13391
|
}]);
|
|
13154
13392
|
return EventEmitter;
|
|
13155
13393
|
}();
|
|
13156
|
-
exports["default"] = EventEmitter;
|
|
13157
13394
|
|
|
13158
13395
|
/***/ }),
|
|
13159
|
-
/*
|
|
13396
|
+
/* 14 */
|
|
13160
13397
|
/***/ (function(module, exports, __webpack_require__) {
|
|
13161
13398
|
|
|
13162
13399
|
"use strict";
|
|
@@ -13172,7 +13409,7 @@ var _utils = __webpack_require__(0);
|
|
|
13172
13409
|
* @param {Object} obj
|
|
13173
13410
|
* @returns {string}
|
|
13174
13411
|
*/
|
|
13175
|
-
var stringify = function stringify(obj) {
|
|
13412
|
+
var stringify = exports.stringify = function stringify(obj) {
|
|
13176
13413
|
var tokens = [];
|
|
13177
13414
|
Object.keys(obj).forEach(function (key) {
|
|
13178
13415
|
var value = obj[key];
|
|
@@ -13184,22 +13421,23 @@ var stringify = function stringify(obj) {
|
|
|
13184
13421
|
});
|
|
13185
13422
|
return tokens.join('&');
|
|
13186
13423
|
};
|
|
13187
|
-
exports.stringify = stringify;
|
|
13188
13424
|
|
|
13189
13425
|
/***/ }),
|
|
13190
|
-
/*
|
|
13426
|
+
/* 15 */
|
|
13191
13427
|
/***/ (function(module, exports, __webpack_require__) {
|
|
13192
13428
|
|
|
13193
13429
|
"use strict";
|
|
13194
13430
|
|
|
13195
13431
|
|
|
13196
|
-
function _typeof(
|
|
13432
|
+
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
13433
|
Object.defineProperty(exports, "__esModule", {
|
|
13198
13434
|
value: true
|
|
13199
13435
|
});
|
|
13200
13436
|
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); } }
|
|
13437
|
+
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
13438
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13439
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
13440
|
+
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
13441
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13204
13442
|
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
13443
|
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 +13449,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
13211
13449
|
function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }
|
|
13212
13450
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
13213
13451
|
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) {
|
|
13452
|
+
var ResponseError = exports.ResponseError = /*#__PURE__*/function (_Error) {
|
|
13215
13453
|
_inherits(ResponseError, _Error);
|
|
13216
13454
|
var _super = _createSuper(ResponseError);
|
|
13217
13455
|
function ResponseError(response) {
|
|
@@ -13228,7 +13466,6 @@ var ResponseError = /*#__PURE__*/function (_Error) {
|
|
|
13228
13466
|
}
|
|
13229
13467
|
return _createClass(ResponseError);
|
|
13230
13468
|
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
13231
|
-
exports.ResponseError = ResponseError;
|
|
13232
13469
|
function parseError(res) {
|
|
13233
13470
|
if (res.status === 502) {
|
|
13234
13471
|
return 'No connection with server';
|
|
@@ -13236,12 +13473,6 @@ function parseError(res) {
|
|
|
13236
13473
|
return res.body || "Status Code ".concat(res.status, " (").concat(res.statusText, ")");
|
|
13237
13474
|
}
|
|
13238
13475
|
|
|
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
13476
|
/***/ })
|
|
13246
13477
|
/******/ ]);
|
|
13247
13478
|
});
|