unhead 1.0.1 → 1.0.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 CHANGED
@@ -206,6 +206,14 @@ function changeKeyCasingDeep(input) {
206
206
  const tagWeight = (tag) => {
207
207
  if (typeof tag.tagPriority === "number")
208
208
  return tag.tagPriority;
209
+ switch (tag.tagPriority) {
210
+ case "critical":
211
+ return 2;
212
+ case "high":
213
+ return 9;
214
+ case "low":
215
+ return 12;
216
+ }
209
217
  switch (tag.tag) {
210
218
  case "base":
211
219
  return -1;
package/dist/index.mjs CHANGED
@@ -204,6 +204,14 @@ function changeKeyCasingDeep(input) {
204
204
  const tagWeight = (tag) => {
205
205
  if (typeof tag.tagPriority === "number")
206
206
  return tag.tagPriority;
207
+ switch (tag.tagPriority) {
208
+ case "critical":
209
+ return 2;
210
+ case "high":
211
+ return 9;
212
+ case "low":
213
+ return 12;
214
+ }
207
215
  switch (tag.tag) {
208
216
  case "base":
209
217
  return -1;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unhead",
3
3
  "type": "module",
4
- "version": "1.0.1",
4
+ "version": "1.0.2",
5
5
  "packageManager": "pnpm@7.14.0",
6
6
  "author": "Harlan Wilton <harlan@harlanzw.com>",
7
7
  "license": "MIT",
@@ -30,12 +30,12 @@
30
30
  "dist"
31
31
  ],
32
32
  "dependencies": {
33
- "@unhead/dom": "1.0.1",
34
- "@unhead/schema": "1.0.1",
33
+ "@unhead/dom": "1.0.2",
34
+ "@unhead/schema": "1.0.2",
35
35
  "hookable": "^5.4.1"
36
36
  },
37
37
  "devDependencies": {
38
- "zhead": "^1.0.2"
38
+ "zhead": "^1.0.3"
39
39
  },
40
40
  "scripts": {
41
41
  "build": "unbuild .",