MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / loadFeatureSource

Function loadFeatureSource

apps/public/src/lib/features.ts:134–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132}
133
134export async function loadFeatureSource(): Promise<FeatureData[]> {
135 const slugs = await getAllFeatureSlugs();
136 const results: FeatureData[] = [];
137 for (const slug of slugs) {
138 const data = await getFeatureData(slug);
139 if (data) results.push(data);
140 }
141 return results;
142}
143
144/** Sync loader for use in source.ts (same pattern as compareSource). */
145export function loadFeatureSourceSync(): FeatureData[] {

Callers

nothing calls this directly

Calls 3

getAllFeatureSlugsFunction · 0.85
getFeatureDataFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected