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", |
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