think-cluster
Advanced tools
Comparing version 1.5.6 to 1.5.7
@@ -31,4 +31,3 @@ const cluster = require('cluster'); | ||
if (type === 'one') { | ||
if (!aliveWorkers.length) return []; | ||
if (aliveWorkers.find(w => w === cWorker)) return [cWorker]; | ||
if (!aliveWorkers.length || aliveWorkers[0] !== cWorker) return []; | ||
return [aliveWorkers[0]]; | ||
@@ -35,0 +34,0 @@ } |
{ | ||
"name": "think-cluster", | ||
"description": "Cluster manage for ThinkJS", | ||
"version": "1.5.6", | ||
"version": "1.5.7", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "welefen", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
9
50966
1807