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

Function apiGet

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

Source from the content-addressed store, hash-verified

396 const query = `from=${FROM}&to=${TO}`;
397 const fetched = new Map();
398 const apiGet = async (path) => {
399 if (!fetched.has(path)) {
400 fetched.set(
401 path,
402 fetch(`${BASE}${path}`, { headers: { cookie: `${name}=${value}` } }).then((r) => r.json()),
403 );
404 }
405 return fetched.get(path);
406 };
407
408 for (const panel of PANELS) {
409 const rendered = view.panels.find((p) => p.id === panel.id);

Callers 1

mainFunction · 0.85

Calls 5

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

Tested by

no test coverage detected