@alwatr/exit-hook 1.0.13 → 1.0.15
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 +13 -0
- package/dist/main.cjs +2 -2
- package/dist/main.mjs +2 -2
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
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.15](https://github.com/Alwatr/nanolib/compare/@alwatr/exit-hook@1.0.14...@alwatr/exit-hook@1.0.15) (2024-09-15)
|
|
7
|
+
|
|
8
|
+
### Dependencies update
|
|
9
|
+
|
|
10
|
+
* bump the development-dependencies group across 1 directory with 10 updates ([9ed98ff](https://github.com/Alwatr/nanolib/commit/9ed98ffd0668d5a36e255c82edab3af53bffda8f)) by @dependabot[bot]
|
|
11
|
+
* update ([c36ed50](https://github.com/Alwatr/nanolib/commit/c36ed50f68da2f5608ccd96119963a16cfacb4ce)) by @AliMD
|
|
12
|
+
|
|
13
|
+
## [1.0.14](https://github.com/Alwatr/nanolib/compare/@alwatr/exit-hook@1.0.13...@alwatr/exit-hook@1.0.14) (2024-08-31)
|
|
14
|
+
|
|
15
|
+
### Miscellaneous Chores
|
|
16
|
+
|
|
17
|
+
* Update package.json exports for [@alwatr](https://github.com/alwatr) packages ([dacb362](https://github.com/Alwatr/nanolib/commit/dacb362b145e3c51b4aba00ff643687a3fac11d2)) by @
|
|
18
|
+
|
|
6
19
|
## [1.0.13](https://github.com/Alwatr/nanolib/compare/@alwatr/exit-hook@1.0.12...@alwatr/exit-hook@1.0.13) (2024-08-31)
|
|
7
20
|
|
|
8
21
|
### Bug Fixes
|
package/dist/main.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/* @alwatr/exit-hook v1.0.
|
|
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.
|
|
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});
|
|
3
3
|
//# sourceMappingURL=main.cjs.map
|
package/dist/main.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/* @alwatr/exit-hook v1.0.
|
|
2
|
-
import{definePackage as n}from"@alwatr/dedupe";n("@alwatr/exit-hook","1.0.
|
|
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};
|
|
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.15",
|
|
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": [
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"types": "./dist/main.d.ts",
|
|
28
28
|
"exports": {
|
|
29
29
|
".": {
|
|
30
|
+
"types": "./dist/main.d.ts",
|
|
30
31
|
"import": "./dist/main.mjs",
|
|
31
|
-
"require": "./dist/main.cjs"
|
|
32
|
-
"types": "./dist/main.d.ts"
|
|
32
|
+
"require": "./dist/main.cjs"
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
"license": "MIT",
|
|
@@ -65,14 +65,14 @@
|
|
|
65
65
|
"clean": "rm -rfv dist *.tsbuildinfo"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@alwatr/nano-build": "^1.3.
|
|
68
|
+
"@alwatr/nano-build": "^1.3.9",
|
|
69
69
|
"@alwatr/prettier-config": "^1.0.4",
|
|
70
70
|
"@alwatr/tsconfig-base": "^1.2.0",
|
|
71
|
-
"@types/node": "^22.5.
|
|
72
|
-
"typescript": "^5.
|
|
71
|
+
"@types/node": "^22.5.5",
|
|
72
|
+
"typescript": "^5.6.2"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@alwatr/dedupe": "^1.0.
|
|
75
|
+
"@alwatr/dedupe": "^1.0.13"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "30b89ecac526d2549d7361843ec47f8dde056d45"
|
|
78
78
|
}
|