babel-plugin-jsx-dom-expressions 0.35.12 → 0.35.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -5
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -3220,7 +3220,7 @@ var config = {
|
|
|
3220
3220
|
staticMarker: "@once",
|
|
3221
3221
|
effectWrapper: "effect",
|
|
3222
3222
|
memoWrapper: "memo",
|
|
3223
|
-
validate:
|
|
3223
|
+
validate: true
|
|
3224
3224
|
};
|
|
3225
3225
|
|
|
3226
3226
|
const { isValidHTMLNesting } = require("validate-html-nesting");
|
|
@@ -3229,11 +3229,10 @@ const { isValidHTMLNesting } = require("validate-html-nesting");
|
|
|
3229
3229
|
const JSXValidator = {
|
|
3230
3230
|
JSXElement(path) {
|
|
3231
3231
|
const elName = path.node.openingElement.name;
|
|
3232
|
-
if (!t__namespace.isJSXIdentifier(elName)) return;
|
|
3233
|
-
const elTagName = elName.name;
|
|
3234
|
-
if (!isComponent(elTagName)) return;
|
|
3235
3232
|
const parent = path.parent;
|
|
3236
|
-
if (!t__namespace.isJSXElement(parent)) return;
|
|
3233
|
+
if (!t__namespace.isJSXElement(parent) || !t__namespace.isJSXIdentifier(elName)) return;
|
|
3234
|
+
const elTagName = elName.name;
|
|
3235
|
+
if (isComponent(elTagName)) return;
|
|
3237
3236
|
const parentElName = parent.openingElement.name;
|
|
3238
3237
|
if (!t__namespace.isJSXIdentifier(parentElName)) return;
|
|
3239
3238
|
const parentElTagName = parentElName.name;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babel-plugin-jsx-dom-expressions",
|
|
3
3
|
"description": "A JSX to DOM plugin that wraps expressions for fine grained change detection",
|
|
4
|
-
"version": "0.35.
|
|
4
|
+
"version": "0.35.13",
|
|
5
5
|
"author": "Ryan Carniato",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@babel/plugin-syntax-jsx": "^7.18.6",
|
|
24
24
|
"@babel/types": "^7.20.7",
|
|
25
25
|
"html-entities": "2.3.3",
|
|
26
|
-
"validate-html-nesting": "^1.0
|
|
26
|
+
"validate-html-nesting": "^1.1.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@babel/core": "^7.20.12"
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@babel/core": "^7.20.12"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "a7a444cd18147a73ae1c514f8defcc0efadf18d2"
|
|
35
35
|
}
|