@inditextech/weave-store-websockets 3.9.0-SNAPSHOT.186.1 → 3.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/server.js +8 -0
- package/package.json +3 -3
package/dist/server.js
CHANGED
|
@@ -1917,6 +1917,14 @@ var WSSharedDoc = class extends yjs_default.Doc {
|
|
|
1917
1917
|
});
|
|
1918
1918
|
}
|
|
1919
1919
|
}
|
|
1920
|
+
destroy() {
|
|
1921
|
+
this.conns.forEach((_, conn) => {
|
|
1922
|
+
conn.close();
|
|
1923
|
+
});
|
|
1924
|
+
this.conns.clear();
|
|
1925
|
+
this.awareness.destroy();
|
|
1926
|
+
this.destroy();
|
|
1927
|
+
}
|
|
1920
1928
|
};
|
|
1921
1929
|
const getYDoc = (docName, initialState, horizontalSyncHandler, gc = true) => setIfUndefined(docs, docName, async () => {
|
|
1922
1930
|
let documentData = void 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inditextech/weave-store-websockets",
|
|
3
|
-
"version": "3.9.0
|
|
3
|
+
"version": "3.9.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Jesus Manuel Piñeiro Cid <jesusmpc@inditex.com>",
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"version:release": "npm version $RELEASE_VERSION -m \"[npm-scripts] prepare release $RELEASE_VERSION\" --tag-version-prefix \"\""
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@inditextech/weave-types": "3.9.0
|
|
60
|
-
"@inditextech/weave-sdk": "3.9.0
|
|
59
|
+
"@inditextech/weave-types": "3.9.0",
|
|
60
|
+
"@inditextech/weave-sdk": "3.9.0",
|
|
61
61
|
"@syncedstore/core": "0.6.0",
|
|
62
62
|
"ws": "8.18.1",
|
|
63
63
|
"y-websocket": "3.0.0"
|