Socket
Socket
Sign inDemoInstall

@noble/hashes

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@noble/hashes - npm Package Compare versions

Comparing version 0.5.4 to 0.5.5

2

esm/utils.js

@@ -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}`);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc