backendless 6.5.4 → 6.5.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 +3 -9
- package/dist/backendless.js.map +1 -1
- package/dist/backendless.min.js +2 -2
- package/es/urls.js +1 -1
- package/lib/urls.js +1 -1
- package/package.json +2 -2
- package/src/urls.js +1 -1
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.5
|
|
4
4
|
*
|
|
5
5
|
* Copyright 2012-2022 BACKENDLESS.COM. All Rights Reserved.
|
|
6
6
|
*
|
|
@@ -1245,12 +1245,6 @@ 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
|
-
|
|
1254
1248
|
var sendNodeAPIRequest = function sendNodeAPIRequest(path, method, headers, body, encoding, timeout) {
|
|
1255
1249
|
return new Promise(function (resolve, reject) {
|
|
1256
1250
|
var u = __webpack_require__(7).parse(path);
|
|
@@ -1260,7 +1254,7 @@ var sendNodeAPIRequest = function sendNodeAPIRequest(path, method, headers, body
|
|
|
1260
1254
|
var options = {
|
|
1261
1255
|
host: u.hostname,
|
|
1262
1256
|
port: u.port || (https ? 443 : 80),
|
|
1263
|
-
path:
|
|
1257
|
+
path: u.pathname + (u.search || ''),
|
|
1264
1258
|
method: method,
|
|
1265
1259
|
headers: headers,
|
|
1266
1260
|
timeout: timeout
|
|
@@ -24712,7 +24706,7 @@ var Urls = /*#__PURE__*/function () {
|
|
|
24712
24706
|
}, {
|
|
24713
24707
|
key: "dataTableObject",
|
|
24714
24708
|
value: function dataTableObject(tableName, objectId) {
|
|
24715
|
-
return "".concat(this.dataTable(tableName), "/").concat(objectId);
|
|
24709
|
+
return "".concat(this.dataTable(tableName), "/").concat(encodeURIComponent(objectId));
|
|
24716
24710
|
}
|
|
24717
24711
|
}, {
|
|
24718
24712
|
key: "dataTableObjectRelation",
|