( env: Record<string, string | undefined> = getSystemProcessEnv(), )
| 209 | * Returns undefined when no proxy is configured. |
| 210 | */ |
| 211 | export function resolveProxyUrl( |
| 212 | env: Record<string, string | undefined> = getSystemProcessEnv(), |
| 213 | ): string | undefined { |
| 214 | return ( |
| 215 | env['HTTPS_PROXY'] || |
| 216 | env['https_proxy'] || |
| 217 | env['HTTP_PROXY'] || |
| 218 | env['http_proxy'] || |
| 219 | undefined |
| 220 | ) |
| 221 | } |
| 222 | |
| 223 | /** |
| 224 | * Sleep for a given duration |
no test coverage detected