babel-plugin-jsx-dom-expressions 0.30.0 → 0.30.3
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 -4
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -793,7 +793,7 @@ function transformAttributes$2(path, results) {
|
|
|
793
793
|
isDynamic(attribute.get("argument"), {
|
|
794
794
|
checkMember: true
|
|
795
795
|
})
|
|
796
|
-
? t__namespace.isCallExpression(node.argument)
|
|
796
|
+
? t__namespace.isCallExpression(node.argument) && !node.argument.arguments.length
|
|
797
797
|
? node.argument.callee
|
|
798
798
|
: t__namespace.arrowFunctionExpression([], node.argument)
|
|
799
799
|
: node.argument,
|
|
@@ -1626,7 +1626,7 @@ function transformAttributes$1(path, results) {
|
|
|
1626
1626
|
checkMember: true,
|
|
1627
1627
|
native: true
|
|
1628
1628
|
})
|
|
1629
|
-
? t__namespace.isCallExpression(node.argument)
|
|
1629
|
+
? t__namespace.isCallExpression(node.argument) && !node.argument.arguments.length
|
|
1630
1630
|
? node.argument.callee
|
|
1631
1631
|
: t__namespace.arrowFunctionExpression([], node.argument)
|
|
1632
1632
|
: node.argument,
|
|
@@ -1910,7 +1910,7 @@ function transformAttributes(path, results) {
|
|
|
1910
1910
|
isDynamic(attribute.get("argument"), {
|
|
1911
1911
|
checkMember: true
|
|
1912
1912
|
})
|
|
1913
|
-
? t__namespace.isCallExpression(node.argument)
|
|
1913
|
+
? t__namespace.isCallExpression(node.argument) && !node.argument.arguments.length
|
|
1914
1914
|
? node.argument.callee
|
|
1915
1915
|
: t__namespace.arrowFunctionExpression([], node.argument)
|
|
1916
1916
|
: node.argument,
|
|
@@ -2220,7 +2220,7 @@ function transformComponent(path) {
|
|
|
2220
2220
|
isDynamic(attribute.get("argument"), {
|
|
2221
2221
|
checkMember: true
|
|
2222
2222
|
})
|
|
2223
|
-
? t__namespace.isCallExpression(node.argument)
|
|
2223
|
+
? t__namespace.isCallExpression(node.argument) && !node.argument.arguments.length
|
|
2224
2224
|
? node.argument.callee
|
|
2225
2225
|
: t__namespace.arrowFunctionExpression([], node.argument)
|
|
2226
2226
|
: node.argument
|
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.30.
|
|
4
|
+
"version": "0.30.3",
|
|
5
5
|
"author": "Ryan Carniato",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"@babel/types": "^7.11.5",
|
|
24
24
|
"html-entities": "2.3.2"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "4eb94a2d860cb1b1fa09cce9b47c52e72f2e6648"
|
|
27
27
|
}
|