signal-exit
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -22,2 +22,11 @@ // Note: since nyc uses this module to output coverage, any lines | ||
// Because this emitter is a global, we have to check to see if a | ||
// previous version of this library failed to enable infinite listeners. | ||
// I know what you're about to say. But literally everything about | ||
// signal-exit is a compromise with evil. Get used to it. | ||
if (!emitter.infinite) { | ||
emitter.setMaxListeners(Infinity) | ||
emitter.infinite = true | ||
} | ||
module.exports = function (cb, opts) { | ||
@@ -24,0 +33,0 @@ assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler') |
{ | ||
"name": "signal-exit", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "when you want to fire an event no matter how a process exits.", | ||
@@ -36,4 +36,4 @@ "main": "index.js", | ||
"standard-version": "^2.3.0", | ||
"tap": "^7.1.0" | ||
"tap": "^8.0.1" | ||
} | ||
} |
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
9429
187
1