Skip to content

Commit

Permalink
Fix y-protocol imports
Browse files Browse the repository at this point in the history
  • Loading branch information
raimohanska committed Apr 17, 2024
1 parent 4906a57 commit 0e8c3b5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 31 deletions.
4 changes: 2 additions & 2 deletions backend/src/y-websocket-server/WSSharedDoc.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as Y from "yjs"

import * as awarenessProtocol from "y-protocols/dist/awareness.cjs"
import * as syncProtocol from "y-protocols/dist/sync.cjs"
import * as awarenessProtocol from "y-protocols/awareness.js"
import * as syncProtocol from "y-protocols/sync.js"

import * as encoding from "lib0/encoding"
import * as WebSocket from "ws"
Expand Down
4 changes: 2 additions & 2 deletions backend/src/y-websocket-server/YWebSocketServer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as awarenessProtocol from "y-protocols/dist/awareness.cjs"
import * as syncProtocol from "y-protocols/dist/sync.cjs"
import * as awarenessProtocol from "y-protocols/awareness"
import * as syncProtocol from "y-protocols/sync"

import * as decoding from "lib0/decoding"
import * as encoding from "lib0/encoding"
Expand Down
27 changes: 0 additions & 27 deletions backend/src/y-websocket-server/y-protocols.d.ts

This file was deleted.

0 comments on commit 0e8c3b5

Please sign in to comment.