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 3.0.1 to 3.0.2

9

index.js

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

4

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