From 7342c2460a38bfc16783b927f7454ddc353592c7 Mon Sep 17 00:00:00 2001 From: Gar Date: Tue, 20 Aug 2024 07:41:40 -0700 Subject: [PATCH] deps: foreground-child@3.3.0 --- node_modules/foreground-child/dist/commonjs/index.js | 6 ++++-- node_modules/foreground-child/dist/esm/index.js | 6 ++++-- node_modules/foreground-child/package.json | 2 +- package-lock.json | 6 +++--- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/node_modules/foreground-child/dist/commonjs/index.js b/node_modules/foreground-child/dist/commonjs/index.js index 8ea5413b0935b..07a01c5830de4 100644 --- a/node_modules/foreground-child/dist/commonjs/index.js +++ b/node_modules/foreground-child/dist/commonjs/index.js @@ -63,7 +63,7 @@ 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 */ @@ -71,7 +71,9 @@ function foregroundChild(...fgArgs) { 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) diff --git a/node_modules/foreground-child/dist/esm/index.js b/node_modules/foreground-child/dist/esm/index.js index d42ba8f31ddd0..6266b5848cced 100644 --- a/node_modules/foreground-child/dist/esm/index.js +++ b/node_modules/foreground-child/dist/esm/index.js @@ -56,7 +56,7 @@ 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 */ @@ -64,7 +64,9 @@ export function foregroundChild(...fgArgs) { 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) diff --git a/node_modules/foreground-child/package.json b/node_modules/foreground-child/package.json index e157528477c6f..980b7e85d1542 100644 --- a/node_modules/foreground-child/package.json +++ b/node_modules/foreground-child/package.json @@ -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", diff --git a/package-lock.json b/package-lock.json index b91b483a12097..8a3ddedbbada4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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": {