@alwatr/exit-hook 5.5.21 → 5.5.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/main.cjs +2 -2
- package/dist/main.mjs +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [5.5.23](https://github.com/Alwatr/nanolib/compare/@alwatr/exit-hook@5.5.22...@alwatr/exit-hook@5.5.23) (2025-11-15)
|
|
7
|
+
|
|
8
|
+
### 🔗 Dependencies update
|
|
9
|
+
|
|
10
|
+
* bump the npm-dependencies group with 2 updates ([a80b84d](https://github.com/Alwatr/nanolib/commit/a80b84dada6c09b5e5621e7487c8ec13fff3c23a))
|
|
11
|
+
|
|
12
|
+
## [5.5.22](https://github.com/Alwatr/nanolib/compare/@alwatr/exit-hook@5.5.21...@alwatr/exit-hook@5.5.22) (2025-11-15)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @alwatr/exit-hook
|
|
15
|
+
|
|
6
16
|
## [5.5.21](https://github.com/Alwatr/nanolib/compare/@alwatr/exit-hook@5.5.20...@alwatr/exit-hook@5.5.21) (2025-11-04)
|
|
7
17
|
|
|
8
18
|
### 🔗 Dependencies update
|
package/dist/main.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** 📦 @alwatr/exit-hook v5.5.
|
|
2
|
-
__dev_mode__: console.debug("📦 @alwatr/exit-hook v5.5.
|
|
1
|
+
/** 📦 @alwatr/exit-hook v5.5.23 */
|
|
2
|
+
__dev_mode__: console.debug("📦 @alwatr/exit-hook v5.5.23");
|
|
3
3
|
"use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:true}),mod);var main_exports={};__export(main_exports,{exitHook:()=>exitHook});module.exports=__toCommonJS(main_exports);var callbacks=null;var exiting=false;function exitHook(callback){if(callbacks===null){registerExitEvents();callbacks=[]}callbacks.push(callback)}function onExit_(signal){console.log("onExit({signal: %s})",signal);if(exiting===true||callbacks===null)return;exiting=true;for(const callback of callbacks){try{callback()}catch(error){console.error("Error in exit hook callback:",error)}}if(signal==="SIGINT"||signal==="SIGTERM"){setTimeout(()=>{process.exit(0)})}}function registerExitEvents(){process.once("exit",onExit_);process.once("SIGTERM",onExit_);process.once("SIGINT",onExit_)}0&&(module.exports={exitHook});
|
|
4
4
|
//# sourceMappingURL=main.cjs.map
|
package/dist/main.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** 📦 @alwatr/exit-hook v5.5.
|
|
2
|
-
__dev_mode__: console.debug("📦 @alwatr/exit-hook v5.5.
|
|
1
|
+
/** 📦 @alwatr/exit-hook v5.5.23 */
|
|
2
|
+
__dev_mode__: console.debug("📦 @alwatr/exit-hook v5.5.23");
|
|
3
3
|
var callbacks=null;var exiting=false;function exitHook(callback){if(callbacks===null){registerExitEvents();callbacks=[]}callbacks.push(callback)}function onExit_(signal){console.log("onExit({signal: %s})",signal);if(exiting===true||callbacks===null)return;exiting=true;for(const callback of callbacks){try{callback()}catch(error){console.error("Error in exit hook callback:",error)}}if(signal==="SIGINT"||signal==="SIGTERM"){setTimeout(()=>{process.exit(0)})}}function registerExitEvents(){process.once("exit",onExit_);process.once("SIGTERM",onExit_);process.once("SIGINT",onExit_)}export{exitHook};
|
|
4
4
|
//# sourceMappingURL=main.mjs.map
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwatr/exit-hook",
|
|
3
3
|
"description": "A utility for registering exit handlers in Node.js.",
|
|
4
|
-
"version": "5.5.
|
|
4
|
+
"version": "5.5.23",
|
|
5
5
|
"author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",
|
|
6
6
|
"bugs": "https://github.com/Alwatr/nanolib/issues",
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"@alwatr/nano-build": "6.3.
|
|
8
|
+
"@alwatr/nano-build": "6.3.8",
|
|
9
9
|
"@alwatr/prettier-config": "5.0.5",
|
|
10
10
|
"@alwatr/tsconfig-base": "6.0.3",
|
|
11
|
-
"@types/node": "^24.10.
|
|
11
|
+
"@types/node": "^24.10.1",
|
|
12
12
|
"typescript": "^5.9.3"
|
|
13
13
|
},
|
|
14
14
|
"exports": {
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"sideEffects": false,
|
|
73
73
|
"type": "module",
|
|
74
74
|
"types": "./dist/main.d.ts",
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "0368e2b199bb5c1b443a18b28566cd53ce6915ce"
|
|
76
76
|
}
|