Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

polyfills

Package Overview
Dependencies
Maintainers
2
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

polyfills - npm Package Compare versions

Comparing version 1.9.7 to 1.10.0

16

lib/index.js

@@ -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 @@

7

package.json
{
"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();
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc