unhead 0.2.6 → 0.2.7
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 -5
- package/dist/index.mjs +5 -5
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -377,15 +377,11 @@ const TitleTemplatePlugin = () => {
|
|
|
377
377
|
});
|
|
378
378
|
};
|
|
379
379
|
|
|
380
|
-
function defineHeadPlugin(plugin) {
|
|
381
|
-
return plugin;
|
|
382
|
-
}
|
|
383
|
-
|
|
384
380
|
const DeprecatedTagAttrPlugin = () => {
|
|
385
381
|
return defineHeadPlugin({
|
|
386
382
|
hooks: {
|
|
387
383
|
"tag:normalise": function({ tag }) {
|
|
388
|
-
if (tag.props.body) {
|
|
384
|
+
if (typeof tag.props.body !== "undefined") {
|
|
389
385
|
tag.tagPosition = "bodyClose";
|
|
390
386
|
delete tag.props.body;
|
|
391
387
|
}
|
|
@@ -418,6 +414,10 @@ const HydratesStatePlugin = () => {
|
|
|
418
414
|
});
|
|
419
415
|
};
|
|
420
416
|
|
|
417
|
+
function defineHeadPlugin(plugin) {
|
|
418
|
+
return plugin;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
421
|
const PatchDomOnEntryUpdatesPlugin = (options) => {
|
|
422
422
|
return defineHeadPlugin({
|
|
423
423
|
hooks: {
|
package/dist/index.mjs
CHANGED
|
@@ -375,15 +375,11 @@ const TitleTemplatePlugin = () => {
|
|
|
375
375
|
});
|
|
376
376
|
};
|
|
377
377
|
|
|
378
|
-
function defineHeadPlugin(plugin) {
|
|
379
|
-
return plugin;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
378
|
const DeprecatedTagAttrPlugin = () => {
|
|
383
379
|
return defineHeadPlugin({
|
|
384
380
|
hooks: {
|
|
385
381
|
"tag:normalise": function({ tag }) {
|
|
386
|
-
if (tag.props.body) {
|
|
382
|
+
if (typeof tag.props.body !== "undefined") {
|
|
387
383
|
tag.tagPosition = "bodyClose";
|
|
388
384
|
delete tag.props.body;
|
|
389
385
|
}
|
|
@@ -416,6 +412,10 @@ const HydratesStatePlugin = () => {
|
|
|
416
412
|
});
|
|
417
413
|
};
|
|
418
414
|
|
|
415
|
+
function defineHeadPlugin(plugin) {
|
|
416
|
+
return plugin;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
419
|
const PatchDomOnEntryUpdatesPlugin = (options) => {
|
|
420
420
|
return defineHeadPlugin({
|
|
421
421
|
hooks: {
|
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.7",
|
|
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.7",
|
|
34
34
|
"hookable": "^5.4.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|