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

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.1.0 to 5.2.0

10

index.js

@@ -7,12 +7,10 @@ 'use strict';

const requireOptional = (name, defaultValue) => {
const {Worker} = (() => {
try {
return require(name);
return require('worker_threads');
} catch (_) {
return defaultValue;
return {};
}
};
})();
const {Worker} = requireOptional('worker_threads', {});
let worker; // Lazy

@@ -19,0 +17,0 @@ let taskIdCounter = 0;

2

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

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

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