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

Function fetchRustVersions

docs/plugins/flagsmith-versions/index.js:55–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53};
54
55const fetchRustVersions = async () => {
56 // https://crates.io/data-access#api
57 const headers = new Headers({
58 'User-Agent': userAgent,
59 });
60 const data = await fetchJSON('https://crates.io/api/v1/crates/flagsmith', { headers });
61 return data.versions.map((version) => version.num);
62};
63
64const fetchElixirVersions = async () => {
65 const data = await fetchJSON('https://hex.pm/api/packages/flagsmith_engine');

Callers 1

loadContentFunction · 0.85

Calls 1

fetchJSONFunction · 0.85

Tested by

no test coverage detected