MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / apiGet

Function apiGet

telemetry-dashboard/scripts/render-check.mjs:366–374  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

364 const query = `from=${FROM}&to=${TO}`;
365 const fetched = new Map();
366 const apiGet = async (path) => {
367 if (!fetched.has(path)) {
368 fetched.set(
369 path,
370 fetch(`${BASE}${path}`, { headers: { cookie: `${name}=${value}` } }).then((r) => r.json()),
371 );
372 }
373 return fetched.get(path);
374 };
375
376 for (const panel of PANELS) {
377 const rendered = view.panels.find((p) => p.id === panel.id);

Callers 1

mainFunction · 0.85

Calls 4

hasMethod · 0.80
getMethod · 0.65
fetchFunction · 0.50
setMethod · 0.45

Tested by

no test coverage detected