Comparing version 1.9.7 to 1.10.0
@@ -40,3 +40,2 @@ | ||
polyfills = _polyfills.filter(function (polyfill) { | ||
if (!polyfill.inclusive) return false | ||
return !~options.exclude.indexOf(polyfill.name) | ||
@@ -46,5 +45,18 @@ && !~options.exclude.indexOf(polyfill.shortName) | ||
} else { | ||
polyfills = _polyfills.filter(inclusive) | ||
polyfills = _polyfills.slice() | ||
} | ||
// remove subsets | ||
for (var i = 0; i < polyfills.length; i++) { | ||
var polyfill = polyfills[i] | ||
if (!polyfill.supersets) continue; | ||
var hasSubset = polyfill.subsets.some(function (name) { | ||
for (var j = 0; j < polyfills.length; j++) { | ||
if (polyfills[j].name === name) return true | ||
} | ||
return false | ||
}) | ||
if (hasSubset) polyfills.splice(i--, 1) | ||
} | ||
Polyfill.prototype.polyfills = polyfills | ||
@@ -51,0 +63,0 @@ |
{ | ||
"name": "polyfills", | ||
"description": "user-agent-based polyfill combinator", | ||
"version": "1.9.7", | ||
"version": "1.10.0", | ||
"dependencies": { | ||
@@ -13,3 +13,3 @@ "bluebird": "2", | ||
"native-or-bluebird": "1", | ||
"polyfills-db": "^1.15.0", | ||
"polyfills-db": "^1.18.0", | ||
"rimraf": "2", | ||
@@ -22,4 +22,5 @@ "semver": "4", | ||
"cogent": "1", | ||
"istanbul": "0", | ||
"mocha": "2", | ||
"istanbul": "0" | ||
"mz": "1" | ||
}, | ||
@@ -26,0 +27,0 @@ "scripts": { |
@@ -966,2 +966,4 @@ /*! | ||
} | ||
}).call(this); | ||
}).call(this); | ||
ES6Promise.polyfill(); |
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
496570
11676
5
Updatedpolyfills-db@^1.18.0