(url: RequestInfo, init?: RequestInit)
| 254 | } |
| 255 | |
| 256 | function fetch(url: RequestInfo, init?: RequestInit) { |
| 257 | const fetchInit: RequestInit = { ...init }; |
| 258 | |
| 259 | // If agent is not specified, specify proxy-agent and use environment variables such as HTTPS_PROXY. |
| 260 | if (!fetchInit.agent) { |
| 261 | fetchInit.agent = new ProxyAgent(); |
| 262 | } |
| 263 | |
| 264 | return node_fetch(url, fetchInit); |
| 265 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…