Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-react-jsx

Package Overview
Dependencies
Maintainers
5
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-react-jsx - npm Package Compare versions

Comparing version 7.0.0 to 7.1.6

22

lib/index.js

@@ -90,15 +90,17 @@ "use strict";

for (const comment of file.ast.comments) {
const jsxMatches = JSX_ANNOTATION_REGEX.exec(comment.value);
if (file.ast.comments) {
for (const comment of file.ast.comments) {
const jsxMatches = JSX_ANNOTATION_REGEX.exec(comment.value);
if (jsxMatches) {
pragma = jsxMatches[1];
pragmaSet = true;
}
if (jsxMatches) {
pragma = jsxMatches[1];
pragmaSet = true;
}
const jsxFragMatches = JSX_FRAG_ANNOTATION_REGEX.exec(comment.value);
const jsxFragMatches = JSX_FRAG_ANNOTATION_REGEX.exec(comment.value);
if (jsxFragMatches) {
pragmaFrag = jsxFragMatches[1];
pragmaFragSet = true;
if (jsxFragMatches) {
pragmaFrag = jsxFragMatches[1];
pragmaFragSet = true;
}
}

@@ -105,0 +107,0 @@ }

{
"name": "@babel/plugin-transform-react-jsx",
"version": "7.0.0",
"version": "7.1.6",
"description": "Turn JSX into React function calls",
"repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-react-jsx",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"main": "lib/index.js",

@@ -20,5 +23,5 @@ "keywords": [

"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/core": "^7.1.6",
"@babel/helper-plugin-test-runner": "^7.0.0"
}
}

Sorry, the diff of this file is not supported yet

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