@noble/hashes
Advanced tools
Comparing version 0.5.4 to 0.5.5
@@ -73,3 +73,3 @@ /*! noble-hashes - MIT License (c) 2021 Paul Miller (paulmillr.com) */ | ||
(!lengths.length || lengths.includes(bytes.length))) { | ||
return true; | ||
return; | ||
} | ||
@@ -76,0 +76,0 @@ throw new TypeError(`Expected ${lengths} bytes, not ${typeof bytes} with length=${bytes.length}`); |
{ | ||
"name": "@noble/hashes", | ||
"version": "0.5.4", | ||
"version": "0.5.5", | ||
"description": "Fast 0-dependency JS implementation of SHA2, SHA3, RIPEMD, BLAKE2/3, HMAC, HKDF, PBKDF2, Scrypt", | ||
@@ -78,3 +78,3 @@ "directories": { | ||
}, | ||
"_sha2": { | ||
"./_sha2": { | ||
"import": "./esm/_sha2.js", | ||
@@ -81,0 +81,0 @@ "default": "./_sha2.js" |
@@ -15,3 +15,3 @@ /*! noble-hashes - MIT License (c) 2021 Paul Miller (paulmillr.com) */ | ||
export declare function assertBool(b: boolean): void; | ||
export declare function assertBytes(bytes: any, ...lengths: number[]): bytes is Uint8Array; | ||
export declare function assertBytes(bytes: Uint8Array, ...lengths: number[]): void; | ||
export declare function assertHash(hash: CHash): void; | ||
@@ -18,0 +18,0 @@ export declare abstract class Hash<T extends Hash<T>> { |
@@ -85,3 +85,3 @@ "use strict"; | ||
(!lengths.length || lengths.includes(bytes.length))) { | ||
return true; | ||
return; | ||
} | ||
@@ -88,0 +88,0 @@ throw new TypeError(`Expected ${lengths} bytes, not ${typeof bytes} with length=${bytes.length}`); |
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
256414