@lark-sh/client 0.1.20 → 0.1.21
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/{chunk-ELNTJSEE.mjs → chunk-HHBHX2EM.mjs} +6 -8
- package/dist/{chunk-ELNTJSEE.mjs.map → chunk-HHBHX2EM.mjs.map} +1 -1
- package/dist/fb-v8/index.js +5 -7
- package/dist/fb-v8/index.js.map +1 -1
- package/dist/fb-v8/index.mjs +1 -1
- package/dist/index.js +5 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -4288,6 +4288,11 @@ var LarkDatabase = class {
|
|
|
4288
4288
|
this._domain = options.domain || DEFAULT_LARK_DOMAIN;
|
|
4289
4289
|
this._currentToken = options.token || "";
|
|
4290
4290
|
this._isAnonymous = !options.token && options.anonymous !== false;
|
|
4291
|
+
this.subscriptionManager.initialize({
|
|
4292
|
+
sendSubscribe: this.sendSubscribeMessage.bind(this),
|
|
4293
|
+
sendUnsubscribe: this.sendUnsubscribeMessage.bind(this),
|
|
4294
|
+
createSnapshot: this.createSnapshot.bind(this)
|
|
4295
|
+
});
|
|
4291
4296
|
}
|
|
4292
4297
|
// ============================================
|
|
4293
4298
|
// Connection State
|
|
@@ -4469,13 +4474,6 @@ var LarkDatabase = class {
|
|
|
4469
4474
|
this._state = "authenticated";
|
|
4470
4475
|
this._reconnectAttempt = 0;
|
|
4471
4476
|
this.fireConnectionStateChange();
|
|
4472
|
-
if (!isReconnect) {
|
|
4473
|
-
this.subscriptionManager.initialize({
|
|
4474
|
-
sendSubscribe: this.sendSubscribeMessage.bind(this),
|
|
4475
|
-
sendUnsubscribe: this.sendUnsubscribeMessage.bind(this),
|
|
4476
|
-
createSnapshot: this.createSnapshot.bind(this)
|
|
4477
|
-
});
|
|
4478
|
-
}
|
|
4479
4477
|
if (isReconnect) {
|
|
4480
4478
|
await this.restoreAfterReconnect();
|
|
4481
4479
|
}
|
|
@@ -5346,4 +5344,4 @@ export {
|
|
|
5346
5344
|
ServerValue,
|
|
5347
5345
|
LarkDatabase
|
|
5348
5346
|
};
|
|
5349
|
-
//# sourceMappingURL=chunk-
|
|
5347
|
+
//# sourceMappingURL=chunk-HHBHX2EM.mjs.map
|