Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

signal-exit

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

signal-exit - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

1

index.js

@@ -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) {

4

package.json
{
"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')

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc