MCPcopy
hub / github.com/triggerdotdev/trigger.dev / fetch

Function fetch

packages/cli/src/utils/fetchUseProxy.ts:7–16  ·  view source on GitHub ↗
(url: RequestInfo, init?: RequestInit)

Source from the content-addressed store, hash-verified

5export type RequestInit = _RequestInit;
6
7export 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}

Callers 13

callMethod · 0.90
getLatestPackageVersionFunction · 0.70
supportsTunnelingMethod · 0.70
createTunnelMethod · 0.70
whoamiMethod · 0.70
sendEventMethod · 0.70
registerEndpointMethod · 0.70
getEndpointIndexMethod · 0.70
exportPacketFunction · 0.50
importPacketFunction · 0.50
_doZodFetchFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…