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.2 to 3.0.0-candidate

27

package.json
{
"name": "signal-exit",
"version": "2.1.2",
"version": "3.0.0-candidate",
"description": "when you want to fire an event no matter how a process exits.",
"main": "index.js",
"scripts": {
"test": "standard && nyc tap --timeout=240 ./test/*.js",
"coverage": "nyc report --reporter=text-lcov | coveralls"
"pretest": "standard",
"test": "tap --timeout=240 ./test/*.js --cov",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"release": "standard-version"
},
"files": [
"index.js",
"signals.js"
],
"repository": {
"type": "git",
"url": "https://github.com/bcoe/signal-exit.git"
"url": "https://github.com/tapjs/signal-exit.git"
},

@@ -21,12 +27,13 @@ "keywords": [

"bugs": {
"url": "https://github.com/bcoe/signal-exit/issues"
"url": "https://github.com/tapjs/signal-exit/issues"
},
"homepage": "https://github.com/bcoe/signal-exit",
"homepage": "https://github.com/tapjs/signal-exit",
"devDependencies": {
"chai": "^2.3.0",
"chai": "^3.5.0",
"coveralls": "^2.11.2",
"nyc": "^2.1.2",
"standard": "^3.9.0",
"tap": "1.0.4"
"nyc": "^6.4.4",
"standard": "^7.1.2",
"standard-version": "^2.3.0",
"tap": "^5.7.2"
}
}
# signal-exit
[![Build Status](https://travis-ci.org/bcoe/signal-exit.png)](https://travis-ci.org/bcoe/signal-exit)
[![Coverage Status](https://coveralls.io/repos/bcoe/signal-exit/badge.svg?branch=)](https://coveralls.io/r/bcoe/signal-exit?branch=)
[![Build Status](https://travis-ci.org/tapjs/signal-exit.png)](https://travis-ci.org/tapjs/signal-exit)
[![Coverage](https://coveralls.io/repos/tapjs/signal-exit/badge.svg?branch=master)](https://coveralls.io/r/tapjs/signal-exit?branch=master)
[![NPM version](https://img.shields.io/npm/v/signal-exit.svg)](https://www.npmjs.com/package/signal-exit)
[![Windows Tests](https://img.shields.io/appveyor/ci/bcoe/signal-exit/master.svg?label=Windows%20Tests)](https://ci.appveyor.com/project/bcoe/signal-exit)
[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version)

@@ -7,0 +9,0 @@ When you want to fire an event no matter how a process exits:

@@ -16,3 +16,2 @@ // This is not the set of all possible signals.

// the handler will be fired anyway.
module.exports = [

@@ -26,16 +25,22 @@ 'SIGABRT',

'SIGINT',
'SIGIOT',
'SIGPIPE',
'SIGPROF',
'SIGQUIT',
'SIGSEGV',
'SIGSYS',
'SIGTERM',
'SIGTRAP',
'SIGUSR2',
'SIGVTALRM',
'SIGXCPU',
'SIGXFSZ'
'SIGTERM'
]
if (process.platform !== 'win32') {
module.exports.push(
'SIGVTALRM',
'SIGXCPU',
'SIGXFSZ',
'SIGUSR2',
'SIGTRAP',
'SIGSYS',
'SIGQUIT',
'SIGIOT'
// should detect profiler and enable/disable accordingly.
// see #21
// 'SIGPROF'
)
}
if (process.platform === 'linux') {

@@ -42,0 +47,0 @@ module.exports.push(

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