bump deps
This commit is contained in:
parent
5fffe6b74b
commit
d520889860
3 changed files with 471 additions and 658 deletions
1101
package-lock.json
generated
1101
package-lock.json
generated
File diff suppressed because it is too large
Load diff
24
package.json
24
package.json
|
@ -6,6 +6,10 @@
|
|||
"types": "./dist/src/y-webrtc.d.ts",
|
||||
"module": "./src/y-webrtc.js",
|
||||
"sideEffects": false,
|
||||
"funding": {
|
||||
"type": "GitHub Sponsors ❤",
|
||||
"url": "https://github.com/sponsors/dmonad"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rm -rf dist",
|
||||
"start": "node ./bin/server.js",
|
||||
|
@ -46,22 +50,22 @@
|
|||
]
|
||||
},
|
||||
"dependencies": {
|
||||
"lib0": "^0.2.24",
|
||||
"simple-peer": "^9.6.2",
|
||||
"y-protocols": "^0.2.3"
|
||||
"lib0": "^0.2.28",
|
||||
"simple-peer": "^9.7.2",
|
||||
"y-protocols": "^1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@rollup/plugin-commonjs": "^11.0.2",
|
||||
"@rollup/plugin-node-resolve": "^7.1.1",
|
||||
"@rollup/plugin-commonjs": "^11.1.0",
|
||||
"@rollup/plugin-node-resolve": "^7.1.3",
|
||||
"@types/simple-peer": "^9.6.0",
|
||||
"concurrently": "^5.1.0",
|
||||
"http-server": "^0.12.1",
|
||||
"concurrently": "^5.2.0",
|
||||
"http-server": "^0.12.3",
|
||||
"rollup": "^1.32.1",
|
||||
"rollup-cli": "^1.0.9",
|
||||
"rollup-plugin-terser": "^5.3.0",
|
||||
"standard": "^14.3.3",
|
||||
"typescript": "^3.8.3",
|
||||
"yjs": "^13.0.5"
|
||||
"standard": "^14.3.4",
|
||||
"typescript": "^3.9.5",
|
||||
"yjs": "^13.1.1"
|
||||
},
|
||||
"peerDependenies": {
|
||||
"yjs": "^13.0.0"
|
||||
|
|
|
@ -360,7 +360,7 @@ export class Room {
|
|||
broadcastRoomMessage(this, encoding.toUint8Array(encoderAwareness))
|
||||
}
|
||||
this.doc.on('update', this._docUpdateHandler)
|
||||
this.awareness.on('change', this._awarenessUpdateHandler)
|
||||
this.awareness.on('update', this._awarenessUpdateHandler)
|
||||
window.addEventListener('beforeunload', () => {
|
||||
awarenessProtocol.removeAwarenessStates(this.awareness, [doc.clientID], 'window unload')
|
||||
rooms.forEach(room => {
|
||||
|
@ -416,7 +416,7 @@ export class Room {
|
|||
bc.unsubscribe(this.name, this._bcSubscriber)
|
||||
this.bcconnected = false
|
||||
this.doc.off('update', this._docUpdateHandler)
|
||||
this.awareness.off('change', this._awarenessUpdateHandler)
|
||||
this.awareness.off('update', this._awarenessUpdateHandler)
|
||||
this.webrtcConns.forEach(conn => conn.destroy())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue