Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-new-target

Package Overview
Dependencies
Maintainers
6
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.4.4 to 7.7.4

26

lib/index.js

@@ -8,23 +8,7 @@ "use strict";

function _helperPluginUtils() {
const data = require("@babel/helper-plugin-utils");
var _helperPluginUtils = require("@babel/helper-plugin-utils");
_helperPluginUtils = function () {
return data;
};
var _core = require("@babel/core");
return data;
}
function _core() {
const data = require("@babel/core");
_core = function () {
return data;
};
return data;
}
var _default = (0, _helperPluginUtils().declare)(api => {
var _default = (0, _helperPluginUtils.declare)(api => {
api.assertVersion(7);

@@ -79,3 +63,3 @@ return {

const constructor = _core().types.memberExpression(_core().types.thisExpression(), _core().types.identifier("constructor"));
const constructor = _core.types.memberExpression(_core.types.thisExpression(), _core.types.identifier("constructor"));

@@ -87,3 +71,3 @@ if (func.isClass()) {

path.replaceWith(_core().types.conditionalExpression(_core().types.binaryExpression("instanceof", _core().types.thisExpression(), _core().types.cloneNode(node.id)), constructor, scope.buildUndefinedNode()));
path.replaceWith(_core.types.conditionalExpression(_core.types.binaryExpression("instanceof", _core.types.thisExpression(), _core.types.cloneNode(node.id)), constructor, scope.buildUndefinedNode()));
}

@@ -90,0 +74,0 @@ }

12

package.json
{
"name": "@babel/plugin-transform-new-target",
"version": "7.4.4",
"version": "7.7.4",
"description": "Transforms new.target meta property",

@@ -21,8 +21,8 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-new-target",

"devDependencies": {
"@babel/core": "^7.4.4",
"@babel/helper-plugin-test-runner": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.4.4",
"@babel/plugin-transform-arrow-functions": "^7.0.0"
"@babel/core": "^7.7.4",
"@babel/helper-plugin-test-runner": "^7.7.4",
"@babel/plugin-proposal-class-properties": "^7.7.4",
"@babel/plugin-transform-arrow-functions": "^7.7.4"
},
"gitHead": "2c88694388831b1e5b88e4bbed6781eb2be1edba"
"gitHead": "75767d87cb147709b9bd9b99bf44daa6688874a9"
}
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