Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-new-target

Package Overview
Dependencies
Maintainers
4
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-new-target - npm Package Compare versions

Comparing version 7.16.7 to 7.17.12

10

lib/index.js

@@ -53,8 +53,8 @@ "use strict";

if (_core.types.isMethod(node)) {
path.replaceWith(scope.buildUndefinedNode());
return;
}
if (!node.id) {
if (func.isMethod()) {
path.replaceWith(scope.buildUndefinedNode());
return;
}
node.id = scope.generateUidIdentifier("target");

@@ -61,0 +61,0 @@ }

{
"name": "@babel/plugin-transform-new-target",
"version": "7.16.7",
"version": "7.17.12",
"description": "Transforms new.target meta property",

@@ -20,3 +20,3 @@ "repository": {

"dependencies": {
"@babel/helper-plugin-utils": "^7.16.7"
"@babel/helper-plugin-utils": "^7.17.12"
},

@@ -27,6 +27,6 @@ "peerDependencies": {

"devDependencies": {
"@babel/core": "^7.16.7",
"@babel/core": "^7.17.12",
"@babel/helper-plugin-test-runner": "^7.16.7",
"@babel/plugin-proposal-class-properties": "^7.16.7",
"@babel/plugin-transform-arrow-functions": "^7.16.7"
"@babel/plugin-proposal-class-properties": "^7.17.12",
"@babel/plugin-transform-arrow-functions": "^7.17.12"
},

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

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