backendless 7.3.3 → 7.3.5
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 +20 -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.5
|
|
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,23 @@ function getFormData() {
|
|
|
12605
12606
|
function setFormData(value) {
|
|
12606
12607
|
CustomFormData = value;
|
|
12607
12608
|
}
|
|
12609
|
+
function ensureComponentEncoding(uriComponent) {
|
|
12610
|
+
if (uriComponent === decodeURIComponent(uriComponent)) {
|
|
12611
|
+
return encodeURIComponent(uriComponent);
|
|
12612
|
+
}
|
|
12613
|
+
return uriComponent;
|
|
12614
|
+
}
|
|
12615
|
+
function encodePath(path) {
|
|
12616
|
+
return path.split('/').map(ensureComponentEncoding).join('/');
|
|
12617
|
+
}
|
|
12618
|
+
function ensureEncoding(path) {
|
|
12619
|
+
try {
|
|
12620
|
+
var url = new URL(path);
|
|
12621
|
+
return url.origin + encodePath(url.pathname) + url.search;
|
|
12622
|
+
} catch (_unused) {
|
|
12623
|
+
return encodePath(path);
|
|
12624
|
+
}
|
|
12625
|
+
}
|
|
12608
12626
|
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5)))
|
|
12609
12627
|
|
|
12610
12628
|
/***/ }),
|
|
@@ -12661,7 +12679,7 @@ var Request = exports.Request = /*#__PURE__*/function (_EventEmitter) {
|
|
|
12661
12679
|
_classCallCheck(this, Request);
|
|
12662
12680
|
_this = _super.call(this);
|
|
12663
12681
|
_this.method = method;
|
|
12664
|
-
_this.path = path;
|
|
12682
|
+
_this.path = (0, _utils.ensureEncoding)(path);
|
|
12665
12683
|
_this.body = body;
|
|
12666
12684
|
_this.tags = undefined;
|
|
12667
12685
|
_this.unwrap = true;
|