Skip to content

Commit 7342c24

Browse files
committed
deps: foreground-child@3.3.0
1 parent 2986f4e commit 7342c24

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

node_modules/foreground-child/dist/commonjs/index.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,17 @@ function foregroundChild(...fgArgs) {
6363
};
6464
const removeOnExit = (0, signal_exit_1.onExit)(childHangup);
6565
(0, proxy_signals_js_1.proxySignals)(child);
66-
(0, watchdog_js_1.watchdog)(child);
66+
const dog = (0, watchdog_js_1.watchdog)(child);
6767
let done = false;
6868
child.on('close', async (code, signal) => {
6969
/* c8 ignore start */
7070
if (done)
7171
return;
7272
/* c8 ignore stop */
7373
done = true;
74-
const result = cleanup(code, signal);
74+
const result = cleanup(code, signal, {
75+
watchdogPid: dog.pid,
76+
});
7577
const res = isPromise(result) ? await result : result;
7678
removeOnExit();
7779
if (res === false)

node_modules/foreground-child/dist/esm/index.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,17 @@ export function foregroundChild(...fgArgs) {
5656
};
5757
const removeOnExit = onExit(childHangup);
5858
proxySignals(child);
59-
watchdog(child);
59+
const dog = watchdog(child);
6060
let done = false;
6161
child.on('close', async (code, signal) => {
6262
/* c8 ignore start */
6363
if (done)
6464
return;
6565
/* c8 ignore stop */
6666
done = true;
67-
const result = cleanup(code, signal);
67+
const result = cleanup(code, signal, {
68+
watchdogPid: dog.pid,
69+
});
6870
const res = isPromise(result) ? await result : result;
6971
removeOnExit();
7072
if (res === false)

node_modules/foreground-child/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "foreground-child",
3-
"version": "3.2.1",
3+
"version": "3.3.0",
44
"description": "Run a child as if it's the foreground process. Give it stdio. Exit when it exits.",
55
"main": "./dist/commonjs/index.js",
66
"types": "./dist/commonjs/index.d.ts",

package-lock.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -5600,9 +5600,9 @@
56005600
}
56015601
},
56025602
"node_modules/foreground-child": {
5603-
"version": "3.2.1",
5604-
"resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.2.1.tgz",
5605-
"integrity": "sha512-PXUUyLqrR2XCWICfv6ukppP96sdFwWbNEnfEMt7jNsISjMsvaLNinAHNDYyvkyU+SZG2BTSbT5NjG+vZslfGTA==",
5603+
"version": "3.3.0",
5604+
"resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.0.tgz",
5605+
"integrity": "sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==",
56065606
"inBundle": true,
56075607
"license": "ISC",
56085608
"dependencies": {

0 commit comments

Comments
 (0)