updates yjs and lib0 deps

This commit is contained in:
Kevin Jahns 2019-09-17 20:28:12 +02:00
parent 23e786e113
commit db3a3e3732
3 changed files with 11 additions and 11 deletions

14
package-lock.json generated
View File

@ -971,9 +971,9 @@
} }
}, },
"lib0": { "lib0": {
"version": "0.1.0", "version": "0.1.1",
"resolved": "https://registry.npmjs.org/lib0/-/lib0-0.1.0.tgz", "resolved": "https://registry.npmjs.org/lib0/-/lib0-0.1.1.tgz",
"integrity": "sha512-pkpnv2IJEOb6iwpcJ6BVQu9GkZ9VINKeQ/0BcArHpozqaGQYWe+ychf2p9wHKToHUnivPoGZZ7rFqrxNXjqFBg==" "integrity": "sha512-ghjoI4xL/xzVR1fRLYEOnJjYMguoI2dnDUf5HYOpTfD6R5GPKLml6xNKl4ZfBVmczkIOQPNthhukp6nlgbmDLw=="
}, },
"load-json-file": { "load-json-file": {
"version": "2.0.0", "version": "2.0.0",
@ -1710,12 +1710,12 @@
} }
}, },
"yjs": { "yjs": {
"version": "13.0.0-97", "version": "13.0.0-98",
"resolved": "https://registry.npmjs.org/yjs/-/yjs-13.0.0-97.tgz", "resolved": "https://registry.npmjs.org/yjs/-/yjs-13.0.0-98.tgz",
"integrity": "sha512-OQIBeG1ujayonLWmh8PqaBUUTZhUziFOmYNnggN5UtjtnfHASW1DxYUygYQj068gwQ36+Maqc8tOtallYbZS8A==", "integrity": "sha512-/NX8tDDx2ZFbwnb6E6iFyqMRixSmJcXA95Tiytt/itZsXt33m1udUl8zEpWGnfAR7T+Cj26mF+bLo9cInBKqpg==",
"dev": true, "dev": true,
"requires": { "requires": {
"lib0": "^0.1.0" "lib0": "^0.1.1"
} }
} }
} }

View File

@ -41,16 +41,16 @@
}, },
"dependencies": { "dependencies": {
"y-protocols": "^0.1.0", "y-protocols": "^0.1.0",
"lib0": "^0.1.0" "lib0": "^0.1.1"
}, },
"devDependencies": { "devDependencies": {
"rollup": "^1.1.2", "rollup": "^1.1.2",
"rollup-cli": "^1.0.9", "rollup-cli": "^1.0.9",
"standard": "^12.0.1", "standard": "^12.0.1",
"yjs": "13.0.0-97" "yjs": "13.0.0-98"
}, },
"peerDependenies": { "peerDependenies": {
"yjs": ">=13.0.0-97" "yjs": ">=13.0.0-98"
}, },
"optionalDependencies": { "optionalDependencies": {
"ws": "^6.2.1" "ws": "^6.2.1"

View File

@ -101,7 +101,7 @@ const setupWS = provider => {
// log10(wsUnsuccessfulReconnects). // log10(wsUnsuccessfulReconnects).
// The idea is to increase reconnect timeout slowly and have no reconnect // The idea is to increase reconnect timeout slowly and have no reconnect
// timeout at the beginning (log(1) = 0) // timeout at the beginning (log(1) = 0)
setTimeout(setupWS, math.min(Math.log10(provider.wsUnsuccessfulReconnects + 1) * reconnectTimeoutBase, maxReconnectTimeout), provider) setTimeout(setupWS, math.min(math.log10(provider.wsUnsuccessfulReconnects + 1) * reconnectTimeoutBase, maxReconnectTimeout), provider)
} }
websocket.onopen = () => { websocket.onopen = () => {
provider.wsLastMessageReceived = time.getUnixTime() provider.wsLastMessageReceived = time.getUnixTime()