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(