From 69c9070dd363d644f772d60ae8564341679ba556 Mon Sep 17 00:00:00 2001 From: Ros McMahon Date: Tue, 4 Jul 2023 12:37:28 +0700 Subject: [PATCH] potentially breaking-change fix --- package-lock.json | 4 ++-- package.json | 2 +- src/common/lib/crypto/node-driver.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index e07b08c..cbd8664 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "arweave", - "version": "1.13.8", + "version": "1.14.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "arweave", - "version": "1.13.8", + "version": "1.14.0", "license": "MIT", "dependencies": { "arconnect": "^0.4.2", diff --git a/package.json b/package.json index e802ce4..332f855 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "arweave", - "version": "1.13.8", + "version": "1.14.0", "description": "Arweave JS client library", "main": "./node/index.js", "react-native": "./node/index.js", diff --git a/src/common/lib/crypto/node-driver.ts b/src/common/lib/crypto/node-driver.ts index 4628da2..40f2303 100644 --- a/src/common/lib/crypto/node-driver.ts +++ b/src/common/lib/crypto/node-driver.ts @@ -87,8 +87,8 @@ export default class NodeCryptoDriver implements CryptoInterface { data: Uint8Array, algorithm: string = "SHA-256" ): Promise { - if(typeof data === 'string'){ - throw new TypeError('Data must be a Uint8Array') + if (typeof data === "string") { + throw new TypeError("Data must be a Uint8Array"); } return new Promise((resolve, reject) => { resolve(