Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@babel/plugin-transform-react-constant-elements

Package Overview
Dependencies
Maintainers
6
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-react-constant-elements - npm Package Compare versions

Comparing version 7.13.10 to 7.13.13

7

lib/index.js

@@ -75,6 +75,11 @@ "use strict";

if (path.isJSXIdentifier() || path.isIdentifier() || path.isJSXMemberExpression() || path.isJSXNamespacedName()) {
if (path.isJSXIdentifier() || path.isJSXMemberExpression() || path.isJSXNamespacedName()) {
return;
}
if (path.isIdentifier()) {
const binding = path.scope.getBinding(path.node.name);
if (binding && binding.constant) return;
}
if (!path.isImmutable()) {

@@ -81,0 +86,0 @@ if (path.isPure()) {

4

package.json
{
"name": "@babel/plugin-transform-react-constant-elements",
"version": "7.13.10",
"version": "7.13.13",
"description": "Treat React JSX elements as value types and hoist them to the highest scope",

@@ -26,5 +26,5 @@ "repository": {

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