@babel/plugin-transform-new-target
Advanced tools
Comparing version 7.4.4 to 7.7.4
@@ -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 @@ } |
{ | ||
"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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4252
59