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

core-js-compat

Package Overview
Dependencies
Maintainers
1
Versions
143
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

core-js-compat - npm Package Compare versions

Comparing version 3.6.0 to 3.6.1

2

package.json
{
"name": "core-js-compat",
"description": "core-js compat",
"version": "3.6.0",
"version": "3.6.1",
"repository": {

@@ -6,0 +6,0 @@ "type": "git",

@@ -30,22 +30,20 @@ 'use strict';

function browserslistEntries(targets) {
return browserslist(targets).map(it => it.split(' '));
}
module.exports = function (targets) {
let list;
if (typeof targets == 'object' && !Array.isArray(targets)) {
const { esmodules, browsers, node, ...rest } = targets;
list = Object.entries(rest);
if (esmodules) {
list = list.concat(Object.entries(external.modules));
}
if (browsers) {
list = list.concat(browserslistEntries(browsers));
}
if (node) {
list.push(['node', node === 'current' ? process.versions.node : node]);
}
} else list = browserslistEntries(targets);
if (typeof targets !== 'object' || Array.isArray(targets)) {
targets = { browsers: targets };
}
const { browsers, esmodules, node, ...rest } = targets;
const list = Object.entries(rest);
if (browsers) {
list.push(...browserslist(browsers).map(it => it.split(' ')));
}
if (esmodules) {
list.push(...Object.entries(external.modules));
}
if (node) {
list.push(['node', node === 'current' ? process.versions.node : node]);
}
const normalized = list.map(([engine, version]) => {

@@ -52,0 +50,0 @@ if (has(browserslist.aliases, engine)) {

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