babel-plugin-jsx-dom-expressions 0.37.13 → 0.37.16
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 +3 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -1142,7 +1142,9 @@ function transformAttributes$2(path, results) {
|
|
|
1142
1142
|
evaluated !== undefined &&
|
|
1143
1143
|
((type = typeof evaluated) === "string" || type === "number")
|
|
1144
1144
|
) {
|
|
1145
|
-
|
|
1145
|
+
if (type === "number" && (Properties.has(key) || key.startsWith("prop:"))) {
|
|
1146
|
+
value = t__namespace.jsxExpressionContainer(t__namespace.numericLiteral(evaluated));
|
|
1147
|
+
} else value = t__namespace.stringLiteral(String(evaluated));
|
|
1146
1148
|
}
|
|
1147
1149
|
}
|
|
1148
1150
|
if (
|
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.37.
|
|
4
|
+
"version": "0.37.16",
|
|
5
5
|
"author": "Ryan Carniato",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@babel/core": "^7.20.12"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "1c561b9430ff5b16391443338eb07f7a6ca98e20"
|
|
35
35
|
}
|