MCPcopy
hub / github.com/lissy93/web-check / getJson

Function getJson

api/location.js:10–14  ·  view source on GitHub ↗
(url, signal)

Source from the content-addressed store, hash-verified

8
9// Server-side fetch, no-cors so providers don't reject Sec-Fetch-Mode: cors
10const getJson = async (url, signal) => {
11 const r = await fetch(url, { mode: 'no-cors', signal });
12 if (!r.ok) throw new Error(`status ${r.status}`);
13 return r.json();
14};
15
16// Geo providers, each parser normalises to a shared field shape
17const providers = [

Callers 2

tryProviderFunction · 0.85
enrichCountryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected