( childEnv: Record<string, string>, configEnv?: Record<string, string>, )
| 365 | * `*` passes through verbatim. No-op when config sets no usable `NO_PROXY`. |
| 366 | */ |
| 367 | export function reconcileChildNoProxy( |
| 368 | childEnv: Record<string, string>, |
| 369 | configEnv?: Record<string, string>, |
| 370 | ): void { |
| 371 | const override = [configEnv?.['no_proxy'], configEnv?.['NO_PROXY']].find( |
| 372 | (value) => (value?.trim() ?? '').length > 0, |
| 373 | ); |
| 374 | if (override === undefined) return; |
| 375 | const noProxy = resolveNoProxy({ no_proxy: override, NO_PROXY: override }); |
| 376 | childEnv['NO_PROXY'] = noProxy; |
| 377 | childEnv['no_proxy'] = noProxy; |
| 378 | } |
no test coverage detected