unhead 0.2.3 → 0.2.5
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 +5 -0
- package/dist/index.mjs +5 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -321,6 +321,11 @@ const DedupesTagsPlugin = (options) => {
|
|
|
321
321
|
return;
|
|
322
322
|
} else if (tag._e === dupedTag._e) {
|
|
323
323
|
dedupeKey = `${dedupeKey}:entry(${tag._e}:${tag._p})`;
|
|
324
|
+
if (dupedTag._s) {
|
|
325
|
+
delete tag.props[dupedTag._s];
|
|
326
|
+
tag._s = dupedTag._s + tag._p;
|
|
327
|
+
tag.props[tag._s] = "";
|
|
328
|
+
}
|
|
324
329
|
tag._d = dedupeKey;
|
|
325
330
|
} else {
|
|
326
331
|
tag._p = dupedTag._p;
|
package/dist/index.mjs
CHANGED
|
@@ -319,6 +319,11 @@ const DedupesTagsPlugin = (options) => {
|
|
|
319
319
|
return;
|
|
320
320
|
} else if (tag._e === dupedTag._e) {
|
|
321
321
|
dedupeKey = `${dedupeKey}:entry(${tag._e}:${tag._p})`;
|
|
322
|
+
if (dupedTag._s) {
|
|
323
|
+
delete tag.props[dupedTag._s];
|
|
324
|
+
tag._s = dupedTag._s + tag._p;
|
|
325
|
+
tag.props[tag._s] = "";
|
|
326
|
+
}
|
|
322
327
|
tag._d = dedupeKey;
|
|
323
328
|
} else {
|
|
324
329
|
tag._p = dupedTag._p;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unhead",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.5",
|
|
5
5
|
"packageManager": "pnpm@7.14.0",
|
|
6
6
|
"author": "Harlan Wilton <harlan@harlanzw.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dist"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@unhead/schema": "0.2.
|
|
33
|
+
"@unhead/schema": "0.2.5",
|
|
34
34
|
"hookable": "^5.4.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|