Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-react-jsx

Package Overview
Dependencies
56
Maintainers
6
Versions
97
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.14.9 to 7.16.0

15

lib/create-plugin.js

@@ -69,13 +69,2 @@ "use strict";

JSXOpeningElement(path, state) {
for (const attr of path.get("attributes")) {
if (!attr.isJSXElement()) continue;
const {
name
} = attr.node.name;
if (name === "__source" || name === "__self") {
throw path.buildCodeFrameError(`__source and __self should not be defined in props and are reserved for internal usage.`);
}
}
const attributes = [];

@@ -402,3 +391,3 @@

if (attribsArray.length || children.length) {
attribs = buildJSXOpeningElementAttributes(attribsArray, file, children);
attribs = buildJSXOpeningElementAttributes(attribsArray, children);
} else {

@@ -421,3 +410,3 @@ attribs = _core.types.objectExpression([]);

function buildJSXOpeningElementAttributes(attribs, file, children) {
function buildJSXOpeningElementAttributes(attribs, children) {
const props = attribs.reduce(accumulateAttribute, []);

@@ -424,0 +413,0 @@

16

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

@@ -20,7 +20,7 @@ "repository": {

"dependencies": {
"@babel/helper-annotate-as-pure": "^7.14.5",
"@babel/helper-module-imports": "^7.14.5",
"@babel/helper-annotate-as-pure": "^7.16.0",
"@babel/helper-module-imports": "^7.16.0",
"@babel/helper-plugin-utils": "^7.14.5",
"@babel/plugin-syntax-jsx": "^7.14.5",
"@babel/types": "^7.14.9"
"@babel/plugin-syntax-jsx": "^7.16.0",
"@babel/types": "^7.16.0"
},

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

"devDependencies": {
"@babel/core": "7.14.8",
"@babel/helper-plugin-test-runner": "7.14.5",
"@babel/traverse": "7.14.9"
"@babel/core": "^7.16.0",
"@babel/helper-plugin-test-runner": "^7.16.0",
"@babel/traverse": "^7.16.0"
},

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc