Function
registerUpstreamProxyEnvFn
(
fn: () => Record<string, string>,
)
Source from the content-addressed store, hash-verified
| 71 | * module has been lazily loaded. Must be called before any subprocess is spawned. |
| 72 | */ |
| 73 | export function registerUpstreamProxyEnvFn( |
| 74 | fn: () => Record<string, string>, |
| 75 | ): void { |
| 76 | _getUpstreamProxyEnv = fn |
| 77 | } |
| 78 | |
| 79 | export function subprocessEnv(): NodeJS.ProcessEnv { |
| 80 | // CCR upstreamproxy: inject HTTPS_PROXY + CA bundle vars so curl/gh/python |
Tested by
no test coverage detected