@alwatr/exit-hook 1.0.15 → 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,10 @@
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
+
6
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)
7
11
 
8
12
  ### Dependencies update
package/dist/main.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /* @alwatr/exit-hook v1.0.15 */
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.15");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.15 */
2
- import{definePackage as n}from"@alwatr/dedupe";n("@alwatr/exit-hook","1.0.15");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.15",
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.9",
68
+ "@alwatr/nano-build": "^1.3.10",
69
69
  "@alwatr/prettier-config": "^1.0.4",
70
70
  "@alwatr/tsconfig-base": "^1.2.0",
71
71
  "@types/node": "^22.5.5",
72
72
  "typescript": "^5.6.2"
73
73
  },
74
74
  "dependencies": {
75
- "@alwatr/dedupe": "^1.0.13"
75
+ "@alwatr/dedupe": "^1.0.14"
76
76
  },
77
- "gitHead": "30b89ecac526d2549d7361843ec47f8dde056d45"
77
+ "gitHead": "6d82461cfdee936b30cbc67473a5a5048773255a"
78
78
  }