@babel/plugin-transform-react-jsx
Advanced tools
Comparing version 7.0.0 to 7.1.6
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5724
104
1