@alwatr/exit-hook 1.0.14 → 1.0.16

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 CHANGED
@@ -3,6 +3,17 @@
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.16](https://github.com/Alwatr/nanolib/compare/@alwatr/exit-hook@1.0.15...@alwatr/exit-hook@1.0.16) (2024-09-21)
7
+
8
+ **Note:** Version bump only for package @alwatr/exit-hook
9
+
10
+ ## [1.0.15](https://github.com/Alwatr/nanolib/compare/@alwatr/exit-hook@1.0.14...@alwatr/exit-hook@1.0.15) (2024-09-15)
11
+
12
+ ### Dependencies update
13
+
14
+ * bump the development-dependencies group across 1 directory with 10 updates ([9ed98ff](https://github.com/Alwatr/nanolib/commit/9ed98ffd0668d5a36e255c82edab3af53bffda8f)) by @dependabot[bot]
15
+ * update ([c36ed50](https://github.com/Alwatr/nanolib/commit/c36ed50f68da2f5608ccd96119963a16cfacb4ce)) by @AliMD
16
+
6
17
  ## [1.0.14](https://github.com/Alwatr/nanolib/compare/@alwatr/exit-hook@1.0.13...@alwatr/exit-hook@1.0.14) (2024-08-31)
7
18
 
8
19
  ### Miscellaneous Chores
package/dist/main.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /* @alwatr/exit-hook v1.0.14 */
2
- "use strict";var t=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var I=Object.prototype.hasOwnProperty;var k=(o,e)=>{for(var r in e)t(o,r,{get:e[r],enumerable:!0})},p=(o,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of x(e))!I.call(o,c)&&c!==r&&t(o,c,{get:()=>e[c],enumerable:!(n=f(e,c))||n.enumerable});return o};var u=o=>p(t({},"__esModule",{value:!0}),o);var E={};k(E,{exitHook:()=>T});module.exports=u(E);var l=require("@alwatr/dedupe");(0,l.definePackage)("@alwatr/exit-hook","1.0.14");var s=[],a=!1;function T(o){s.push(o)}function i(o){if(console.log("onExit({signal: %s})",o),a!==!0){a=!0;for(let e of s)try{e()}catch(r){console.error("Error in exit hook callback:",r)}(o==="SIGINT"||o==="SIGTERM")&&setTimeout(()=>{process.exit(0)})}}process.once("exit",i),process.once("SIGTERM",i),process.once("SIGINT",i);0&&(module.exports={exitHook});
1
+ /* @alwatr/exit-hook v1.0.16 */
2
+ "use strict";var t=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var I=Object.prototype.hasOwnProperty;var k=(o,e)=>{for(var r in e)t(o,r,{get:e[r],enumerable:!0})},p=(o,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of x(e))!I.call(o,c)&&c!==r&&t(o,c,{get:()=>e[c],enumerable:!(n=f(e,c))||n.enumerable});return o};var u=o=>p(t({},"__esModule",{value:!0}),o);var E={};k(E,{exitHook:()=>T});module.exports=u(E);var l=require("@alwatr/dedupe");(0,l.definePackage)("@alwatr/exit-hook","1.0.16");var s=[],a=!1;function T(o){s.push(o)}function i(o){if(console.log("onExit({signal: %s})",o),a!==!0){a=!0;for(let e of s)try{e()}catch(r){console.error("Error in exit hook callback:",r)}(o==="SIGINT"||o==="SIGTERM")&&setTimeout(()=>{process.exit(0)})}}process.once("exit",i),process.once("SIGTERM",i),process.once("SIGINT",i);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.14 */
2
- import{definePackage as n}from"@alwatr/dedupe";n("@alwatr/exit-hook","1.0.14");var r=[],c=!1;function a(o){r.push(o)}function e(o){if(console.log("onExit({signal: %s})",o),c!==!0){c=!0;for(let t of r)try{t()}catch(i){console.error("Error in exit hook callback:",i)}(o==="SIGINT"||o==="SIGTERM")&&setTimeout(()=>{process.exit(0)})}}process.once("exit",e),process.once("SIGTERM",e),process.once("SIGINT",e);export{a as exitHook};
1
+ /* @alwatr/exit-hook v1.0.16 */
2
+ import{definePackage as n}from"@alwatr/dedupe";n("@alwatr/exit-hook","1.0.16");var r=[],c=!1;function a(o){r.push(o)}function e(o){if(console.log("onExit({signal: %s})",o),c!==!0){c=!0;for(let t of r)try{t()}catch(i){console.error("Error in exit hook callback:",i)}(o==="SIGINT"||o==="SIGTERM")&&setTimeout(()=>{process.exit(0)})}}process.once("exit",e),process.once("SIGTERM",e),process.once("SIGINT",e);export{a 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.14",
3
+ "version": "1.0.16",
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,14 +65,14 @@
65
65
  "clean": "rm -rfv dist *.tsbuildinfo"
66
66
  },
67
67
  "devDependencies": {
68
- "@alwatr/nano-build": "^1.3.8",
68
+ "@alwatr/nano-build": "^1.3.10",
69
69
  "@alwatr/prettier-config": "^1.0.4",
70
70
  "@alwatr/tsconfig-base": "^1.2.0",
71
- "@types/node": "^22.5.1",
72
- "typescript": "^5.5.4"
71
+ "@types/node": "^22.5.5",
72
+ "typescript": "^5.6.2"
73
73
  },
74
74
  "dependencies": {
75
- "@alwatr/dedupe": "^1.0.12"
75
+ "@alwatr/dedupe": "^1.0.14"
76
76
  },
77
- "gitHead": "1f163e85c5f0c769d5dcdf232e8042c64ec1854d"
77
+ "gitHead": "6d82461cfdee936b30cbc67473a5a5048773255a"
78
78
  }