@unhead/shared 1.11.0 → 1.11.2
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/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -447,7 +447,7 @@ function nestedNormaliseProps(props, virtual, keys, startIndex) {
|
|
|
447
447
|
const v = String(props[k]);
|
|
448
448
|
const isDataKey = k.startsWith("data-");
|
|
449
449
|
if (v === "true" || v === "") {
|
|
450
|
-
props[k] = isDataKey ?
|
|
450
|
+
props[k] = isDataKey ? "true" : true;
|
|
451
451
|
} else if (!props[k]) {
|
|
452
452
|
if (isDataKey && v === "false")
|
|
453
453
|
props[k] = "false";
|
package/dist/index.mjs
CHANGED
|
@@ -445,7 +445,7 @@ function nestedNormaliseProps(props, virtual, keys, startIndex) {
|
|
|
445
445
|
const v = String(props[k]);
|
|
446
446
|
const isDataKey = k.startsWith("data-");
|
|
447
447
|
if (v === "true" || v === "") {
|
|
448
|
-
props[k] = isDataKey ?
|
|
448
|
+
props[k] = isDataKey ? "true" : true;
|
|
449
449
|
} else if (!props[k]) {
|
|
450
450
|
if (isDataKey && v === "false")
|
|
451
451
|
props[k] = "false";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unhead/shared",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.11.
|
|
4
|
+
"version": "1.11.2",
|
|
5
5
|
"author": "Harlan Wilton <harlan@harlanzw.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://github.com/sponsors/harlan-zw",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"dist"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@unhead/schema": "1.11.
|
|
37
|
+
"@unhead/schema": "1.11.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"packrup": "^0.1.2"
|