@bangle.dev/collab-client
Advanced tools
Comparing version 0.28.5 to 0.28.6
@@ -237,2 +237,3 @@ /** | ||
const { view } = await setupCollabEditor(handlers); | ||
await sleep(0); | ||
expect(handlers.pullEvents).toBeCalled(); | ||
@@ -358,2 +359,4 @@ expect(view.state).toEqualDocAndSelection( | ||
await sleep(0); | ||
sendDocument(); | ||
@@ -490,2 +493,3 @@ await sleep(); | ||
await sleep(0); | ||
typeText(view, 'XX'); | ||
@@ -492,0 +496,0 @@ expect(view.state.doc).toEqualDocument( |
@@ -189,3 +189,5 @@ import { | ||
// TODO is it safe to do this here | ||
connection.init(); | ||
let timer = setTimeout(() => { | ||
connection?.init(); | ||
}, 0); | ||
@@ -195,2 +197,3 @@ return { | ||
destroy() { | ||
clearTimeout(timer); | ||
if (connection) { | ||
@@ -197,0 +200,0 @@ connection.destroy(); |
@@ -22,4 +22,4 @@ import { CollabError, GetDocument, PullEvents, PushEvents } from '@bangle.dev/collab-server'; | ||
onFatalError: OnFatalError; | ||
}): () => (Plugin<any, any> | import("prosemirror-state").Plugin<any, any>)[]; | ||
}): () => Plugin<any, any>[]; | ||
export {}; | ||
//# sourceMappingURL=collab-extension.d.ts.map |
@@ -117,6 +117,9 @@ import { cancelablePromise, CollabError, getIdleCallback, serialExecuteQueue, sleep, uuid, } from '@bangle.dev/collab-server'; | ||
// TODO is it safe to do this here | ||
connection.init(); | ||
let timer = setTimeout(() => { | ||
connection === null || connection === void 0 ? void 0 : connection.init(); | ||
}, 0); | ||
return { | ||
update() { }, | ||
destroy() { | ||
clearTimeout(timer); | ||
if (connection) { | ||
@@ -123,0 +126,0 @@ connection.destroy(); |
{ | ||
"name": "@bangle.dev/collab-client", | ||
"version": "0.28.5", | ||
"version": "0.28.6", | ||
"homepage": "https://bangle.dev", | ||
@@ -40,8 +40,8 @@ "authors": [ | ||
"devDependencies": { | ||
"@bangle.dev/all-base-components": "0.28.5", | ||
"@bangle.dev/collab-server": "0.28.5", | ||
"@bangle.dev/core": "0.28.5", | ||
"@bangle.dev/disk": "0.28.5", | ||
"@bangle.dev/pm": "0.28.5", | ||
"@bangle.dev/test-helpers": "0.28.5", | ||
"@bangle.dev/all-base-components": "0.28.6", | ||
"@bangle.dev/collab-server": "0.28.6", | ||
"@bangle.dev/core": "0.28.6", | ||
"@bangle.dev/disk": "0.28.6", | ||
"@bangle.dev/pm": "0.28.6", | ||
"@bangle.dev/test-helpers": "0.28.6", | ||
"@types/jest": "^26.0.23", | ||
@@ -54,3 +54,3 @@ "@types/node": "^15.12.2", | ||
"dependencies": { | ||
"@bangle.dev/utils": "0.28.5", | ||
"@bangle.dev/utils": "0.28.6", | ||
"prosemirror-collab": "^1.2.2" | ||
@@ -57,0 +57,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2656
147351
+ Added@bangle.dev/utils@0.28.6(transitive)
- Removed@bangle.dev/utils@0.28.5(transitive)
Updated@bangle.dev/utils@0.28.6