Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
polyfills: aliases[alias]
});
}
}
}
}
for (const polyfill of await polyfillLibrary.listAllPolyfills()) {
// Polyfills which start with _ are internal functions used by other polyfills, they should not be displayed on the website.
if (!polyfill.startsWith("_") && !polyfill.startsWith("Intl.~locale")) {
const polyfillInfo = Object.assign(
{
name: polyfill,
labelID: `${snakeCase(polyfill)}_label`,
license: "MIT"
},
await polyfillLibrary.describePolyfill(polyfill)
);
polyfillInfo.licenseLowerCase = polyfillInfo.license.toLowerCase();
polyfills.push(polyfillInfo);
}
}
}
return {
polyfills,
polyfillAliases
};
};