Skip to content

Commit

Permalink
bump lib0
Browse files Browse the repository at this point in the history
  • Loading branch information
dmonad committed Jul 12, 2020
1 parent a418fa9 commit d2f89f3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
]
},
"dependencies": {
"lib0": "^0.2.28",
"lib0": "^0.2.32",
"simple-peer": "^9.7.2",
"y-protocols": "^1.0.0"
},
Expand All @@ -64,8 +64,8 @@
"rollup-cli": "^1.0.9",
"rollup-plugin-terser": "^5.3.0",
"standard": "^14.3.4",
"typescript": "^3.9.5",
"yjs": "^13.1.1"
"typescript": "^3.9.6",
"yjs": "^13.2.0"
},
"peerDependenies": {
"yjs": "^13.0.0"
Expand Down
6 changes: 3 additions & 3 deletions test/crypto.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ export const testReapeatEncryption = async tc => {
* @type {any}
*/
let encrypted, decrypted, key
await t.measureTime('Key generation', async () => {
await t.measureTimeAsync('Key generation', async () => {
key = await cryptutils.deriveKey(secret, roomName)
})
await t.measureTime('Encryption', async () => {
await t.measureTimeAsync('Encryption', async () => {
encrypted = await cryptutils.encrypt(data, key)
})
t.info(`Byte length: ${data.byteLength}b`)
t.info(`Encrypted length: ${encrypted.length}b`)
await t.measureTime('Decryption', async () => {
await t.measureTimeAsync('Decryption', async () => {
decrypted = await cryptutils.decrypt(encrypted, key)
})
t.compare(data, decrypted)
Expand Down

0 comments on commit d2f89f3

Please sign in to comment.