@thirdweb-dev/crypto
Advanced tools
Comparing version 0.0.0-dev-ed17781-20240229185724 to 0.0.0-dev-f95024147f012f9b752b6cd2215199dca870c39d-20240511003159
@@ -421,3 +421,5 @@ 'use strict'; | ||
} | ||
totalLength ??= arrays.reduce((accumulator, currentValue) => accumulator + currentValue.length, 0); | ||
if (totalLength === null || totalLength === undefined) { | ||
totalLength = arrays.reduce((accumulator, currentValue) => accumulator + currentValue.length, 0); | ||
} | ||
const returnValue = new Uint8Array(totalLength); | ||
@@ -424,0 +426,0 @@ let offset = 0; |
@@ -421,3 +421,5 @@ 'use strict'; | ||
} | ||
totalLength ??= arrays.reduce((accumulator, currentValue) => accumulator + currentValue.length, 0); | ||
if (totalLength === null || totalLength === undefined) { | ||
totalLength = arrays.reduce((accumulator, currentValue) => accumulator + currentValue.length, 0); | ||
} | ||
const returnValue = new Uint8Array(totalLength); | ||
@@ -424,0 +426,0 @@ let offset = 0; |
@@ -399,3 +399,5 @@ import { sha256 as sha256$1 } from '@noble/hashes/sha256'; | ||
} | ||
totalLength ??= arrays.reduce((accumulator, currentValue) => accumulator + currentValue.length, 0); | ||
if (totalLength === null || totalLength === undefined) { | ||
totalLength = arrays.reduce((accumulator, currentValue) => accumulator + currentValue.length, 0); | ||
} | ||
const returnValue = new Uint8Array(totalLength); | ||
@@ -402,0 +404,0 @@ let offset = 0; |
{ | ||
"name": "@thirdweb-dev/crypto", | ||
"version": "0.0.0-dev-ed17781-20240229185724", | ||
"version": "0.0.0-dev-f95024147f012f9b752b6cd2215199dca870c39d-20240511003159", | ||
"main": "dist/thirdweb-dev-crypto.cjs.js", | ||
@@ -13,3 +13,3 @@ "module": "dist/thirdweb-dev-crypto.esm.js", | ||
}, | ||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/utils", | ||
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/utils", | ||
"license": "Apache-2.0", | ||
@@ -31,6 +31,7 @@ "bugs": { | ||
"dependencies": { | ||
"@noble/hashes": "^1.3.2", | ||
"js-sha3": "^0.9.2" | ||
"@noble/hashes": "^1.4.0", | ||
"js-sha3": "^0.9.3" | ||
}, | ||
"devDependencies": { | ||
"eslint": "8.57.0", | ||
"@preconstruct/cli": "2.7.0", | ||
@@ -40,8 +41,8 @@ "@thirdweb-dev/tsconfig": "^0.1.7", | ||
"crypto-js": "^4.2.0", | ||
"eslint-config-thirdweb": "^0.1.7", | ||
"eslint-config-thirdweb": "^0.1.9", | ||
"ethers": "^5.7.2", | ||
"js-awe": "^1.0.62", | ||
"tinybench": "^2.5.1", | ||
"typescript": "^5.3.3", | ||
"viem": "^1.19.1" | ||
"js-awe": "^1.0.65", | ||
"tinybench": "^2.6.0", | ||
"typescript": "5.4.4", | ||
"viem": "2.9.9" | ||
}, | ||
@@ -53,3 +54,3 @@ "engines": { | ||
"format": "prettier --write 'src/**/*'", | ||
"lint": "eslint src/ && bunx publint --strict --level warning", | ||
"lint": "eslint src/", | ||
"fix": "eslint src/ --fix", | ||
@@ -59,3 +60,3 @@ "clean": "rm -rf dist/", | ||
"push": "yalc push", | ||
"test": "bun test", | ||
"test": "vitest run", | ||
"benchmark:aes-encrypt": "bun benchmark/aes-encrypt.ts", | ||
@@ -62,0 +63,0 @@ "benchmark:aes-decrypt": "bun benchmark/aes-decrypt.ts", |
<p align="center"> | ||
<br /> | ||
<a href="https://thirdweb.com"><img src="https://github.com/thirdweb-dev/js/blob/main/packages/sdk/logo.svg?raw=true" width="200" alt=""/></a> | ||
<a href="https://thirdweb.com"><img src="https://github.com/thirdweb-dev/js/blob/main/legacy_packages/sdk/logo.svg?raw=true" width="200" alt=""/></a> | ||
<br /> | ||
@@ -5,0 +5,0 @@ </p> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
108513
2373
11
Updated@noble/hashes@^1.4.0
Updatedjs-sha3@^0.9.3