backendless 7.3.6 → 7.3.7
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 +31 -2
- package/dist/backendless.js.map +1 -1
- package/dist/backendless.min.js +2 -2
- package/package.json +2 -2
package/dist/backendless.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ********************************************************************************************************************
|
|
3
|
-
* Backendless SDK for JavaScript. Version: 7.3.
|
|
3
|
+
* Backendless SDK for JavaScript. Version: 7.3.7
|
|
4
4
|
*
|
|
5
5
|
* Copyright 2012-2023 BACKENDLESS.COM. All Rights Reserved.
|
|
6
6
|
*
|
|
@@ -12561,6 +12561,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
12561
12561
|
value: true
|
|
12562
12562
|
});
|
|
12563
12563
|
exports.castArray = void 0;
|
|
12564
|
+
exports.ensureEncoding = ensureEncoding;
|
|
12564
12565
|
exports.getFormData = getFormData;
|
|
12565
12566
|
exports.isStream = exports.isObject = exports.isNodeJS = exports.isFormData = exports.isBrowser = void 0;
|
|
12566
12567
|
exports.setFormData = setFormData;
|
|
@@ -12605,6 +12606,34 @@ function getFormData() {
|
|
|
12605
12606
|
function setFormData(value) {
|
|
12606
12607
|
CustomFormData = value;
|
|
12607
12608
|
}
|
|
12609
|
+
var SAFE_CHAR_CODES = ['%40', '%3A', '%2F'];
|
|
12610
|
+
function safeEscape(str, charCodes) {
|
|
12611
|
+
var _char = charCodes[0];
|
|
12612
|
+
if (_char) {
|
|
12613
|
+
var tokens = str.split(_char).map(function (p) {
|
|
12614
|
+
return safeEscape(p, charCodes.slice(1));
|
|
12615
|
+
});
|
|
12616
|
+
return tokens.join(_char);
|
|
12617
|
+
}
|
|
12618
|
+
return encodeURI(str);
|
|
12619
|
+
}
|
|
12620
|
+
function ensureComponentEncoding(uriComponent) {
|
|
12621
|
+
if (uriComponent === decodeURI(uriComponent)) {
|
|
12622
|
+
return safeEscape(uriComponent, SAFE_CHAR_CODES);
|
|
12623
|
+
}
|
|
12624
|
+
return uriComponent;
|
|
12625
|
+
}
|
|
12626
|
+
function encodePath(path) {
|
|
12627
|
+
return path.split('/').map(ensureComponentEncoding).join('/');
|
|
12628
|
+
}
|
|
12629
|
+
function ensureEncoding(path) {
|
|
12630
|
+
try {
|
|
12631
|
+
var url = new URL(path);
|
|
12632
|
+
return url.origin + encodePath(url.pathname) + url.search;
|
|
12633
|
+
} catch (_unused) {
|
|
12634
|
+
return encodePath(path);
|
|
12635
|
+
}
|
|
12636
|
+
}
|
|
12608
12637
|
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))
|
|
12609
12638
|
|
|
12610
12639
|
/***/ }),
|
|
@@ -12661,7 +12690,7 @@ var Request = exports.Request = /*#__PURE__*/function (_EventEmitter) {
|
|
|
12661
12690
|
_classCallCheck(this, Request);
|
|
12662
12691
|
_this = _super.call(this);
|
|
12663
12692
|
_this.method = method;
|
|
12664
|
-
_this.path = path;
|
|
12693
|
+
_this.path = (0, _utils.ensureEncoding)(path);
|
|
12665
12694
|
_this.body = body;
|
|
12666
12695
|
_this.tags = undefined;
|
|
12667
12696
|
_this.unwrap = true;
|