Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const itemToFile = item =>
sc.matchItem(item, {
[sc.page]: page,
[sc.pageWithCode]: pageWithCode,
[sc.lightbox]: lightbox,
[sc.lightboxWithCode]: lightboxWithCode,
[sc.router]: router,
[sc.menu]: menu,
[sc.colors]: colors,
[sc.fonts]: fonts,
[sc.theme]: theme,
[sc.topLevelStyles]: topLevelStyles,
[sc.commonComponents]: commonComponents,
[sc.multilingualInfo]: multilingualInfo,
[sc.siteInfo]: siteInfo,
[sc.version]: version,
[sc.publicCode]: publicCodeFile,
[sc.backendCode]: backendCodeFile,
[sc.collectionSchema]: collectionSchema,
[sc.corvidPackageJson]: corvidPackageJson,
[sc.masterPageCode]: masterPageCode
});
...siteItems.map(item =>
sc.matchItem(item, {
[sc.page]: page,
[sc.pageWithCode]: pageWithCode,
[sc.lightbox]: lightbox,
[sc.lightboxWithCode]: lightboxWithCode,
[sc.router]: router,
[sc.menu]: menu,
[sc.colors]: colors,
[sc.fonts]: fonts,
[sc.theme]: theme,
[sc.topLevelStyles]: topLevelStyles,
[sc.commonComponents]: commonComponents,
[sc.multilingualInfo]: multilingualInfo,
[sc.siteInfo]: siteInfo,
[sc.version]: version,
[sc.publicCode]: publicCodeFile,
[sc.backendCode]: backendCodeFile,
[sc.collectionSchema]: collectionSchema,
[sc.corvidPackageJson]: corvidPackageJson,
[sc.masterPageCode]: masterPageCode
})
),