Socket
Socket
Sign inDemoInstall

hasha

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hasha - npm Package Compare versions

Comparing version 5.2.1 to 5.2.2

2

package.json
{
"name": "hasha",
"version": "5.2.1",
"version": "5.2.2",
"description": "Hashing made simple. Get the hash of a buffer/string/stream/file.",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -15,3 +15,3 @@ 'use strict';

.on('finish', () => {
const {buffer} = hasher.read();
const {buffer} = new Uint8Array(hasher.read());
resolve({value: buffer, transferList: [buffer]});

@@ -31,4 +31,4 @@ });

const hash = hasher.digest().buffer;
return {value: hash, transferList: [hash]};
const {buffer} = new Uint8Array(hasher.digest());
return {value: buffer, transferList: [buffer]};
}

@@ -35,0 +35,0 @@ };

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