@alwatr/exit-hook 1.0.10 → 1.0.11
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 +6 -0
- package/dist/main.cjs +1 -1
- package/dist/main.mjs +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
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
|
+
## [1.0.11](https://github.com/Alwatr/nanolib/compare/@alwatr/exit-hook@1.0.10...@alwatr/exit-hook@1.0.11) (2024-07-04)
|
|
7
|
+
|
|
8
|
+
### Dependencies update
|
|
9
|
+
|
|
10
|
+
* update all dependencies ([0e908b4](https://github.com/Alwatr/nanolib/commit/0e908b476a6b976ec2447f864c8cafcbb8a0f099)) by @
|
|
11
|
+
|
|
6
12
|
## [1.0.10](https://github.com/Alwatr/nanolib/compare/@alwatr/exit-hook@1.0.9...@alwatr/exit-hook@1.0.10) (2024-05-12)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
package/dist/main.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/* @alwatr/exit-hook v1.0.
|
|
1
|
+
/* @alwatr/exit-hook v1.0.11 */
|
|
2
2
|
"use strict";var t=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var x=Object.prototype.hasOwnProperty;var a=(o,e)=>{for(var c in e)t(o,c,{get:e[c],enumerable:!0})},f=(o,e,c,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of u(e))!x.call(o,r)&&r!==c&&t(o,r,{get:()=>e[r],enumerable:!(i=I(e,r))||i.enumerable});return o};var T=o=>f(t({},"__esModule",{value:!0}),o);var E={};a(E,{exitHook:()=>p});module.exports=T(E);var n=[],l=!1;function p(o){n.push(o)}function s(o){if(console.log("onExit({signal: %s, %s})",o),l!==!0){l=!0;for(let e of n)try{e()}catch(c){console.error("Error in exit hook callback:",c)}(o==="SIGINT"||o==="SIGTERM")&&setTimeout(()=>{process.exit(0)})}}process.once("exit",s),process.once("SIGTERM",s),process.once("SIGINT",s);0&&(module.exports={exitHook});
|
|
3
3
|
//# sourceMappingURL=main.cjs.map
|
package/dist/main.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/* @alwatr/exit-hook v1.0.
|
|
1
|
+
/* @alwatr/exit-hook v1.0.11 */
|
|
2
2
|
var c=[],r=!1;function i(o){c.push(o)}function e(o){if(console.log("onExit({signal: %s, %s})",o),r!==!0){r=!0;for(let t of c)try{t()}catch(s){console.error("Error in exit hook callback:",s)}(o==="SIGINT"||o==="SIGTERM")&&setTimeout(()=>{process.exit(0)})}}process.once("exit",e),process.once("SIGTERM",e),process.once("SIGINT",e);export{i as exitHook};
|
|
3
3
|
//# sourceMappingURL=main.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwatr/exit-hook",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "A utility for registering exit handlers in Node.js.",
|
|
5
5
|
"author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",
|
|
6
6
|
"keywords": [
|
|
@@ -65,11 +65,11 @@
|
|
|
65
65
|
"clean": "rm -rfv dist *.tsbuildinfo"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@alwatr/nano-build": "^1.3.
|
|
68
|
+
"@alwatr/nano-build": "^1.3.7",
|
|
69
69
|
"@alwatr/prettier-config": "^1.0.4",
|
|
70
|
-
"@alwatr/tsconfig-base": "^1.
|
|
71
|
-
"@types/node": "^20.
|
|
72
|
-
"typescript": "^5.
|
|
70
|
+
"@alwatr/tsconfig-base": "^1.2.0",
|
|
71
|
+
"@types/node": "^20.14.9",
|
|
72
|
+
"typescript": "^5.5.3"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "98b9c29f927d9487d318d109556c873b13ea2056"
|
|
75
75
|
}
|