backendless 6.5.3 → 6.5.4
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 +10 -4
- package/dist/backendless.js.map +1 -1
- package/dist/backendless.min.js +2 -2
- package/es/urls.js +2 -2
- package/lib/urls.js +2 -2
- package/package.json +2 -2
- package/src/urls.js +2 -2
package/dist/backendless.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ********************************************************************************************************************
|
|
3
|
-
* Backendless SDK for JavaScript. Version: 6.5.
|
|
3
|
+
* Backendless SDK for JavaScript. Version: 6.5.4
|
|
4
4
|
*
|
|
5
5
|
* Copyright 2012-2022 BACKENDLESS.COM. All Rights Reserved.
|
|
6
6
|
*
|
|
@@ -1245,6 +1245,12 @@ var sendXmlHttpRequest = function sendXmlHttpRequest(path, method, headers, body
|
|
|
1245
1245
|
});
|
|
1246
1246
|
};
|
|
1247
1247
|
|
|
1248
|
+
function encodePathname(pathname) {
|
|
1249
|
+
return pathname.split('/').map(function (v) {
|
|
1250
|
+
return encodeURIComponent(decodeURIComponent(v));
|
|
1251
|
+
}).join('/');
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1248
1254
|
var sendNodeAPIRequest = function sendNodeAPIRequest(path, method, headers, body, encoding, timeout) {
|
|
1249
1255
|
return new Promise(function (resolve, reject) {
|
|
1250
1256
|
var u = __webpack_require__(7).parse(path);
|
|
@@ -1254,7 +1260,7 @@ var sendNodeAPIRequest = function sendNodeAPIRequest(path, method, headers, body
|
|
|
1254
1260
|
var options = {
|
|
1255
1261
|
host: u.hostname,
|
|
1256
1262
|
port: u.port || (https ? 443 : 80),
|
|
1257
|
-
path:
|
|
1263
|
+
path: encodePathname(u.pathname) + (u.search || ''),
|
|
1258
1264
|
method: method,
|
|
1259
1265
|
headers: headers,
|
|
1260
1266
|
timeout: timeout
|
|
@@ -24943,8 +24949,8 @@ var Urls = /*#__PURE__*/function () {
|
|
|
24943
24949
|
}
|
|
24944
24950
|
}, {
|
|
24945
24951
|
key: "userRestorePassword",
|
|
24946
|
-
value: function userRestorePassword(
|
|
24947
|
-
return "".concat(this.users(), "/restorepassword/").concat(encodeURIComponent(
|
|
24952
|
+
value: function userRestorePassword(identity) {
|
|
24953
|
+
return "".concat(this.users(), "/restorepassword/").concat(encodeURIComponent(identity));
|
|
24948
24954
|
}
|
|
24949
24955
|
}, {
|
|
24950
24956
|
key: "userTokenCheck",
|