Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

blakejs

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blakejs - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

2

package.json
{
"name": "blakejs",
"version": "1.1.1",
"version": "1.1.2",
"description": "Pure Javascript implementation of the BLAKE2b and BLAKE2s hash functions",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -8,6 +8,5 @@ const ERROR_MSG_INPUT = 'Input must be an string, Buffer or Uint8Array'

ret = input
} else if (input instanceof Buffer) {
ret = new Uint8Array(input)
} else if (typeof input === 'string') {
ret = new Uint8Array(Buffer.from(input, 'utf8'))
const encoder = new TextEncoder()
ret = encoder.encode(input)
} else {

@@ -14,0 +13,0 @@ throw new Error(ERROR_MSG_INPUT)

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