MCPcopy Create free account
hub / github.com/massCodeIO/massCode / fetchJson

Function fetchJson

docs/website/scripts/update-github-stats.mjs:42–49  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

40}
41
42async function fetchJson(url) {
43 const response = await fetch(url, { headers: createHeaders() })
44
45 if (!response.ok)
46 throw new Error(`GitHub API returned ${response.status} for ${url}`)
47
48 return response.json()
49}
50
51async function fetchAllReleases() {
52 const releases = []

Callers 2

fetchAllReleasesFunction · 0.85
updateStatsFunction · 0.85

Calls 1

createHeadersFunction · 0.85

Tested by

no test coverage detected