@unhead/shared 1.1.30 → 1.1.32
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 +2 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -29,6 +29,7 @@ const ValidHeadTags = [
|
|
|
29
29
|
];
|
|
30
30
|
const UniqueTags = ["base", "title", "titleTemplate", "bodyAttrs", "htmlAttrs", "templateParams"];
|
|
31
31
|
const TagConfigKeys = ["tagPosition", "tagPriority", "tagDuplicateStrategy", "innerHTML", "textContent"];
|
|
32
|
+
const EntryConfigKeys = ["tagPosition", "tagPriority"];
|
|
32
33
|
|
|
33
34
|
function defineHeadPlugin(plugin) {
|
|
34
35
|
return plugin;
|
|
@@ -82,6 +83,7 @@ function resolveTitleTemplate(template, title) {
|
|
|
82
83
|
return template;
|
|
83
84
|
}
|
|
84
85
|
|
|
86
|
+
exports.EntryConfigKeys = EntryConfigKeys;
|
|
85
87
|
exports.HasElementTags = HasElementTags;
|
|
86
88
|
exports.SelfClosingTags = SelfClosingTags;
|
|
87
89
|
exports.TagConfigKeys = TagConfigKeys;
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ declare const HasElementTags: string[];
|
|
|
9
9
|
declare const ValidHeadTags: string[];
|
|
10
10
|
declare const UniqueTags: string[];
|
|
11
11
|
declare const TagConfigKeys: string[];
|
|
12
|
+
declare const EntryConfigKeys: string[];
|
|
12
13
|
|
|
13
14
|
declare function defineHeadPlugin(plugin: HeadPlugin): HeadPlugin;
|
|
14
15
|
|
|
@@ -20,4 +21,4 @@ declare function tagDedupeKey<T extends HeadTag>(tag: T, fn?: (key: string) => b
|
|
|
20
21
|
|
|
21
22
|
declare function resolveTitleTemplate(template: string | ((title?: string) => string | null) | null, title?: string): string | null;
|
|
22
23
|
|
|
23
|
-
export { Arrayable, HasElementTags, SelfClosingTags, TagConfigKeys, TagsWithInnerContent, UniqueTags, ValidHeadTags, asArray, computeHashes, defineHeadPlugin, hashCode, hashTag, resolveTitleTemplate, tagDedupeKey };
|
|
24
|
+
export { Arrayable, EntryConfigKeys, HasElementTags, SelfClosingTags, TagConfigKeys, TagsWithInnerContent, UniqueTags, ValidHeadTags, asArray, computeHashes, defineHeadPlugin, hashCode, hashTag, resolveTitleTemplate, tagDedupeKey };
|
package/dist/index.mjs
CHANGED
|
@@ -27,6 +27,7 @@ const ValidHeadTags = [
|
|
|
27
27
|
];
|
|
28
28
|
const UniqueTags = ["base", "title", "titleTemplate", "bodyAttrs", "htmlAttrs", "templateParams"];
|
|
29
29
|
const TagConfigKeys = ["tagPosition", "tagPriority", "tagDuplicateStrategy", "innerHTML", "textContent"];
|
|
30
|
+
const EntryConfigKeys = ["tagPosition", "tagPriority"];
|
|
30
31
|
|
|
31
32
|
function defineHeadPlugin(plugin) {
|
|
32
33
|
return plugin;
|
|
@@ -80,4 +81,4 @@ function resolveTitleTemplate(template, title) {
|
|
|
80
81
|
return template;
|
|
81
82
|
}
|
|
82
83
|
|
|
83
|
-
export { HasElementTags, SelfClosingTags, TagConfigKeys, TagsWithInnerContent, UniqueTags, ValidHeadTags, asArray, computeHashes, defineHeadPlugin, hashCode, hashTag, resolveTitleTemplate, tagDedupeKey };
|
|
84
|
+
export { EntryConfigKeys, HasElementTags, SelfClosingTags, TagConfigKeys, TagsWithInnerContent, UniqueTags, ValidHeadTags, asArray, computeHashes, defineHeadPlugin, hashCode, hashTag, resolveTitleTemplate, tagDedupeKey };
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unhead/shared",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.1.
|
|
5
|
-
"packageManager": "pnpm@8.6.
|
|
4
|
+
"version": "1.1.32",
|
|
5
|
+
"packageManager": "pnpm@8.6.7",
|
|
6
6
|
"author": "Harlan Wilton <harlan@harlanzw.com>",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"funding": "https://github.com/sponsors/harlan-zw",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dist"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@unhead/schema": "1.1.
|
|
38
|
+
"@unhead/schema": "1.1.32"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "unbuild .",
|