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.2 to 3.1.3

4

index.js

@@ -112,3 +112,3 @@ import process from 'node:process';

export function asyncExitHook(onExit, options) {
export function asyncExitHook(onExit, options = {}) {
if (typeof onExit !== 'function') {

@@ -118,3 +118,3 @@ throw new TypeError('onExit must be a function');

if (typeof options?.minimumWait !== 'number' || options.minimumWait <= 0) {
if (!(typeof options.minimumWait === 'number' && options.minimumWait > 0)) {
throw new TypeError('minimumWait must be set to a positive numeric value');

@@ -121,0 +121,0 @@ }

{
"name": "exit-hook",
"version": "3.1.2",
"version": "3.1.3",
"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