@unhead/schema 1.1.33 → 1.1.35

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +4 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -302,6 +302,9 @@ interface HeadHooks {
302
302
  entry: HeadEntry<any>;
303
303
  resolvedOptions: CreateHeadOptions;
304
304
  }) => HookResult;
305
+ 'tags:beforeResolve': (ctx: {
306
+ tags: HeadTag[];
307
+ }) => HookResult;
305
308
  'tags:resolve': (ctx: {
306
309
  tags: HeadTag[];
307
310
  }) => HookResult;
@@ -342,7 +345,7 @@ interface HeadEntry<Input> {
342
345
  *
343
346
  * @internal
344
347
  */
345
- transform?: (input: unknown) => unknown;
348
+ transform?: (input: Input) => Promise<Input> | Input;
346
349
  /**
347
350
  * Head entry index
348
351
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unhead/schema",
3
3
  "type": "module",
4
- "version": "1.1.33",
4
+ "version": "1.1.35",
5
5
  "author": "Harlan Wilton <harlan@harlanzw.com>",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/harlan-zw",