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

View File

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

View File

@ -101,7 +101,7 @@ const setupWS = provider => {
// log10(wsUnsuccessfulReconnects).
// The idea is to increase reconnect timeout slowly and have no reconnect
// 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 = () => {
provider.wsLastMessageReceived = time.getUnixTime()