polyfills-db
Advanced tools
Comparing version 1.14.2 to 1.14.3
@@ -61,5 +61,5 @@ | ||
var version = browsers[name] | ||
if (!version) return | ||
if (version === true) return str += 'if (families.' + name + '.test(family)) return true\n' | ||
if (version === false) return str += 'if (families.' + name + '.test(family)) return false\n' | ||
if (version == null) return | ||
if (version === true) return str += 'if (families.' + name + '.test(family)) return false\n' | ||
if (version === false) return str += 'if (families.' + name + '.test(family)) return true\n' | ||
str += 'if (families.' + name + '.test(family)) ' | ||
@@ -66,0 +66,0 @@ + 'return satisfies(version, ' + JSON.stringify('<' + version) + ')\n' |
@@ -68,4 +68,3 @@ | ||
Object.keys(caniuseBrowsers).forEach(function (browser) { | ||
var version = lowestOf(json.stats[caniuseBrowsers[browser]], browser, feature) | ||
if (version) browsers[browser] = version | ||
browsers[browser] = lowestOf(json.stats[caniuseBrowsers[browser]], browser, feature) || false | ||
}) | ||
@@ -96,8 +95,8 @@ return browsers | ||
var out = true | ||
var out = null | ||
for (var i = 0; i < versions.length; i++) { | ||
var version = versions[i] | ||
if (out === true && obj[version] === 'y') { | ||
if (!out && obj[version] === 'y') { | ||
out = version.split('-')[0] // versions are sometimes ranged | ||
} else if (out !== true && obj[version] !== 'y') { | ||
} else if (out && obj[version] !== 'y') { | ||
// if a lower version supports something, | ||
@@ -108,3 +107,3 @@ // but a higher version does not, | ||
// http://caniuse.com/#feat=nav-timing | ||
out = true | ||
out = false | ||
} | ||
@@ -111,0 +110,0 @@ } |
@@ -431,8 +431,8 @@ [ | ||
"sources": [ | ||
"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf#Browser_compatibility" | ||
"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf#Browser_compatibility", | ||
"http://kangax.github.io/compat-table/es6/" | ||
], | ||
"browsers": { | ||
"ff": 31, | ||
"chrome": 34, | ||
"opera": true | ||
"chrome": 34 | ||
} | ||
@@ -439,0 +439,0 @@ }, |
{ | ||
"name": "polyfills-db", | ||
"description": "browser feature database", | ||
"version": "1.14.2", | ||
"version": "1.14.3", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Jonathan Ong", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28937
881