@stacksjs/actions 0.75.378 → 0.75.379
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/dist/dev/exit-with-parent.js +1 -1
- package/package.json +40 -40
|
@@ -1 +1 @@
|
|
|
1
|
-
import process from"node:process";const SIGNALS=["SIGINT","SIGTERM","SIGHUP"];export function exitWithParent(options={}){const{intervalMs=2000,onExit}=options,parentPid=process.ppid;let stopped=!1;const stop=()=>{if(stopped)return;stopped=!0;clearInterval(timer);for(const signal of SIGNALS)process.off(signal,handleSignal)},quit=()=>{stop();try{onExit?.()}catch{}process.exit(0)},handleSignal=()=>quit(),timer=setInterval(()=>{if(process.ppid
|
|
1
|
+
import process from"node:process";const SIGNALS=["SIGINT","SIGTERM","SIGHUP"];export function exitWithParent(options={}){const{intervalMs=2000,onExit}=options,parentPid=process.ppid;let stopped=!1;const stop=()=>{if(stopped)return;stopped=!0;clearInterval(timer);for(const signal of SIGNALS)process.off(signal,handleSignal)},quit=(reason)=>{stop();console.log(` stacks ${reason} - stopping this dev process`);try{onExit?.()}catch{}process.exit(0)},handleSignal=(signal)=>quit(`received ${signal}`),timer=setInterval(()=>{if(process.ppid===parentPid&&process.ppid!==1)return;quit(parentPid===1?"started with no parent to watch (ppid 1)":`saw the parent process (pid ${parentPid}) go away`)},intervalMs);timer.unref?.();for(const signal of SIGNALS)process.on(signal,handleSignal);return stop}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/actions",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.379",
|
|
6
6
|
"description": "The Stacks actions.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"contributors": [
|
|
@@ -66,54 +66,54 @@
|
|
|
66
66
|
"prepublishOnly": "bun run build"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@stacksjs/action-runner": "0.75.
|
|
70
|
-
"@stacksjs/ai": "0.75.
|
|
71
|
-
"@stacksjs/analytics": "0.75.
|
|
72
|
-
"@stacksjs/api": "0.75.
|
|
73
|
-
"@stacksjs/auth": "0.75.
|
|
74
|
-
"@stacksjs/build": "0.75.
|
|
69
|
+
"@stacksjs/action-runner": "0.75.379",
|
|
70
|
+
"@stacksjs/ai": "0.75.379",
|
|
71
|
+
"@stacksjs/analytics": "0.75.379",
|
|
72
|
+
"@stacksjs/api": "0.75.379",
|
|
73
|
+
"@stacksjs/auth": "0.75.379",
|
|
74
|
+
"@stacksjs/build": "0.75.379",
|
|
75
75
|
"@stacksjs/bumpx": "^0.2.26",
|
|
76
76
|
"@stacksjs/bunpress": "^0.2.15",
|
|
77
|
-
"@stacksjs/cli": "0.75.
|
|
78
|
-
"@stacksjs/cloud": "0.75.
|
|
79
|
-
"@stacksjs/cms": "0.75.
|
|
77
|
+
"@stacksjs/cli": "0.75.379",
|
|
78
|
+
"@stacksjs/cloud": "0.75.379",
|
|
79
|
+
"@stacksjs/cms": "0.75.379",
|
|
80
80
|
"@stacksjs/components": "0.2.744",
|
|
81
|
-
"@stacksjs/config": "0.75.
|
|
82
|
-
"@stacksjs/database": "0.75.
|
|
83
|
-
"@stacksjs/desktop-build": "0.75.
|
|
84
|
-
"@stacksjs/dns": "0.75.
|
|
85
|
-
"@stacksjs/enums": "0.75.
|
|
86
|
-
"@stacksjs/env": "0.75.
|
|
87
|
-
"@stacksjs/error-handling": "0.75.
|
|
88
|
-
"@stacksjs/github": "0.75.
|
|
81
|
+
"@stacksjs/config": "0.75.379",
|
|
82
|
+
"@stacksjs/database": "0.75.379",
|
|
83
|
+
"@stacksjs/desktop-build": "0.75.379",
|
|
84
|
+
"@stacksjs/dns": "0.75.379",
|
|
85
|
+
"@stacksjs/enums": "0.75.379",
|
|
86
|
+
"@stacksjs/env": "0.75.379",
|
|
87
|
+
"@stacksjs/error-handling": "0.75.379",
|
|
88
|
+
"@stacksjs/github": "0.75.379",
|
|
89
89
|
"@stacksjs/gitit": "^0.2.5",
|
|
90
|
-
"@stacksjs/i18n": "0.75.
|
|
91
|
-
"@stacksjs/image": "0.75.
|
|
92
|
-
"@stacksjs/logging": "0.75.
|
|
90
|
+
"@stacksjs/i18n": "0.75.379",
|
|
91
|
+
"@stacksjs/image": "0.75.379",
|
|
92
|
+
"@stacksjs/logging": "0.75.379",
|
|
93
93
|
"@stacksjs/logsmith": "^0.2.11",
|
|
94
|
-
"@stacksjs/mobile": "0.75.
|
|
95
|
-
"@stacksjs/orm": "0.75.
|
|
96
|
-
"@stacksjs/path": "0.75.
|
|
97
|
-
"@stacksjs/payments": "0.75.
|
|
98
|
-
"@stacksjs/queue": "0.75.
|
|
99
|
-
"@stacksjs/registry": "0.75.
|
|
100
|
-
"@stacksjs/router": "0.75.
|
|
94
|
+
"@stacksjs/mobile": "0.75.379",
|
|
95
|
+
"@stacksjs/orm": "0.75.379",
|
|
96
|
+
"@stacksjs/path": "0.75.379",
|
|
97
|
+
"@stacksjs/payments": "0.75.379",
|
|
98
|
+
"@stacksjs/queue": "0.75.379",
|
|
99
|
+
"@stacksjs/registry": "0.75.379",
|
|
100
|
+
"@stacksjs/router": "0.75.379",
|
|
101
101
|
"@stacksjs/rpx": "^0.11.54",
|
|
102
|
-
"@stacksjs/scheduler": "0.75.
|
|
103
|
-
"@stacksjs/search-engine": "0.75.
|
|
104
|
-
"@stacksjs/security": "0.75.
|
|
105
|
-
"@stacksjs/server": "0.75.
|
|
106
|
-
"@stacksjs/sites": "0.75.
|
|
107
|
-
"@stacksjs/storage": "0.75.
|
|
108
|
-
"@stacksjs/strings": "0.75.
|
|
102
|
+
"@stacksjs/scheduler": "0.75.379",
|
|
103
|
+
"@stacksjs/search-engine": "0.75.379",
|
|
104
|
+
"@stacksjs/security": "0.75.379",
|
|
105
|
+
"@stacksjs/server": "0.75.379",
|
|
106
|
+
"@stacksjs/sites": "0.75.379",
|
|
107
|
+
"@stacksjs/storage": "0.75.379",
|
|
108
|
+
"@stacksjs/strings": "0.75.379",
|
|
109
109
|
"@stacksjs/stx": "0.2.744",
|
|
110
110
|
"@stacksjs/tlsx": "^0.13.19",
|
|
111
111
|
"@stacksjs/ts-cloud": "^0.16.89",
|
|
112
112
|
"@stacksjs/ts-md": "^0.1.1",
|
|
113
|
-
"@stacksjs/tunnel": "0.75.
|
|
114
|
-
"@stacksjs/types": "0.75.
|
|
115
|
-
"@stacksjs/utils": "0.75.
|
|
116
|
-
"@stacksjs/whois": "0.75.
|
|
113
|
+
"@stacksjs/tunnel": "0.75.379",
|
|
114
|
+
"@stacksjs/types": "0.75.379",
|
|
115
|
+
"@stacksjs/utils": "0.75.379",
|
|
116
|
+
"@stacksjs/whois": "0.75.379",
|
|
117
117
|
"bun-plugin-stx": "0.2.744"
|
|
118
118
|
},
|
|
119
119
|
"peerDependencies": {
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
131
|
"devDependencies": {
|
|
132
|
-
"@stacksjs/validation": "0.75.
|
|
132
|
+
"@stacksjs/validation": "0.75.379",
|
|
133
133
|
"better-dx": "^0.2.24"
|
|
134
134
|
}
|
|
135
135
|
}
|