MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / endpoint

Function endpoint

scripts/check-stream-reliability.mjs:16–18  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

14 (process.env.SIMDECK_STREAM_CHECK_FAIL_SERVER_DROPS ?? "0").trim() === "1";
15
16function endpoint(path) {
17 return new URL(path, serverUrl).toString();
18}
19
20async function fetchJson(path) {
21 const response = await fetch(endpoint(path), { cache: "no-store" });

Callers 1

fetchJsonFunction · 0.70

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected