Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-classes

Package Overview
Dependencies
Maintainers
6
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-classes - npm Package Compare versions

Comparing version 7.14.2 to 7.14.4

5

lib/index.js

@@ -76,5 +76,6 @@ "use strict";

(0, _helperAnnotateAsPure.default)(path);
const callee = path.get("callee");
if (path.get("callee").isArrowFunctionExpression()) {
path.get("callee").arrowFunctionToExpression();
if (callee.isArrowFunctionExpression()) {
callee.arrowFunctionToExpression();
}

@@ -81,0 +82,0 @@ }

2

lib/transformClass.js

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

} else {
call = (0, _helperOptimiseCallExpression.default)(_core.types.cloneNode(classState.superFnId), _core.types.thisExpression(), bareSuperNode.arguments);
call = (0, _helperOptimiseCallExpression.default)(_core.types.cloneNode(classState.superFnId), _core.types.thisExpression(), bareSuperNode.arguments, false);
}

@@ -232,0 +232,0 @@

{
"name": "@babel/plugin-transform-classes",
"version": "7.14.2",
"version": "7.14.4",
"description": "Compile ES2015 classes to ES5",

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

"@babel/helper-plugin-utils": "^7.13.0",
"@babel/helper-replace-supers": "^7.13.12",
"@babel/helper-replace-supers": "^7.14.4",
"@babel/helper-split-export-declaration": "^7.12.13",

@@ -33,5 +33,6 @@ "globals": "^11.1.0"

"devDependencies": {
"@babel/core": "7.14.2",
"@babel/helper-plugin-test-runner": "7.13.10"
"@babel/core": "7.14.3",
"@babel/helper-plugin-test-runner": "7.13.10",
"@babel/traverse": "7.14.2"
}
}
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