How to use the @financial-times/polyfill-useragent-normaliser/data.json.baselineVersions function in @financial-times/polyfill-useragent-normaliser

To help you get started, we’ve selected a few @financial-times/polyfill-useragent-normaliser examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Financial-Times / polyfill-service / src / data / supportedBrowsers.js View on Github external
"use strict";

module.exports = {
	supportedBrowsers: Object.entries(require("@financial-times/polyfill-useragent-normaliser/data.json").baselineVersions).map(([browser, version]) => {
		switch (browser) {
			case "ie": {
				browser = "Internet Explorer";
				break;
			}
			case "ie_mob": {
				browser = "Internet Explorer Mobile";
				break;
			}
			case "chrome": {
				browser = "Chrome";
				break;
			}
			case "safari": {
				browser = "Safari";
				break;

@financial-times/polyfill-useragent-normaliser

The user-agent normalisation logic behind polyfill-library and polyfill.io

MIT
Latest version published 3 years ago

Package Health Score

47 / 100
Full package analysis

Similar packages