crypto-hash
Advanced tools
Comparing version 1.2.1 to 1.2.2
'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); |
{ | ||
"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) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
186
9251
64