nuxt-seo-utils 6.0.1 → 6.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/module.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "nuxt": ">=3.6.1",
6
6
  "bridge": false
7
7
  },
8
- "version": "6.0.0",
8
+ "version": "6.0.1",
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "0.8.4",
11
11
  "unbuild": "2.0.0"
package/dist/module.mjs CHANGED
@@ -499,7 +499,12 @@ const module = defineNuxtModule({
499
499
  if (config.extendNuxtConfigAppHeadTypes)
500
500
  extendNuxtConfigAppHeadTypes();
501
501
  extendTypes("nuxt-seo-utils", async () => {
502
- const unheadSchemaPath = relative(resolve(nuxt.options.rootDir, nuxt.options.buildDir, "module"), await resolvePath("@unhead/schema"));
502
+ let unheadSchemaPath;
503
+ try {
504
+ unheadSchemaPath = relative(resolve(nuxt.options.rootDir, nuxt.options.buildDir, "module"), await resolvePath("@unhead/schema", { url: import.meta.url }));
505
+ } catch {
506
+ unheadSchemaPath = "@unhead/schema";
507
+ }
503
508
  return `
504
509
  declare module 'nitropack' {
505
510
  interface NitroRouteRules {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-seo-utils",
3
3
  "type": "module",
4
- "version": "6.0.1",
4
+ "version": "6.0.2",
5
5
  "description": "SEO utilities to improve your Nuxt sites discoverability and shareability",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/harlan-zw",