Socket
Socket
Sign inDemoInstall

exit-hook

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exit-hook - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

12

index.js

@@ -10,2 +10,8 @@ import process from 'node:process';

async function exit(shouldManuallyExit, isSynchronous, signal) {
if (isCalled) {
return;
}
isCalled = true;
if (asyncCallbacks.size > 0 && isSynchronous) {

@@ -21,8 +27,2 @@ console.error([

if (isCalled) {
return;
}
isCalled = true;
const done = (force = false) => {

@@ -29,0 +29,0 @@ if (force === true || shouldManuallyExit === true) {

{
"name": "exit-hook",
"version": "3.1.0",
"version": "3.1.1",
"description": "Run some code when the process exits",

@@ -5,0 +5,0 @@ "license": "MIT",

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