Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
loadCountry: function loadCountry (usage, country, data) {
var code = country.replace(/[^\w-]/g, '')
if (!usage[code]) {
// eslint-disable-next-line security/detect-non-literal-require
var compressed = require('caniuse-lite/data/regions/' + code + '.js')
var usageData = region(compressed)
normalizeUsageData(usageData, data)
usage[country] = { }
for (var i in usageData) {
for (var j in usageData[i]) {
usage[country][i + ' ' + j] = usageData[i][j]
}
}
}
},
loadCountry: function loadCountry (usage, country, data) {
var code = country.replace(/[^\w-]/g, '')
if (!usage[code]) {
// eslint-disable-next-line security/detect-non-literal-require
var compressed = require('caniuse-lite/data/regions/' + code + '.js')
var usageData = region(compressed)
normalizeUsageData(usageData, data)
usage[country] = { }
for (var i in usageData) {
for (var j in usageData[i]) {
usage[country][i + ' ' + j] = usageData[i][j]
}
}
}
},
loadCountry: function loadCountry (usage, country) {
var code = country.replace(/[^\w-]/g, '')
if (!usage[code]) {
// eslint-disable-next-line security/detect-non-literal-require
var compressed = require('caniuse-lite/data/regions/' + code + '.js')
var data = region(compressed)
usage[country] = { }
for (var i in data) {
for (var j in data[i]) {
usage[country][i + ' ' + j] = data[i][j]
}
}
}
},
function loadCountryStatistics (country) {
country = country.replace(/[^\w-]/g, '')
if (!browserslist.usage[country]) {
var usage = { }
// eslint-disable-next-line security/detect-non-literal-require
var compressed = require('caniuse-lite/data/regions/' + country + '.js')
var data = region(compressed)
for (var i in data) {
fillUsage(usage, i, data[i])
}
browserslist.usage[country] = usage
}
}
function loadCountryStatistics (country) {
country = country.replace(/[^\w-]/g, '')
if (!browserslist.usage[country]) {
var usage = { }
// eslint-disable-next-line security/detect-non-literal-require
var compressed = require('caniuse-lite/data/regions/' + country + '.js')
var data = region(compressed)
for (var i in data) {
fillUsage(usage, i, data[i])
}
browserslist.usage[country] = usage
}
}
loadCountry: function loadCountry (usage, country) {
var code = country.replace(/[^\w-]/g, '')
if (!usage[code]) {
// eslint-disable-next-line security/detect-non-literal-require
var compressed = require('caniuse-lite/data/regions/' + code + '.js')
var data = region(compressed)
usage[country] = { }
for (var i in data) {
for (var j in data[i]) {
usage[country][i + ' ' + j] = data[i][j]
}
}
}
},
loadCountry: function loadCountry (usage, country, data) {
var code = country.replace(/[^\w-]/g, '')
if (!usage[code]) {
// eslint-disable-next-line security/detect-non-literal-require
var compressed = require('caniuse-lite/data/regions/' + code + '.js')
var usageData = region(compressed)
normalizeUsageData(usageData, data)
usage[country] = { }
for (var i in usageData) {
for (var j in usageData[i]) {
usage[country][i + ' ' + j] = usageData[i][j]
}
}
}
},
loadCountry: function loadCountry (usage, country) {
var code = country.replace(/[^\w-]/g, '')
if (!usage[code]) {
// eslint-disable-next-line security/detect-non-literal-require
var compressed = require('caniuse-lite/data/regions/' + code + '.js')
var data = region(compressed)
usage[country] = { }
for (var i in data) {
for (var j in data[i]) {
usage[country][i + ' ' + j] = data[i][j]
}
}
}
},
function loadCountryStatistics (country) {
country = country.replace(/[^\w-]/g, '')
if (!browserslist.usage[country]) {
var usage = { }
// eslint-disable-next-line security/detect-non-literal-require
var compressed = require('caniuse-lite/data/regions/' + country + '.js')
var data = region(compressed)
for (var i in data) {
fillUsage(usage, i, data[i])
}
browserslist.usage[country] = usage
}
}