(url: RequestInfo, init?: RequestInit)
| 5 | export type RequestInit = _RequestInit; |
| 6 | |
| 7 | export default function fetch(url: RequestInfo, init?: RequestInit) { |
| 8 | const fetchInit: RequestInit = { ...init }; |
| 9 | |
| 10 | // If agent is not specified, specify proxy-agent and use environment variables such as HTTPS_PROXY. |
| 11 | if (!fetchInit.agent) { |
| 12 | fetchInit.agent = new ProxyAgent(); |
| 13 | } |
| 14 | |
| 15 | return node_fetch(url, fetchInit); |
| 16 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…