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

Function cfOk

apps/host-cloudflare/scripts/preview.ts:76–80  ·  view source on GitHub ↗
(method: string, path: string, body?: unknown)

Source from the content-addressed store, hash-verified

74};
75
76const cfOk = async (method: string, path: string, body?: unknown): Promise<any> => {
77 const response = await cf(method, path, body);
78 if (!response.ok) fail(`${method} ${path} failed: ${response.errors}`);
79 return response.result;
80};
81
82/** Paginated GET that concatenates every page of `result`. */
83const cfList = async (path: string): Promise<any[]> => {

Callers 6

cfListFunction · 0.85
ensureD1Function · 0.85
workersSubdomainFunction · 0.85
ensureAccessAppFunction · 0.85
destroyFunction · 0.85
sweepE2eFunction · 0.85

Calls 2

cfFunction · 0.85
failFunction · 0.70

Tested by

no test coverage detected