roboto-js 1.4.47 → 1.4.48
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/cjs/rbt_api.cjs +7 -1
- package/dist/esm/rbt_api.js +5 -1
- package/package.json +1 -1
- package/src/rbt_api.js +6 -1
package/dist/cjs/rbt_api.cjs
CHANGED
|
@@ -436,8 +436,14 @@ var RbtApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
436
436
|
return this.loadCurrentUser();
|
|
437
437
|
case 2:
|
|
438
438
|
currentUser = _context9.sent;
|
|
439
|
+
if (!currentUser) {
|
|
440
|
+
_context9.next = 7;
|
|
441
|
+
break;
|
|
442
|
+
}
|
|
439
443
|
return _context9.abrupt("return", this.loadUser(currentUser.id));
|
|
440
|
-
case
|
|
444
|
+
case 7:
|
|
445
|
+
return _context9.abrupt("return", null);
|
|
446
|
+
case 8:
|
|
441
447
|
case "end":
|
|
442
448
|
return _context9.stop();
|
|
443
449
|
}
|
package/dist/esm/rbt_api.js
CHANGED
|
@@ -200,7 +200,11 @@ export default class RbtApi {
|
|
|
200
200
|
}
|
|
201
201
|
async loadCurrentUserExtended() {
|
|
202
202
|
let currentUser = await this.loadCurrentUser();
|
|
203
|
-
|
|
203
|
+
if (currentUser) {
|
|
204
|
+
return this.loadUser(currentUser.id);
|
|
205
|
+
} else {
|
|
206
|
+
return null;
|
|
207
|
+
}
|
|
204
208
|
}
|
|
205
209
|
async loadUser(userId) {
|
|
206
210
|
let params = {
|
package/package.json
CHANGED
package/src/rbt_api.js
CHANGED
|
@@ -256,7 +256,12 @@ export default class RbtApi {
|
|
|
256
256
|
async loadCurrentUserExtended(){
|
|
257
257
|
|
|
258
258
|
let currentUser = await this.loadCurrentUser();
|
|
259
|
-
|
|
259
|
+
if(currentUser){
|
|
260
|
+
return this.loadUser(currentUser.id);
|
|
261
|
+
}
|
|
262
|
+
else{
|
|
263
|
+
return null;
|
|
264
|
+
}
|
|
260
265
|
|
|
261
266
|
}
|
|
262
267
|
|