bump lib0
This commit is contained in:
parent
a418fa916f
commit
d2f89f3cd3
3 changed files with 18 additions and 18 deletions
24
package-lock.json
generated
24
package-lock.json
generated
|
@ -1367,9 +1367,9 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"isomorphic.js": {
|
"isomorphic.js": {
|
||||||
"version": "0.1.3",
|
"version": "0.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/isomorphic.js/-/isomorphic.js-0.1.3.tgz",
|
"resolved": "https://registry.npmjs.org/isomorphic.js/-/isomorphic.js-0.1.4.tgz",
|
||||||
"integrity": "sha512-pabBRLDwYefSsNS+qCazJ97o7P5xDTrNoxSYFTM09JlZTxPrOEPGKekwqUy3/Np4C4PHnVUXHYsZPOix0jELsA=="
|
"integrity": "sha512-t9zbgkjE7f9f2M6OSW49YEq0lUrSdAllBbWFUZoeck/rnnFae6UlhmDtXWs48VJY3ZpryCoZsRiAiKD44hPIGQ=="
|
||||||
},
|
},
|
||||||
"jest-worker": {
|
"jest-worker": {
|
||||||
"version": "24.9.0",
|
"version": "24.9.0",
|
||||||
|
@ -1447,9 +1447,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lib0": {
|
"lib0": {
|
||||||
"version": "0.2.28",
|
"version": "0.2.32",
|
||||||
"resolved": "https://registry.npmjs.org/lib0/-/lib0-0.2.28.tgz",
|
"resolved": "https://registry.npmjs.org/lib0/-/lib0-0.2.32.tgz",
|
||||||
"integrity": "sha512-3gB5Ow5B/iL5jSEDgNIlkylX5loHrGeTajZXcCFEE8svVhYBVAn9Rt0uw+86bpbw64tFN8gkZ+BSivv8C0ZWdQ==",
|
"integrity": "sha512-cHHKhHTojtvFSsthTk+CKuD17jMHIxuZxYpTzXj9TeQLPNoGNDPl6ax+J6eFETVe3ZvPMh3V0nGfJgGo6QgSvA==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"isomorphic.js": "^0.1.3"
|
"isomorphic.js": "^0.1.3"
|
||||||
}
|
}
|
||||||
|
@ -2526,9 +2526,9 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"typescript": {
|
"typescript": {
|
||||||
"version": "3.9.5",
|
"version": "3.9.6",
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.5.tgz",
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.6.tgz",
|
||||||
"integrity": "sha512-hSAifV3k+i6lEoCJ2k6R2Z/rp/H3+8sdmcn5NrS3/3kE7+RyZXm9aqvxWqjEXHAd8b0pShatpcdMTvEdvAJltQ==",
|
"integrity": "sha512-Pspx3oKAPJtjNwE92YS05HQoY7z2SFyOpHo9MqJor3BXAGNaPUs83CuVp9VISFkSjyRfiTpmKuAYGJB7S7hOxw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"union": {
|
"union": {
|
||||||
|
@ -2687,9 +2687,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"yjs": {
|
"yjs": {
|
||||||
"version": "13.1.1",
|
"version": "13.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/yjs/-/yjs-13.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/yjs/-/yjs-13.2.0.tgz",
|
||||||
"integrity": "sha512-h2c0Qnvjc4lYQdcHqW9G8q/US6as+0uiKhmQyO7TwLdxqFhiwowMfCh0D5f6zwuHyBIIQOTuvyzohwgtAxoHVA==",
|
"integrity": "sha512-0augWOespX5KC8de62GCR8WloZhAyBfEF3ZPDpjZlRs6yho7iFKqarpzxxJgmP8zA/pNJiV1EIpMezSxEdNdDw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"lib0": "^0.2.27"
|
"lib0": "^0.2.27"
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"lib0": "^0.2.28",
|
"lib0": "^0.2.32",
|
||||||
"simple-peer": "^9.7.2",
|
"simple-peer": "^9.7.2",
|
||||||
"y-protocols": "^1.0.0"
|
"y-protocols": "^1.0.0"
|
||||||
},
|
},
|
||||||
|
@ -64,8 +64,8 @@
|
||||||
"rollup-cli": "^1.0.9",
|
"rollup-cli": "^1.0.9",
|
||||||
"rollup-plugin-terser": "^5.3.0",
|
"rollup-plugin-terser": "^5.3.0",
|
||||||
"standard": "^14.3.4",
|
"standard": "^14.3.4",
|
||||||
"typescript": "^3.9.5",
|
"typescript": "^3.9.6",
|
||||||
"yjs": "^13.1.1"
|
"yjs": "^13.2.0"
|
||||||
},
|
},
|
||||||
"peerDependenies": {
|
"peerDependenies": {
|
||||||
"yjs": "^13.0.0"
|
"yjs": "^13.0.0"
|
||||||
|
|
|
@ -15,15 +15,15 @@ export const testReapeatEncryption = async tc => {
|
||||||
* @type {any}
|
* @type {any}
|
||||||
*/
|
*/
|
||||||
let encrypted, decrypted, key
|
let encrypted, decrypted, key
|
||||||
await t.measureTime('Key generation', async () => {
|
await t.measureTimeAsync('Key generation', async () => {
|
||||||
key = await cryptutils.deriveKey(secret, roomName)
|
key = await cryptutils.deriveKey(secret, roomName)
|
||||||
})
|
})
|
||||||
await t.measureTime('Encryption', async () => {
|
await t.measureTimeAsync('Encryption', async () => {
|
||||||
encrypted = await cryptutils.encrypt(data, key)
|
encrypted = await cryptutils.encrypt(data, key)
|
||||||
})
|
})
|
||||||
t.info(`Byte length: ${data.byteLength}b`)
|
t.info(`Byte length: ${data.byteLength}b`)
|
||||||
t.info(`Encrypted length: ${encrypted.length}b`)
|
t.info(`Encrypted length: ${encrypted.length}b`)
|
||||||
await t.measureTime('Decryption', async () => {
|
await t.measureTimeAsync('Decryption', async () => {
|
||||||
decrypted = await cryptutils.decrypt(encrypted, key)
|
decrypted = await cryptutils.decrypt(encrypted, key)
|
||||||
})
|
})
|
||||||
t.compare(data, decrypted)
|
t.compare(data, decrypted)
|
||||||
|
|
Loading…
Reference in a new issue