@inditextech/weave-store-websockets 4.2.0-SNAPSHOT.307.1 → 5.0.0-SNAPSHOT.336.1
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/client.d.ts +2 -2
- package/dist/client.js +4 -4
- package/dist/client.stats.html +1 -1
- package/package.json +3 -4
package/dist/client.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ declare class WeaveStoreWebsockets extends WeaveStore {
|
|
|
31
31
|
setup(): void;
|
|
32
32
|
private loadRoomInitialData;
|
|
33
33
|
private init;
|
|
34
|
-
connect(): void
|
|
35
|
-
disconnect(): void
|
|
34
|
+
connect(): Promise<void>;
|
|
35
|
+
disconnect(): Promise<void>;
|
|
36
36
|
handleAwarenessChange(emit?: boolean): void;
|
|
37
37
|
setAwarenessInfo<T>(field: string, value: T): void;
|
|
38
38
|
}
|
package/dist/client.js
CHANGED
|
@@ -56,18 +56,18 @@ var WeaveStoreWebsockets = class extends WeaveStore {
|
|
|
56
56
|
this.handleConnectionStatusChange(WEAVE_STORE_CONNECTION_STATUS.ERROR);
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
|
-
connect() {
|
|
59
|
+
async connect() {
|
|
60
60
|
const awareness = this.provider.awareness;
|
|
61
61
|
awareness.on("update", this.handleAwarenessChange.bind(this));
|
|
62
62
|
awareness.on("change", this.handleAwarenessChange.bind(this));
|
|
63
|
-
this.provider.connect();
|
|
63
|
+
await this.provider.connect();
|
|
64
64
|
}
|
|
65
|
-
disconnect() {
|
|
65
|
+
async disconnect() {
|
|
66
66
|
const awareness = this.provider.awareness;
|
|
67
67
|
awareness.destroy();
|
|
68
68
|
awareness.off("update", this.handleAwarenessChange.bind(this));
|
|
69
69
|
awareness.off("change", this.handleAwarenessChange.bind(this));
|
|
70
|
-
this.provider.disconnect();
|
|
70
|
+
await this.provider.disconnect();
|
|
71
71
|
}
|
|
72
72
|
handleAwarenessChange(emit = true) {
|
|
73
73
|
const awareness = this.provider.awareness;
|
package/dist/client.stats.html
CHANGED
|
@@ -4930,7 +4930,7 @@ var drawChart = (function (exports) {
|
|
|
4930
4930
|
</script>
|
|
4931
4931
|
<script>
|
|
4932
4932
|
/*<!--*/
|
|
4933
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"client.d.ts","children":[{"name":"src","children":[{"uid":"
|
|
4933
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"client.d.ts","children":[{"name":"src","children":[{"uid":"97341abe-1","name":"types.d.ts"},{"uid":"97341abe-3","name":"store-websockets.d.ts"},{"uid":"97341abe-5","name":"constants.d.ts"},{"uid":"97341abe-7","name":"index.client.d.ts"}]}]},{"name":"client.js","children":[{"name":"src","children":[{"uid":"97341abe-9","name":"constants.ts"},{"uid":"97341abe-11","name":"store-websockets.ts"},{"uid":"97341abe-13","name":"index.client.ts"}]}]}],"isRoot":true},"nodeParts":{"97341abe-1":{"renderedLength":378,"gzipLength":229,"brotliLength":178,"metaUid":"97341abe-0"},"97341abe-3":{"renderedLength":278,"gzipLength":168,"brotliLength":135,"metaUid":"97341abe-2"},"97341abe-5":{"renderedLength":76,"gzipLength":92,"brotliLength":77,"metaUid":"97341abe-4"},"97341abe-7":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"97341abe-6"},"97341abe-9":{"renderedLength":91,"gzipLength":104,"brotliLength":89,"metaUid":"97341abe-8"},"97341abe-11":{"renderedLength":2652,"gzipLength":803,"brotliLength":703,"metaUid":"97341abe-10"},"97341abe-13":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"97341abe-12"}},"nodeMetas":{"97341abe-0":{"id":"/src/types.d.ts","moduleParts":{"client.d.ts":"97341abe-1"},"imported":[{"uid":"97341abe-17"},{"uid":"97341abe-18"}],"importedBy":[{"uid":"97341abe-6"},{"uid":"97341abe-2"}]},"97341abe-2":{"id":"/src/store-websockets.d.ts","moduleParts":{"client.d.ts":"97341abe-3"},"imported":[{"uid":"97341abe-14"},{"uid":"97341abe-15"},{"uid":"97341abe-0"},{"uid":"97341abe-16"}],"importedBy":[{"uid":"97341abe-6"}]},"97341abe-4":{"id":"/src/constants.d.ts","moduleParts":{"client.d.ts":"97341abe-5"},"imported":[],"importedBy":[{"uid":"97341abe-6"}]},"97341abe-6":{"id":"/src/index.client.d.ts","moduleParts":{"client.d.ts":"97341abe-7"},"imported":[{"uid":"97341abe-2"},{"uid":"97341abe-4"},{"uid":"97341abe-0"}],"importedBy":[],"isEntry":true},"97341abe-8":{"id":"/src/constants.ts","moduleParts":{"client.js":"97341abe-9"},"imported":[],"importedBy":[{"uid":"97341abe-12"},{"uid":"97341abe-10"}]},"97341abe-10":{"id":"/src/store-websockets.ts","moduleParts":{"client.js":"97341abe-11"},"imported":[{"uid":"97341abe-14"},{"uid":"97341abe-15"},{"uid":"97341abe-8"},{"uid":"97341abe-19"},{"uid":"97341abe-16"}],"importedBy":[{"uid":"97341abe-12"}]},"97341abe-12":{"id":"/src/index.client.ts","moduleParts":{"client.js":"97341abe-13"},"imported":[{"uid":"97341abe-10"},{"uid":"97341abe-8"},{"uid":"97341abe-19"}],"importedBy":[],"isEntry":true},"97341abe-14":{"id":"@inditextech/weave-sdk","moduleParts":{},"imported":[],"importedBy":[{"uid":"97341abe-2"},{"uid":"97341abe-10"}]},"97341abe-15":{"id":"@inditextech/weave-types","moduleParts":{},"imported":[],"importedBy":[{"uid":"97341abe-2"},{"uid":"97341abe-10"}]},"97341abe-16":{"id":"y-websocket","moduleParts":{},"imported":[],"importedBy":[{"uid":"97341abe-2"},{"uid":"97341abe-10"}]},"97341abe-17":{"id":"yjs","moduleParts":{},"imported":[],"importedBy":[{"uid":"97341abe-0"}]},"97341abe-18":{"id":"http","moduleParts":{},"imported":[],"importedBy":[{"uid":"97341abe-0"}]},"97341abe-19":{"id":"/src/types.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"97341abe-12"},{"uid":"97341abe-10"}]}},"env":{"rollup":"4.23.0"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
|
|
4934
4934
|
|
|
4935
4935
|
const run = () => {
|
|
4936
4936
|
const width = window.innerWidth;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inditextech/weave-store-websockets",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-SNAPSHOT.336.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Jesus Manuel Piñeiro Cid <jesusmpc@inditex.com>",
|
|
@@ -55,9 +55,8 @@
|
|
|
55
55
|
"version:release": "npm version $RELEASE_VERSION -m \"[npm-scripts] prepare release $RELEASE_VERSION\" --tag-version-prefix \"\""
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@inditextech/weave-sdk": "
|
|
59
|
-
"@inditextech/weave-types": "
|
|
60
|
-
"@syncedstore/core": "0.6.0",
|
|
58
|
+
"@inditextech/weave-sdk": "5.0.0-SNAPSHOT.336.1",
|
|
59
|
+
"@inditextech/weave-types": "5.0.0-SNAPSHOT.336.1",
|
|
61
60
|
"ws": "8.18.1",
|
|
62
61
|
"y-websocket": "3.0.0"
|
|
63
62
|
},
|