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.
package/es/users/index.js CHANGED
@@ -434,6 +434,7 @@ var Users = /*#__PURE__*/function () {
434
434
 
435
435
  return _context12.abrupt("return", this.currentUserRequest = this.dataStore.findById(currentUserId).then(function (user) {
436
436
  _this5.currentUserRequest = null;
437
+ user['user-token'] = _this5.currentUser && _this5.currentUser['user-token'] || undefined;
437
438
  return _this5.currentUser = user;
438
439
  })["catch"](function (error) {
439
440
  _this5.currentUserRequest = null;
@@ -434,6 +434,7 @@ var Users = /*#__PURE__*/function () {
434
434
 
435
435
  return _context12.abrupt("return", this.currentUserRequest = this.dataStore.findById(currentUserId).then(function (user) {
436
436
  _this5.currentUserRequest = null;
437
+ user['user-token'] = _this5.currentUser && _this5.currentUser['user-token'] || undefined;
437
438
  return _this5.currentUser = user;
438
439
  })["catch"](function (error) {
439
440
  _this5.currentUserRequest = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backendless",
3
- "version": "6.3.14",
3
+ "version": "6.4.0",
4
4
  "description": "Backendless JavaScript SDK for Node.js and the browser",
5
5
  "browser": "dist/backendless.js",
6
6
  "main": "lib/index.js",
@@ -91,7 +91,7 @@
91
91
  },
92
92
  "dependencies": {
93
93
  "@babel/runtime": "^7.14.6",
94
- "backendless-request": "^0.2.0",
94
+ "backendless-request": "^0.3.1",
95
95
  "backendless-rt-client": "0.1.0"
96
96
  }
97
97
  }
@@ -146,6 +146,8 @@ export default class Users {
146
146
  .then(user => {
147
147
  this.currentUserRequest = null
148
148
 
149
+ user['user-token'] = this.currentUser && this.currentUser['user-token'] || undefined
150
+
149
151
  return this.currentUser = user
150
152
  })
151
153
  .catch(error => {