diff --git a/package-lock.json b/package-lock.json index 999593e..2d279ec 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "arweave", - "version": "1.14.4", + "version": "1.15.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "arweave", - "version": "1.14.4", + "version": "1.15.0", "license": "MIT", "dependencies": { "arconnect": "^0.4.2", diff --git a/package.json b/package.json index 461c0d2..1261dc9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "arweave", - "version": "1.14.4", + "version": "1.15.0", "description": "Arweave JS client library", "main": "./node/index.js", "react-native": "./node/index.js", diff --git a/test/builds.ts b/test/builds.ts index e7f0194..e08f7f8 100644 --- a/test/builds.ts +++ b/test/builds.ts @@ -10,11 +10,11 @@ let globals = global; if (!globals.crypto) { globals.crypto = { subtle: { - generateKey: async () => { }, - importKey: async () => { }, - exportKey: async () => { }, - digest: async () => { }, - sign: async () => { }, + generateKey: async () => {}, + importKey: async () => {}, + exportKey: async () => {}, + digest: async () => {}, + sign: async () => {}, }, }; diff --git a/test/wallets.ts b/test/wallets.ts index ae91692..22660eb 100644 --- a/test/wallets.ts +++ b/test/wallets.ts @@ -37,14 +37,27 @@ describe("Wallets and keys", function () { expect(walletA.n).to.match(/^[a-z0-9-_]{683}$/i); /** extra tests that private matches public */ - const sigA = await arweave.crypto.sign(walletA, new Uint8Array([1, 2, 3, 4])); - const verifyA = await arweave.crypto.verify(walletA.n, new Uint8Array([1, 2, 3, 4]), sigA); + const sigA = await arweave.crypto.sign( + walletA, + new Uint8Array([1, 2, 3, 4]) + ); + const verifyA = await arweave.crypto.verify( + walletA.n, + new Uint8Array([1, 2, 3, 4]), + sigA + ); expect(verifyA).true; - const sigB = await arweave.crypto.sign(walletB, new Uint8Array([1, 2, 3, 4])); - const verifyB = await arweave.crypto.verify(walletB.n, new Uint8Array([1, 2, 3, 4]), sigB); + const sigB = await arweave.crypto.sign( + walletB, + new Uint8Array([1, 2, 3, 4]) + ); + const verifyB = await arweave.crypto.verify( + walletB.n, + new Uint8Array([1, 2, 3, 4]), + sigB + ); expect(verifyB).true; - expect(walletA.d?.length).to.equal(683); expect(walletA.d).to.match(/^[a-z0-9-_]{683}$/i);