mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
chore: bump version (#2146)
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
});
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user