Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.map(feat => {
const polyfill = sources.getPolyfillMeta(feat);
const fdata = {
feature: feat,
slug: feat.replace(/[^\w]/g, '_'),
size: polyfill.size,
isDefault: (polyfill.aliases && polyfill.aliases.indexOf('default') !== -1),
hasTests: polyfill.hasTests,
docs: polyfill.docs,
baseDir: polyfill.baseDir,
spec: polyfill.spec,
notes: polyfill.notes ? polyfill.notes.map(function (n) { return marky(n); }) : [],
license: polyfill.license,
licenseIsUrl: polyfill.license && polyfill.license.length > 5
};
browsers.forEach(browser => {
if (compatdata[feat][browser]) {