Skip to content

Commit

Permalink
deps: foreground-child@3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Aug 21, 2024
1 parent 2986f4e commit 7342c24
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
6 changes: 4 additions & 2 deletions node_modules/foreground-child/dist/commonjs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,17 @@ function foregroundChild(...fgArgs) {
};
const removeOnExit = (0, signal_exit_1.onExit)(childHangup);
(0, proxy_signals_js_1.proxySignals)(child);
(0, watchdog_js_1.watchdog)(child);
const dog = (0, watchdog_js_1.watchdog)(child);
let done = false;
child.on('close', async (code, signal) => {
/* c8 ignore start */
if (done)
return;
/* c8 ignore stop */
done = true;
const result = cleanup(code, signal);
const result = cleanup(code, signal, {
watchdogPid: dog.pid,
});
const res = isPromise(result) ? await result : result;
removeOnExit();
if (res === false)
Expand Down
6 changes: 4 additions & 2 deletions node_modules/foreground-child/dist/esm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,17 @@ export function foregroundChild(...fgArgs) {
};
const removeOnExit = onExit(childHangup);
proxySignals(child);
watchdog(child);
const dog = watchdog(child);
let done = false;
child.on('close', async (code, signal) => {
/* c8 ignore start */
if (done)
return;
/* c8 ignore stop */
done = true;
const result = cleanup(code, signal);
const result = cleanup(code, signal, {
watchdogPid: dog.pid,
});
const res = isPromise(result) ? await result : result;
removeOnExit();
if (res === false)
Expand Down
2 changes: 1 addition & 1 deletion node_modules/foreground-child/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "foreground-child",
"version": "3.2.1",
"version": "3.3.0",
"description": "Run a child as if it's the foreground process. Give it stdio. Exit when it exits.",
"main": "./dist/commonjs/index.js",
"types": "./dist/commonjs/index.d.ts",
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -5600,9 +5600,9 @@
}
},
"node_modules/foreground-child": {
"version": "3.2.1",
"resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.2.1.tgz",
"integrity": "sha512-PXUUyLqrR2XCWICfv6ukppP96sdFwWbNEnfEMt7jNsISjMsvaLNinAHNDYyvkyU+SZG2BTSbT5NjG+vZslfGTA==",
"version": "3.3.0",
"resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.0.tgz",
"integrity": "sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==",
"inBundle": true,
"license": "ISC",
"dependencies": {
Expand Down

0 comments on commit 7342c24

Please sign in to comment.