backendless 6.3.14 → 6.4.0

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.
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * ********************************************************************************************************************
3
- * Backendless SDK for JavaScript. Version: 6.3.14
3
+ * Backendless SDK for JavaScript. Version: 6.4.0
4
4
  *
5
5
  * Copyright 2012-2022 BACKENDLESS.COM. All Rights Reserved.
6
6
  *
@@ -1254,7 +1254,7 @@ var sendNodeAPIRequest = function sendNodeAPIRequest(path, method, headers, body
1254
1254
  var options = {
1255
1255
  host: u.hostname,
1256
1256
  port: u.port || (https ? 443 : 80),
1257
- path: u.path,
1257
+ path: encodeURI(decodeURI(u.pathname)) + (u.search || ''),
1258
1258
  method: method,
1259
1259
  headers: headers,
1260
1260
  timeout: timeout
@@ -23591,6 +23591,7 @@ var Users = /*#__PURE__*/function () {
23591
23591
 
23592
23592
  return _context12.abrupt("return", this.currentUserRequest = this.dataStore.findById(currentUserId).then(function (user) {
23593
23593
  _this5.currentUserRequest = null;
23594
+ user['user-token'] = _this5.currentUser && _this5.currentUser['user-token'] || undefined;
23594
23595
  return _this5.currentUser = user;
23595
23596
  })["catch"](function (error) {
23596
23597
  _this5.currentUserRequest = null;