@thirdweb-dev/crypto
Advanced tools
Comparing version 0.2.1 to 0.2.2-nightly-35bddd69c-20240321012100
@@ -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.2.1", | ||
"version": "0.2.2-nightly-35bddd69c-20240321012100", | ||
"main": "dist/thirdweb-dev-crypto.cjs.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/thirdweb-dev-crypto.esm.js", |
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
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
108490
2373