@rool-dev/extension 0.3.9-dev.eb0ed0e → 0.3.9-dev.f2c030f
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/dev/host-shell.js
CHANGED
|
@@ -6493,7 +6493,7 @@ function toAsyncIterable(val) {
|
|
|
6493
6493
|
var INITIAL_RECONNECT_DELAY = 1e3;
|
|
6494
6494
|
var MAX_RECONNECT_DELAY = 3e4;
|
|
6495
6495
|
var RECONNECT_MULTIPLIER = 2;
|
|
6496
|
-
var HEARTBEAT_TIMEOUT =
|
|
6496
|
+
var HEARTBEAT_TIMEOUT = 35e3;
|
|
6497
6497
|
var ClientSubscriptionManager = class {
|
|
6498
6498
|
config;
|
|
6499
6499
|
client = null;
|
|
@@ -8508,14 +8508,10 @@ var RoolClient = class extends EventEmitter {
|
|
|
8508
8508
|
this.authManager.initialize();
|
|
8509
8509
|
const authenticated = await this.isAuthenticated();
|
|
8510
8510
|
if (authenticated) {
|
|
8511
|
-
|
|
8512
|
-
|
|
8513
|
-
|
|
8514
|
-
|
|
8515
|
-
this.saveStorageCache();
|
|
8516
|
-
} catch (error) {
|
|
8517
|
-
this.logger.warn("[RoolClient] Failed to sync user storage:", error);
|
|
8518
|
-
}
|
|
8511
|
+
const user = await this.getCurrentUser();
|
|
8512
|
+
this._currentUser = user;
|
|
8513
|
+
this._storageCache = user.storage ?? {};
|
|
8514
|
+
this.saveStorageCache();
|
|
8519
8515
|
await this.ensureSubscribed();
|
|
8520
8516
|
}
|
|
8521
8517
|
return authenticated;
|