Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-react-jsx

Package Overview
Dependencies
5
Maintainers
4
Versions
97
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.21.5 to 7.22.0

lib/package.json

5

lib/create-plugin.js

@@ -417,3 +417,6 @@ "use strict";

for (const attr of attribs) {
const name = _core.types.isJSXAttribute(attr) && _core.types.isJSXIdentifier(attr.name) && attr.name.name;
const {
node
} = attr;
const name = _core.types.isJSXAttribute(node) && _core.types.isJSXIdentifier(node.name) && node.name.name;
if (runtime === "automatic" && (name === "__source" || name === "__self")) {

@@ -420,0 +423,0 @@ if (found[name]) throw sourceSelfError(path, name);

8

package.json
{
"name": "@babel/plugin-transform-react-jsx",
"version": "7.21.5",
"version": "7.22.0",
"description": "Turn JSX into React function calls",

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

"@babel/plugin-syntax-jsx": "^7.21.4",
"@babel/types": "^7.21.5"
"@babel/types": "^7.22.0"
},

@@ -31,5 +31,5 @@ "peerDependencies": {

"devDependencies": {
"@babel/core": "^7.21.5",
"@babel/core": "^7.22.0",
"@babel/helper-plugin-test-runner": "^7.18.6",
"@babel/traverse": "^7.21.5"
"@babel/traverse": "^7.22.0"
},

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc