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

crypto-hash

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crypto-hash - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

5

index.js
'use strict';
const crypto = require('crypto');
const path = require('path');

@@ -14,2 +15,4 @@ const requireOptional = (name, defaultValue) => {

const threadFilePath = path.join(__dirname, 'thread.js');
let worker; // Lazy

@@ -20,3 +23,3 @@ let taskIdCounter = 0;

const createWorker = () => {
worker = new Worker('./thread.js');
worker = new Worker(threadFilePath);
worker.on('message', message => {

@@ -23,0 +26,0 @@ const task = tasks.get(message.id);

2

package.json
{
"name": "crypto-hash",
"version": "1.2.1",
"version": "1.2.2",
"description": "Tiny hashing module that uses the native crypto API in Node.js and the browser",

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

@@ -18,7 +18,3 @@ # crypto-hash [![Build Status](https://travis-ci.org/sindresorhus/crypto-hash.svg?branch=master)](https://travis-ci.org/sindresorhus/crypto-hash)

<a href="https://www.patreon.com/sindresorhus">
<img src="https://c5.patreon.com/external/logo/become_a_patron_button@2x.png" width="160">
</a>
## Usage

@@ -55,3 +51,3 @@

Type: `Object`
Type: `object`

@@ -70,6 +66,1 @@ ##### outputFormat

- [hasha](https://github.com/sindresorhus/hasha) - Hashing in Node.js made simple
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)
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