Socket
Socket
Sign inDemoInstall

@babel/preset-env

Package Overview
Dependencies
169
Maintainers
4
Versions
169
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.23.9 to 7.24.0

2

lib/debug.js

@@ -15,3 +15,3 @@ "use strict";

const proposalName = `proposal-${item.slice(10)}`;
if (proposalName === "proposal-dynamic-import" || Object.prototype.hasOwnProperty.call(_plugins, proposalName)) {
if (proposalName === "proposal-dynamic-import" || hasOwnProperty.call(_plugins, proposalName)) {
item = proposalName;

@@ -18,0 +18,0 @@ }

@@ -11,3 +11,2 @@ "use strict";

var _availablePlugins = require("./available-plugins.js");
const has = Function.call.bind(Object.hasOwnProperty);
function addProposalSyntaxPlugins(items, proposalSyntaxPlugins) {

@@ -26,3 +25,3 @@ proposalSyntaxPlugins.forEach(plugin => {

items.forEach(item => {
if (has(_availablePlugins.minVersions, item) && _semver.lt(babelVersion, _availablePlugins.minVersions[item])) {
if (hasOwnProperty.call(_availablePlugins.minVersions, item) && _semver.lt(babelVersion, _availablePlugins.minVersions[item])) {
items.delete(item);

@@ -29,0 +28,0 @@ }

@@ -19,3 +19,3 @@ "use strict";

for (const plugin of keys(data)) {
if (Object.hasOwnProperty.call(_availablePlugins.default, plugin)) {
if (hasOwnProperty.call(_availablePlugins.default, plugin)) {
result[plugin] = data[plugin];

@@ -22,0 +22,0 @@ }

{
"name": "@babel/preset-env",
"version": "7.23.9",
"version": "7.24.0",
"description": "A Babel preset for each environment.",

@@ -21,3 +21,3 @@ "author": "The Babel Team (https://babel.dev/team)",

"@babel/helper-compilation-targets": "^7.23.6",
"@babel/helper-plugin-utils": "^7.22.5",
"@babel/helper-plugin-utils": "^7.24.0",
"@babel/helper-validator-option": "^7.23.5",

@@ -75,3 +75,3 @@ "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.23.3",

"@babel/plugin-transform-numeric-separator": "^7.23.4",
"@babel/plugin-transform-object-rest-spread": "^7.23.4",
"@babel/plugin-transform-object-rest-spread": "^7.24.0",
"@babel/plugin-transform-object-super": "^7.23.3",

@@ -106,6 +106,6 @@ "@babel/plugin-transform-optional-catch-binding": "^7.23.4",

"devDependencies": {
"@babel/core": "^7.23.9",
"@babel/core": "^7.24.0",
"@babel/core-7.12": "npm:@babel/core@7.12.9",
"@babel/helper-plugin-test-runner": "^7.22.5",
"@babel/traverse": "^7.23.9"
"@babel/traverse": "^7.24.0"
},

@@ -112,0 +112,0 @@ "engines": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc