think-cluster
Advanced tools
Comparing version 1.5.5 to 1.5.6
@@ -31,3 +31,4 @@ const cluster = require('cluster'); | ||
if (type === 'one') { | ||
if (!aliveWorkers.length || aliveWorkers[0] !== cWorker) return []; | ||
if (!aliveWorkers.length) return []; | ||
if (aliveWorkers.find(w => w === cWorker)) return [cWorker]; | ||
return [aliveWorkers[0]]; | ||
@@ -34,0 +35,0 @@ } |
{ | ||
"name": "think-cluster", | ||
"description": "Cluster manage for ThinkJS", | ||
"version": "1.5.5", | ||
"version": "1.5.6", | ||
"author": { | ||
@@ -22,3 +22,3 @@ "name": "welefen", | ||
"main": "index.js", | ||
"type": "index.d.ts", | ||
"types": "index.d.ts", | ||
"dependencies": { | ||
@@ -25,0 +25,0 @@ "debug": "^2.6.8", |
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
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
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
51002
1808
10