diff --git a/package-lock.json b/package-lock.json index 97e1f52..198a62e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1367,9 +1367,9 @@ "dev": true }, "isomorphic.js": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/isomorphic.js/-/isomorphic.js-0.1.3.tgz", - "integrity": "sha512-pabBRLDwYefSsNS+qCazJ97o7P5xDTrNoxSYFTM09JlZTxPrOEPGKekwqUy3/Np4C4PHnVUXHYsZPOix0jELsA==" + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/isomorphic.js/-/isomorphic.js-0.1.4.tgz", + "integrity": "sha512-t9zbgkjE7f9f2M6OSW49YEq0lUrSdAllBbWFUZoeck/rnnFae6UlhmDtXWs48VJY3ZpryCoZsRiAiKD44hPIGQ==" }, "jest-worker": { "version": "24.9.0", @@ -1447,9 +1447,9 @@ } }, "lib0": { - "version": "0.2.28", - "resolved": "https://registry.npmjs.org/lib0/-/lib0-0.2.28.tgz", - "integrity": "sha512-3gB5Ow5B/iL5jSEDgNIlkylX5loHrGeTajZXcCFEE8svVhYBVAn9Rt0uw+86bpbw64tFN8gkZ+BSivv8C0ZWdQ==", + "version": "0.2.32", + "resolved": "https://registry.npmjs.org/lib0/-/lib0-0.2.32.tgz", + "integrity": "sha512-cHHKhHTojtvFSsthTk+CKuD17jMHIxuZxYpTzXj9TeQLPNoGNDPl6ax+J6eFETVe3ZvPMh3V0nGfJgGo6QgSvA==", "requires": { "isomorphic.js": "^0.1.3" } @@ -2526,9 +2526,9 @@ "dev": true }, "typescript": { - "version": "3.9.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.5.tgz", - "integrity": "sha512-hSAifV3k+i6lEoCJ2k6R2Z/rp/H3+8sdmcn5NrS3/3kE7+RyZXm9aqvxWqjEXHAd8b0pShatpcdMTvEdvAJltQ==", + "version": "3.9.6", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.6.tgz", + "integrity": "sha512-Pspx3oKAPJtjNwE92YS05HQoY7z2SFyOpHo9MqJor3BXAGNaPUs83CuVp9VISFkSjyRfiTpmKuAYGJB7S7hOxw==", "dev": true }, "union": { @@ -2687,9 +2687,9 @@ } }, "yjs": { - "version": "13.1.1", - "resolved": "https://registry.npmjs.org/yjs/-/yjs-13.1.1.tgz", - "integrity": "sha512-h2c0Qnvjc4lYQdcHqW9G8q/US6as+0uiKhmQyO7TwLdxqFhiwowMfCh0D5f6zwuHyBIIQOTuvyzohwgtAxoHVA==", + "version": "13.2.0", + "resolved": "https://registry.npmjs.org/yjs/-/yjs-13.2.0.tgz", + "integrity": "sha512-0augWOespX5KC8de62GCR8WloZhAyBfEF3ZPDpjZlRs6yho7iFKqarpzxxJgmP8zA/pNJiV1EIpMezSxEdNdDw==", "dev": true, "requires": { "lib0": "^0.2.27" diff --git a/package.json b/package.json index 3e16b4d..968249c 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ ] }, "dependencies": { - "lib0": "^0.2.28", + "lib0": "^0.2.32", "simple-peer": "^9.7.2", "y-protocols": "^1.0.0" }, @@ -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" diff --git a/test/crypto.test.js b/test/crypto.test.js index da9bea6..898cf35 100644 --- a/test/crypto.test.js +++ b/test/crypto.test.js @@ -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)