@unhead/shared 1.7.4 → 1.8.0-beta.0

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
@@ -322,13 +322,7 @@ function handleObjectEntry(key, v) {
322
322
  Object.entries(value).forEach(([k2, v2]) => {
323
323
  input[`${key}${k2 === "url" ? "" : `${k2.charAt(0).toUpperCase()}${k2.slice(1)}`}`] = v2;
324
324
  });
325
- const unpacked = unpackMeta(input).sort(
326
- (a, b) => (
327
- // @ts-expect-error untyped
328
- (a[attr]?.length || 0) - (b[attr]?.length || 0)
329
- )
330
- );
331
- return unpacked;
325
+ return unpackMeta(input).sort((a, b) => (a[attr]?.length || 0) - (b[attr]?.length || 0));
332
326
  }
333
327
  return [{ [attr]: fKey, ...value }];
334
328
  }
package/dist/index.mjs CHANGED
@@ -320,13 +320,7 @@ function handleObjectEntry(key, v) {
320
320
  Object.entries(value).forEach(([k2, v2]) => {
321
321
  input[`${key}${k2 === "url" ? "" : `${k2.charAt(0).toUpperCase()}${k2.slice(1)}`}`] = v2;
322
322
  });
323
- const unpacked = unpackMeta(input).sort(
324
- (a, b) => (
325
- // @ts-expect-error untyped
326
- (a[attr]?.length || 0) - (b[attr]?.length || 0)
327
- )
328
- );
329
- return unpacked;
323
+ return unpackMeta(input).sort((a, b) => (a[attr]?.length || 0) - (b[attr]?.length || 0));
330
324
  }
331
325
  return [{ [attr]: fKey, ...value }];
332
326
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unhead/shared",
3
3
  "type": "module",
4
- "version": "1.7.4",
4
+ "version": "1.8.0-beta.0",
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.7.4"
37
+ "@unhead/schema": "1.8.0-beta.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "packrup": "^0.1.0"