(url)
| 48 | } |
| 49 | |
| 50 | const getProxyUrl = (url) => { |
| 51 | const requestURL = new URL(url) |
| 52 | |
| 53 | if (shouldBypassProxy(requestURL)) return null |
| 54 | |
| 55 | if (requestURL.protocol === 'http:') { |
| 56 | return process.env.HTTP_PROXY || process.env.http_proxy || null |
| 57 | } |
| 58 | if (requestURL.protocol === 'https:') { |
| 59 | return process.env.HTTPS_PROXY || process.env.https_proxy || null |
| 60 | } |
| 61 | return null |
| 62 | } |
| 63 | |
| 64 | class Binary { |
| 65 | constructor(name, url, version, config) { |
no test coverage detected
searching dependent graphs…