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

Function apiGet

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

Source from the content-addressed store, hash-verified

389 const query = `from=${FROM}&to=${TO}`;
390 const fetched = new Map();
391 const apiGet = async (path) => {
392 if (!fetched.has(path)) {
393 fetched.set(
394 path,
395 fetch(`${BASE}${path}`, { headers: { cookie: `${name}=${value}` } }).then((r) => r.json()),
396 );
397 }
398 return fetched.get(path);
399 };
400
401 for (const panel of PANELS) {
402 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