@banta/sdk 4.0.2 → 4.0.3
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/bundles/banta-sdk.umd.js +5 -2
- package/bundles/banta-sdk.umd.js.map +1 -1
- package/bundles/banta-sdk.umd.min.js +1 -1
- package/bundles/banta-sdk.umd.min.js.map +1 -1
- package/esm2015/lib/chat-source.js +3 -2
- package/fesm2015/banta-sdk.js +2 -1
- package/fesm2015/banta-sdk.js.map +1 -1
- package/package.json +1 -1
package/bundles/banta-sdk.umd.js
CHANGED
|
@@ -9877,10 +9877,13 @@
|
|
|
9877
9877
|
return __awaiter(this, void 0, void 0, function () {
|
|
9878
9878
|
return __generator(this, function (_b) {
|
|
9879
9879
|
switch (_b.label) {
|
|
9880
|
-
case 0:
|
|
9880
|
+
case 0:
|
|
9881
|
+
if (!this.backend.user) return [3 /*break*/, 2];
|
|
9882
|
+
return [4 /*yield*/, this.peer.authenticate((_a = this.backend.user) === null || _a === void 0 ? void 0 : _a.token)];
|
|
9881
9883
|
case 1:
|
|
9882
9884
|
_b.sent();
|
|
9883
|
-
|
|
9885
|
+
_b.label = 2;
|
|
9886
|
+
case 2: return [2 /*return*/];
|
|
9884
9887
|
}
|
|
9885
9888
|
});
|
|
9886
9889
|
});
|