Socket
Socket
Sign inDemoInstall

worker-farm

Package Overview
Dependencies
3
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.5.2 to 1.5.3

8

package.json
{
"name": "worker-farm",
"description": "Distribute processing tasks to child processes with an über-simple API and baked-in durability & custom concurrency options.",
"version": "1.5.2",
"version": "1.5.3",
"homepage": "https://github.com/rvagg/node-worker-farm",

@@ -21,7 +21,7 @@ "authors": [

"dependencies": {
"errno": "^0.1.4",
"xtend": "^4.0.1"
"errno": "~0.1.7",
"xtend": "~4.0.1"
},
"devDependencies": {
"tape": "^4.7.0"
"tape": "~4.9.0"
},

@@ -28,0 +28,0 @@ "scripts": {

@@ -268,5 +268,5 @@ 'use strict'

let time = Date.now() - start
// upper-limit tied closely to `count`, 1.2 is generous but accounts for all the timers
// upper-limit tied closely to `count`, 1.3 is generous but accounts for all the timers
// coming back at the same time and the IPC overhead
t.ok(time > (defer * count) && time < (defer * count * 1.2), 'processed tasks sequentially (' + time + 'ms)')
t.ok(time > (defer * count) && time < (defer * count * 1.3), 'processed tasks sequentially (' + time + ')')
workerFarm.end(child, function () {

@@ -329,3 +329,3 @@ t.ok(true, 'workerFarm ended')

, pids = []
, count = 10
, count = 20
, i = count

@@ -332,0 +332,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc