@hocuspocus/provider 2.8.1 → 2.9.0
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/hocuspocus-provider.cjs +2 -3
- package/dist/hocuspocus-provider.cjs.map +1 -1
- package/dist/hocuspocus-provider.esm.js +2 -3
- package/dist/hocuspocus-provider.esm.js.map +1 -1
- package/dist/packages/provider/src/TiptapCollabProvider.d.ts +1 -1
- package/dist/packages/provider/src/TiptapCollabProviderWebsocket.d.ts +1 -1
- package/dist/packages/server/src/Hocuspocus.d.ts +5 -1
- package/dist/packages/server/src/util/debounce.d.ts +5 -1
- package/package.json +2 -2
- package/src/HocuspocusProvider.ts +2 -2
- package/src/TiptapCollabProvider.ts +1 -1
- package/src/TiptapCollabProviderWebsocket.ts +1 -1
|
@@ -2693,15 +2693,15 @@ class HocuspocusProvider extends EventEmitter {
|
|
|
2693
2693
|
}
|
|
2694
2694
|
}
|
|
2695
2695
|
destroy() {
|
|
2696
|
-
var _a;
|
|
2697
2696
|
this.emit('destroy');
|
|
2698
2697
|
if (this.intervals.forceSync) {
|
|
2699
2698
|
clearInterval(this.intervals.forceSync);
|
|
2700
2699
|
}
|
|
2701
2700
|
if (this.awareness) {
|
|
2702
2701
|
removeAwarenessStates(this.awareness, [this.document.clientID], 'provider destroy');
|
|
2702
|
+
this.awareness.off('update', this.awarenessUpdateHandler);
|
|
2703
|
+
this.awareness.destroy();
|
|
2703
2704
|
}
|
|
2704
|
-
(_a = this.awareness) === null || _a === void 0 ? void 0 : _a.off('update', this.awarenessUpdateHandler);
|
|
2705
2705
|
this.document.off('update', this.documentUpdateHandler);
|
|
2706
2706
|
this.removeAllListeners();
|
|
2707
2707
|
this.configuration.websocketProvider.off('connect', this.configuration.onConnect);
|
|
@@ -2733,7 +2733,6 @@ class HocuspocusProvider extends EventEmitter {
|
|
|
2733
2733
|
this.isAuthenticated = true;
|
|
2734
2734
|
this.authorizedScope = scope;
|
|
2735
2735
|
this.emit('authenticated');
|
|
2736
|
-
this.startSync();
|
|
2737
2736
|
}
|
|
2738
2737
|
get broadcastChannel() {
|
|
2739
2738
|
return `${this.configuration.name}`;
|