backendless 7.4.4 → 7.4.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ********************************************************************************************************************
|
|
3
|
-
* Backendless SDK for JavaScript. Version: 7.4.
|
|
3
|
+
* Backendless SDK for JavaScript. Version: 7.4.5
|
|
4
4
|
*
|
|
5
5
|
* Copyright 2012-2023 BACKENDLESS.COM. All Rights Reserved.
|
|
6
6
|
*
|
|
@@ -12658,7 +12658,7 @@ function getFormData() {
|
|
|
12658
12658
|
function setFormData(value) {
|
|
12659
12659
|
CustomFormData = value;
|
|
12660
12660
|
}
|
|
12661
|
-
var SAFE_CHAR_CODES = ['%40', '%3A', '%2F'];
|
|
12661
|
+
var SAFE_CHAR_CODES = ['%40', '%3A', '%2F', '%23'];
|
|
12662
12662
|
function safeEscape(str, charCodes) {
|
|
12663
12663
|
var _char = charCodes[0];
|
|
12664
12664
|
if (_char) {
|
|
@@ -12671,7 +12671,7 @@ function safeEscape(str, charCodes) {
|
|
|
12671
12671
|
}
|
|
12672
12672
|
function ensureComponentEncoding(uriComponent) {
|
|
12673
12673
|
if (uriComponent === decodeURI(uriComponent)) {
|
|
12674
|
-
return safeEscape(uriComponent, SAFE_CHAR_CODES);
|
|
12674
|
+
return safeEscape(uriComponent, [].concat(SAFE_CHAR_CODES));
|
|
12675
12675
|
}
|
|
12676
12676
|
return uriComponent;
|
|
12677
12677
|
}
|
|
@@ -12990,7 +12990,11 @@ var Request = exports.Request = /*#__PURE__*/function (_EventEmitter) {
|
|
|
12990
12990
|
console.log(this.method.toUpperCase(), decodeURIComponent(path), body, this.headers);
|
|
12991
12991
|
}
|
|
12992
12992
|
var withCredentials = typeof this.withCredentials === 'boolean' ? this.withCredentials : Request.withCredentials;
|
|
12993
|
-
var
|
|
12993
|
+
var syncError = new Error();
|
|
12994
|
+
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)["catch"](function (error) {
|
|
12995
|
+
error.stack = "".concat(error.stack).concat(syncError.stack);
|
|
12996
|
+
throw error;
|
|
12997
|
+
});
|
|
12994
12998
|
request.then(function (result) {
|
|
12995
12999
|
_this2.emit(RESPONSE_EVENT, result);
|
|
12996
13000
|
_this2.emit(DONE_EVENT, null, result);
|