(env: Env = process.env)
| 115 | |
| 116 | /** True when any HTTP(S) or SOCKS proxy variable is set to a usable value. */ |
| 117 | export function isProxyConfigured(env: Env = process.env): boolean { |
| 118 | return hasHttpProxy(env) || resolveSocksProxy(env) !== undefined; |
| 119 | } |
| 120 | |
| 121 | /** |
| 122 | * The effective `NO_PROXY` with loopback hosts guaranteed present so local |
no test coverage detected