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

Function fetchFlutterVersions

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

Source from the content-addressed store, hash-verified

72};
73
74const fetchFlutterVersions = async () => {
75 const data = await fetchJSON('https://pub.dev/api/packages/flagsmith', {
76 headers: {
77 Accept: 'application/vnd.pub.v2+json',
78 'User-Agent': userAgent,
79 },
80 });
81 return data.versions.map((v) => v.version);
82};
83
84export default async function fetchFlagsmithVersions(context, options) {
85 return {

Callers 1

loadContentFunction · 0.85

Calls 1

fetchJSONFunction · 0.85

Tested by

no test coverage detected