backendless 6.3.13-test.1 → 6.3.15
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 -2
- package/dist/backendless.js.map +1 -1
- package/dist/backendless.min.js +2 -2
- package/es/users/index.js +1 -0
- package/lib/users/index.js +1 -0
- package/package.json +5 -4
- package/src/users/index.js +2 -0
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;
|
package/lib/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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "backendless",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.15",
|
|
4
4
|
"description": "Backendless JavaScript SDK for Node.js and the browser",
|
|
5
5
|
"browser": "dist/backendless.js",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -18,12 +18,13 @@
|
|
|
18
18
|
"dev": "watch 'npm run build:commonjs' ./src",
|
|
19
19
|
"clean": "rimraf lib dist es",
|
|
20
20
|
"lint": "eslint src --fix",
|
|
21
|
+
"check": "npm run lint && npm run test",
|
|
21
22
|
"coverage": "nyc --reporter=html --reporter=text --cache=false npm run test:unit",
|
|
22
23
|
"test": "npm run test:tsc && npm run coverage",
|
|
23
24
|
"test:tsc": "tsc ./test/tsd.ts",
|
|
24
25
|
"test:unit": "cross-env NODE_ENV=test mocha --recursive test/unit/specs",
|
|
25
26
|
"test:e2e": "cross-env NODE_ENV=test mocha --require @babel/register test/e2e/specs/*",
|
|
26
|
-
"build": "npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min",
|
|
27
|
+
"build": "npm run clean && npm run check && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min",
|
|
27
28
|
"build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib",
|
|
28
29
|
"build:es": "cross-env BABEL_ENV=es babel src --out-dir es",
|
|
29
30
|
"build:umd": "cross-env BABEL_ENV=commonjs NODE_ENV=development webpack",
|
|
@@ -49,7 +50,7 @@
|
|
|
49
50
|
"author": "info@backendless.com",
|
|
50
51
|
"license": "ISC",
|
|
51
52
|
"devDependencies": {
|
|
52
|
-
"@babel/cli": "^7.
|
|
53
|
+
"@babel/cli": "^7.14.5",
|
|
53
54
|
"@babel/core": "^7.14.6",
|
|
54
55
|
"@babel/plugin-proposal-class-properties": "^7.14.5",
|
|
55
56
|
"@babel/plugin-proposal-decorators": "^7.14.5",
|
|
@@ -91,6 +92,6 @@
|
|
|
91
92
|
"dependencies": {
|
|
92
93
|
"@babel/runtime": "^7.14.6",
|
|
93
94
|
"backendless-request": "^0.2.0",
|
|
94
|
-
"backendless-rt-client": "0.0
|
|
95
|
+
"backendless-rt-client": "0.1.0"
|
|
95
96
|
}
|
|
96
97
|
}
|
package/src/users/index.js
CHANGED