MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / fetch

Function fetch

packages/core/sdk/src/oauth-flow.test.ts:110–117  ·  view source on GitHub ↗
(input, init)

Source from the content-addressed store, hash-verified

108 // oxlint-disable-next-line executor/no-raw-fetch -- test boundary: the park wraps the platform fetch and must delegate back to it, which is the only seam that can hold a token request open mid-grant.
109 const platformFetch: typeof globalThis.fetch = globalThis.fetch;
110 const fetch: typeof globalThis.fetch = async (input, init) => {
111 const response = await platformFetch(input, init);
112 if (armed && new URL(fetchTarget(input)).pathname === "/token") {
113 onSeen?.();
114 await parked;
115 }
116 return response;
117 };
118 return {
119 fetch,
120 arm: () => {

Callers 10

probeServerFunction · 0.50
readSourceFunction · 0.50
searchCatalogFunction · 0.50
fetchCatalogDomainsFunction · 0.50
fetchSurfaceCredentialsFunction · 0.50
detectFunction · 0.50
waitReadyFunction · 0.50
runFunction · 0.50

Calls 1

fetchTargetFunction · 0.85

Tested by

no test coverage detected