chore: bump version (#2146)

This commit is contained in:
Himself65
2023-04-26 01:54:44 -05:00
committed by GitHub
parent fa7baaf5c1
commit d2eba54550
10 changed files with 78 additions and 80 deletions

View File

@@ -422,7 +422,6 @@ describe('api', () => {
const wsUrl = `ws://127.0.0.1:3000/api/sync/`;
const provider = new KeckProvider(wsUrl, workspace.id, workspace.doc, {
params: { token: getLoginStorage()?.token },
// @ts-expect-error ignore the type
awareness: workspace.awarenessStore.awareness,
connect: false,
});
@@ -432,7 +431,6 @@ describe('api', () => {
workspace2.doc,
{
params: { token: getLoginStorage()?.token },
// @ts-expect-error ignore the type
awareness: workspace2.awarenessStore.awareness,
connect: false,
}

View File

@@ -102,16 +102,16 @@ describe('ydoc sync', () => {
BlockSuiteWorkspace.Y.applyUpdate(workspace2.doc, new Uint8Array(binary));
const provider1 = new KeckProvider(wsUrl, workspace1.id, workspace1.doc, {
params: { token: user1Token.token },
// @ts-expect-error ignore the type
awareness: workspace1.awarenessStore.awareness,
// @ts-expect-error
disableBc: true,
connect: false,
});
const provider2 = new KeckProvider(wsUrl, workspace2.id, workspace2.doc, {
params: { token: user2Token.token },
// @ts-expect-error ignore the type
awareness: workspace2.awarenessStore.awareness,
// @ts-expect-error
disableBc: true,
connect: false,
});

View File

@@ -47,9 +47,9 @@ const createAffineWebSocketProvider = (
blockSuiteWorkspace.doc,
{
params: { token: getLoginStorage()?.token ?? '' },
// @ts-expect-error ignore the type
awareness: blockSuiteWorkspace.awarenessStore.awareness,
// we maintain broadcast channel by ourselves
// @ts-expect-error
disableBc: true,
connect: false,
}