think-cluster
Advanced tools
Comparing version 1.5.2 to 1.5.3
@@ -59,3 +59,2 @@ const cluster = require('cluster'); | ||
Promise.all(promises).then(data => { | ||
mapPromise.delete(message.action); | ||
message.data = data; | ||
@@ -76,6 +75,6 @@ message.action = `${message.action}_ret`; | ||
assert(helper.isFunction(listener), `${message.action} listener must be a function`); | ||
message.mapReturn = true; | ||
Promise.resolve(listener(message.mapData)).then(data => { | ||
delete message.mapData; | ||
message.data = data; | ||
message.mapReturn = true; | ||
process.send(message); | ||
@@ -119,2 +118,3 @@ }); | ||
defer.resolve(data); | ||
mapPromise.delete(action); | ||
}); | ||
@@ -121,0 +121,0 @@ return defer.promise; |
{ | ||
"name": "think-cluster", | ||
"description": "Cluster manage for ThinkJS", | ||
"version": "1.5.2", | ||
"version": "1.5.3", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "welefen", |
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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
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
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
50672
18
1801
2
9