MCPcopy Index your code
hub / github.com/MALSync/MALSync / chibiPages

Function chibiPages

src/pages-chibi/builder/chibiHelper.ts:166–179  ·  view source on GitHub ↗
(pages: { [key: string]: PageInterface })

Source from the content-addressed store, hash-verified

164}
165
166export function chibiPages(pages: { [key: string]: PageInterface }): {
167 [key: string]: PageInterfaceCompiled;
168} {
169 const definitions: { [key: string]: PageInterfaceCompiled } = {};
170 const hashes = getVersionHashes(pages);
171
172 Object.keys(pages).forEach(key => {
173 const pageObj = pages[key] as PageInterfaceCompiled;
174 pageObj.version = hashes[key];
175 definitions[key] = compilePage(pageObj);
176 });
177
178 return definitions;
179}

Callers 3

chibiPages.tsFile · 0.90
chibiPages.tsFile · 0.90
index.tsFile · 0.85

Calls 3

getVersionHashesFunction · 0.85
compilePageFunction · 0.85
keysMethod · 0.80

Tested by

no test coverage detected