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

Function liveOrSkip

packages/plugins/apps/src/source/app-source.test.ts:164–171  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

162};
163
164const liveOrSkip = async (url: string): Promise<boolean> => {
165 try {
166 const response = await fetch(url, { method: "HEAD" });
167 return response.ok || response.status < 500;
168 } catch {
169 return false;
170 }
171};
172
173type FetchHandler = (
174 input: Parameters<typeof fetch>[0],

Callers 1

app-source.test.tsFile · 0.85

Calls 1

fetchFunction · 0.50

Tested by

no test coverage detected