signal-exit
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -98,2 +98,3 @@ // Note: since nyc uses this module to output coverage, any lines | ||
var loaded = false | ||
function load () { | ||
@@ -100,0 +101,0 @@ if (loaded) { |
{ | ||
"name": "signal-exit", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "when you want to fire an event no matter how a process exits.", | ||
@@ -27,3 +27,3 @@ "main": "index.js", | ||
"coveralls": "^2.11.2", | ||
"nyc": "^2.0.6", | ||
"nyc": "^2.1.1", | ||
"standard": "^3.9.0", | ||
@@ -30,0 +30,0 @@ "tap": "1.0.4" |
@@ -33,3 +33,2 @@ // This is not the set of all possible signals. | ||
'SIGTRAP', | ||
'SIGUSR1', | ||
'SIGUSR2', | ||
@@ -50,2 +49,1 @@ 'SIGVTALRM', | ||
} | ||
@@ -7,4 +7,11 @@ var exec = require('child_process').exec, | ||
// process.exitCode has problems prior to: | ||
// https://github.com/joyent/node/commit/c0d81f90996667a658aa4403123e02161262506a | ||
function isZero10 () { | ||
return /^v0\.10\..+$/.test(process.version) | ||
} | ||
// process.exit(code), process.exitCode = code, normal exit | ||
var types = [ 'explicit', 'code', 'normal' ] | ||
var types = [ 'explicit', 'normal' ] | ||
if (!isZero10()) types.push('code') | ||
@@ -17,3 +24,4 @@ // initial code that is set. Note, for 'normal' exit, there's no | ||
// change to 5 and then to 2 with exit(), change twice with exitcode | ||
var changes = [ 'nochange', 'change', 'code', 'twice', 'twicecode'] | ||
var changes = [ 'nochange', 'change', 'twice'] | ||
if (!isZero10()) changes.push('code', 'twicecode') | ||
@@ -20,0 +28,0 @@ // use signal-exit, use process.on('exit') |
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
44132
1661
6