MCPcopy Index your code
hub / github.com/Flagsmith/flagsmith / fetchJSON

Function fetchJSON

docs/plugins/flagsmith-versions/index.js:1–5  ·  view source on GitHub ↗
(url, options)

Source from the content-addressed store, hash-verified

1const fetchJSON = async (url, options) => {
2 const response = await fetch(url, options);
3 if (!response.ok) throw new Error(await response.text());
4 return response.json();
5};
6
7const userAgent = 'Flagsmith-Docs <support@flagsmith.com>';
8

Callers 8

fetchMavenVersionsFunction · 0.85
fetchGitHubReleasesFunction · 0.85
fetchCocoapodsVersionsFunction · 0.85
fetchDotnetVersionsFunction · 0.85
fetchRustVersionsFunction · 0.85
fetchElixirVersionsFunction · 0.85
fetchNpmVersionsFunction · 0.85
fetchFlutterVersionsFunction · 0.85

Calls 2

fetchFunction · 0.85
jsonMethod · 0.45

Tested by

no test coverage detected