Skip to content

Commit

Permalink
potentially breaking-change fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rosmcmahon committed Jul 4, 2023
1 parent 03e4973 commit 69c9070
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/common/lib/crypto/node-driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ export default class NodeCryptoDriver implements CryptoInterface {
data: Uint8Array,
algorithm: string = "SHA-256"
): Promise<Uint8Array> {
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(
Expand Down

0 comments on commit 69c9070

Please sign in to comment.