@alwatr/exit-hook 1.1.1 → 1.1.2

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,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.1.2](https://github.com/Alwatr/nanolib/compare/@alwatr/exit-hook@1.1.1...@alwatr/exit-hook@1.1.2) (2024-10-10)
7
+
8
+ ### Dependencies update
9
+
10
+ * bump the development-dependencies group with 10 updates ([fa4aaf0](https://github.com/Alwatr/nanolib/commit/fa4aaf04c907ecae06aa14000ce35216170c15ad)) by @dependabot[bot]
11
+
6
12
  ## [1.1.1](https://github.com/Alwatr/nanolib/compare/@alwatr/exit-hook@1.1.0...@alwatr/exit-hook@1.1.1) (2024-10-08)
7
13
 
8
14
  **Note:** Version bump only for package @alwatr/exit-hook
package/README.md CHANGED
@@ -22,7 +22,7 @@ exitHook(saveAllData);
22
22
 
23
23
  ## Sponsors
24
24
 
25
- The following companies, organizations, and individuals support Nitrobase ongoing maintenance and development. Become a Sponsor to get your logo on our README and website.
25
+ The following companies, organizations, and individuals support Nanolib ongoing maintenance and development. Become a Sponsor to get your logo on our README and website.
26
26
 
27
27
  [![Exir Studio](https://avatars.githubusercontent.com/u/181194967?s=200&v=4)](https://exirstudio.com)
28
28
 
package/dist/main.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /* @alwatr/exit-hook v1.1.1 */
2
- "use strict";var t=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var k=Object.prototype.hasOwnProperty;var m=(o,e)=>{for(var r in e)t(o,r,{get:e[r],enumerable:!0})},u=(o,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of f(e))!k.call(o,c)&&c!==r&&t(o,c,{get:()=>e[c],enumerable:!(i=l(e,c))||i.enumerable});return o};var I=o=>u(t({},"__esModule",{value:!0}),o);var T={};m(T,{exitHook:()=>x});module.exports=I(T);var _=require("@alwatr/dedupe"),p=require("@alwatr/package-tracer");p.packageTracer.add("@alwatr/exit-hook","1.1.1"),(0,_.deduplicate)({name:"@alwatr/exit-hook"});var n=[],s=!1;function x(o){n.push(o)}function a(o){if(console.log("onExit({signal: %s})",o),s!==!0){s=!0;for(let e of n)try{e()}catch(r){console.error("Error in exit hook callback:",r)}(o==="SIGINT"||o==="SIGTERM")&&setTimeout(()=>{process.exit(0)})}}process.once("exit",a),process.once("SIGTERM",a),process.once("SIGINT",a);0&&(module.exports={exitHook});
1
+ /* @alwatr/exit-hook v1.1.2 */
2
+ "use strict";var t=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var k=Object.prototype.hasOwnProperty;var m=(o,e)=>{for(var r in e)t(o,r,{get:e[r],enumerable:!0})},u=(o,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of f(e))!k.call(o,c)&&c!==r&&t(o,c,{get:()=>e[c],enumerable:!(i=l(e,c))||i.enumerable});return o};var I=o=>u(t({},"__esModule",{value:!0}),o);var T={};m(T,{exitHook:()=>x});module.exports=I(T);var _=require("@alwatr/dedupe"),p=require("@alwatr/package-tracer");p.packageTracer.add("@alwatr/exit-hook","1.1.2"),(0,_.deduplicate)({name:"@alwatr/exit-hook"});var n=[],s=!1;function x(o){n.push(o)}function a(o){if(console.log("onExit({signal: %s})",o),s!==!0){s=!0;for(let e of n)try{e()}catch(r){console.error("Error in exit hook callback:",r)}(o==="SIGINT"||o==="SIGTERM")&&setTimeout(()=>{process.exit(0)})}}process.once("exit",a),process.once("SIGTERM",a),process.once("SIGINT",a);0&&(module.exports={exitHook});
3
3
  //# sourceMappingURL=main.cjs.map
package/dist/main.mjs CHANGED
@@ -1,3 +1,3 @@
1
- /* @alwatr/exit-hook v1.1.1 */
2
- import{deduplicate as i}from"@alwatr/dedupe";import{packageTracer as n}from"@alwatr/package-tracer";n.add("@alwatr/exit-hook","1.1.1"),i({name:"@alwatr/exit-hook"});var r=[],c=!1;function p(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(a){console.error("Error in exit hook callback:",a)}(o==="SIGINT"||o==="SIGTERM")&&setTimeout(()=>{process.exit(0)})}}process.once("exit",e),process.once("SIGTERM",e),process.once("SIGINT",e);export{p as exitHook};
1
+ /* @alwatr/exit-hook v1.1.2 */
2
+ import{deduplicate as i}from"@alwatr/dedupe";import{packageTracer as n}from"@alwatr/package-tracer";n.add("@alwatr/exit-hook","1.1.2"),i({name:"@alwatr/exit-hook"});var r=[],c=!1;function p(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(a){console.error("Error in exit hook callback:",a)}(o==="SIGINT"||o==="SIGTERM")&&setTimeout(()=>{process.exit(0)})}}process.once("exit",e),process.once("SIGTERM",e),process.once("SIGINT",e);export{p 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.1.1",
3
+ "version": "1.1.2",
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,15 +65,15 @@
65
65
  "clean": "rm -rfv dist *.tsbuildinfo"
66
66
  },
67
67
  "dependencies": {
68
- "@alwatr/dedupe": "^1.1.1",
69
- "@alwatr/package-tracer": "^1.0.1"
68
+ "@alwatr/dedupe": "^1.1.2",
69
+ "@alwatr/package-tracer": "^1.0.2"
70
70
  },
71
71
  "devDependencies": {
72
- "@alwatr/nano-build": "^1.5.0",
72
+ "@alwatr/nano-build": "^1.6.0",
73
73
  "@alwatr/prettier-config": "^1.0.5",
74
- "@alwatr/tsconfig-base": "^1.3.0",
75
- "@types/node": "^22.7.4",
76
- "typescript": "^5.6.2"
74
+ "@alwatr/tsconfig-base": "^1.3.1",
75
+ "@types/node": "^22.7.5",
76
+ "typescript": "^5.6.3"
77
77
  },
78
- "gitHead": "41bd9f5a9ffe1f7306b24e63684b1895428f44b0"
78
+ "gitHead": "6ad24764eae1b88d7d1bb19217578b02b8c22aaf"
79
79
  }