@nuxtjs/seo 2.0.1 → 2.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.
@@ -0,0 +1,19 @@
1
+ interface NuxtSEOModule {
2
+ slug: 'nuxt-seo' | 'site-config' | 'robots' | 'sitemap' | 'og-image' | 'link-checker' | 'seo-utils' | 'schema-org';
3
+ label: string;
4
+ icon: string;
5
+ description: string;
6
+ repo: string;
7
+ npm: string;
8
+ }
9
+ declare const NuxtSEO: NuxtSEOModule;
10
+ declare const SiteConfigModule: NuxtSEOModule;
11
+ declare const RobotsModule: NuxtSEOModule;
12
+ declare const SitemapModule: NuxtSEOModule;
13
+ declare const OgImageModule: NuxtSEOModule;
14
+ declare const LinkCheckerModule: NuxtSEOModule;
15
+ declare const SeoUtilsModule: NuxtSEOModule;
16
+ declare const SchemaOrgModule: NuxtSEOModule;
17
+ declare const modules: NuxtSEOModule[];
18
+
19
+ export { LinkCheckerModule, NuxtSEO, type NuxtSEOModule, OgImageModule, RobotsModule, SchemaOrgModule, SeoUtilsModule, SiteConfigModule, SitemapModule, modules };
package/dist/const.d.ts CHANGED
@@ -1 +1,19 @@
1
- export * from "/home/harlan/packages/nuxt-seo-solo/src/const";
1
+ interface NuxtSEOModule {
2
+ slug: 'nuxt-seo' | 'site-config' | 'robots' | 'sitemap' | 'og-image' | 'link-checker' | 'seo-utils' | 'schema-org';
3
+ label: string;
4
+ icon: string;
5
+ description: string;
6
+ repo: string;
7
+ npm: string;
8
+ }
9
+ declare const NuxtSEO: NuxtSEOModule;
10
+ declare const SiteConfigModule: NuxtSEOModule;
11
+ declare const RobotsModule: NuxtSEOModule;
12
+ declare const SitemapModule: NuxtSEOModule;
13
+ declare const OgImageModule: NuxtSEOModule;
14
+ declare const LinkCheckerModule: NuxtSEOModule;
15
+ declare const SeoUtilsModule: NuxtSEOModule;
16
+ declare const SchemaOrgModule: NuxtSEOModule;
17
+ declare const modules: NuxtSEOModule[];
18
+
19
+ export { LinkCheckerModule, NuxtSEO, type NuxtSEOModule, OgImageModule, RobotsModule, SchemaOrgModule, SeoUtilsModule, SiteConfigModule, SitemapModule, modules };
package/dist/const.mjs CHANGED
@@ -1,20 +1,76 @@
1
- import jiti from "file:///home/harlan/packages/nuxt-seo-solo/node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/lib/index.js";
1
+ const NuxtSEO = {
2
+ slug: "nuxt-seo",
3
+ label: "Nuxt SEO",
4
+ icon: "i-carbon-3rd-party-connected",
5
+ description: "The all-in-one module that brings it all together.",
6
+ repo: "harlan-zw/nuxt-seo",
7
+ npm: "@nuxtjs/seo"
8
+ };
9
+ const SiteConfigModule = {
10
+ slug: "site-config",
11
+ label: "Site Config",
12
+ icon: "i-carbon-settings-check",
13
+ description: "Powerful build and runtime shared site configuration for Nuxt modules.",
14
+ repo: "harlan-zw/nuxt-site-config",
15
+ npm: "nuxt-site-config"
16
+ };
17
+ const RobotsModule = {
18
+ slug: "robots",
19
+ label: "Robots",
20
+ icon: "i-carbon-bot",
21
+ description: "Tame the robots crawling and indexing your site with ease.",
22
+ repo: "nuxt-modules/robots",
23
+ npm: "@nuxtjs/robots"
24
+ };
25
+ const SitemapModule = {
26
+ slug: "sitemap",
27
+ label: "Sitemap",
28
+ icon: "i-carbon-load-balancer-application",
29
+ description: "Powerfully flexible XML Sitemaps that integrate seamlessly.",
30
+ repo: "nuxt-modules/sitemap",
31
+ npm: "@nuxtjs/sitemap"
32
+ };
33
+ const OgImageModule = {
34
+ slug: "og-image",
35
+ label: "OG Image",
36
+ icon: "i-carbon-image-search",
37
+ description: "Generate OG Images with Vue templates in Nuxt.",
38
+ repo: "nuxt-modules/og-image",
39
+ npm: "nuxt-og-image"
40
+ };
41
+ const LinkCheckerModule = {
42
+ slug: "link-checker",
43
+ label: "Link Checker",
44
+ icon: "i-carbon-cloud-satellite-link",
45
+ description: "Find and magically fix links that may be negatively effecting your SEO.",
46
+ repo: "harlan-zw/nuxt-link-checker",
47
+ npm: "nuxt-link-checker"
48
+ };
49
+ const SeoUtilsModule = {
50
+ slug: "seo-utils",
51
+ label: "SEO Utils",
52
+ icon: "i-carbon-tools",
53
+ description: "SEO utilities to improve your Nuxt sites discoverability and shareability.",
54
+ repo: "harlan-zw/nuxt-seo-utils",
55
+ npm: "nuxt-seo-utils"
56
+ };
57
+ const SchemaOrgModule = {
58
+ slug: "schema-org",
59
+ label: "Schema.org",
60
+ icon: "i-carbon-chart-relationship",
61
+ description: "The quickest and easiest way to build Schema.org graphs.",
62
+ repo: "harlan-zw/nuxt-schema-org",
63
+ npm: "nuxt-schema-org"
64
+ };
65
+ const modules = [
66
+ NuxtSEO,
67
+ RobotsModule,
68
+ SitemapModule,
69
+ OgImageModule,
70
+ SchemaOrgModule,
71
+ LinkCheckerModule,
72
+ SeoUtilsModule,
73
+ SiteConfigModule
74
+ ];
2
75
 
3
- /** @type {import("/home/harlan/packages/nuxt-seo-solo/src/const")} */
4
- const _module = jiti(null, {
5
- "esmResolve": true,
6
- "interopDefault": true,
7
- "alias": {
8
- "@nuxtjs/seo": "/home/harlan/packages/nuxt-seo-solo"
9
- }
10
- })("/home/harlan/packages/nuxt-seo-solo/src/const.ts");
11
-
12
- export const NuxtSEO = _module.NuxtSEO;
13
- export const SiteConfigModule = _module.SiteConfigModule;
14
- export const RobotsModule = _module.RobotsModule;
15
- export const SitemapModule = _module.SitemapModule;
16
- export const OgImageModule = _module.OgImageModule;
17
- export const LinkCheckerModule = _module.LinkCheckerModule;
18
- export const SeoUtilsModule = _module.SeoUtilsModule;
19
- export const SchemaOrgModule = _module.SchemaOrgModule;
20
- export const modules = _module.modules;
76
+ export { LinkCheckerModule, NuxtSEO, OgImageModule, RobotsModule, SchemaOrgModule, SeoUtilsModule, SiteConfigModule, SitemapModule, modules };
@@ -0,0 +1,11 @@
1
+ import * as _nuxt_schema from '@nuxt/schema';
2
+
3
+ interface ModuleOptions {
4
+ /**
5
+ * Whether the module should be loaded.
6
+ */
7
+ enabled: boolean;
8
+ }
9
+ declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
10
+
11
+ export { type ModuleOptions, _default as default };
package/dist/module.d.ts CHANGED
@@ -1,2 +1,11 @@
1
- export * from "/home/harlan/packages/nuxt-seo-solo/src/module";
2
- export { default } from "/home/harlan/packages/nuxt-seo-solo/src/module";
1
+ import * as _nuxt_schema from '@nuxt/schema';
2
+
3
+ interface ModuleOptions {
4
+ /**
5
+ * Whether the module should be loaded.
6
+ */
7
+ enabled: boolean;
8
+ }
9
+ declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
10
+
11
+ export { type ModuleOptions, _default as default };
package/dist/module.mjs CHANGED
@@ -1,12 +1,27 @@
1
- import jiti from "file:///home/harlan/packages/nuxt-seo-solo/node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/lib/index.js";
1
+ import { defineNuxtModule, installModule, resolvePath } from '@nuxt/kit';
2
+ import { modules } from './const.mjs';
2
3
 
3
- /** @type {import("/home/harlan/packages/nuxt-seo-solo/src/module")} */
4
- const _module = jiti(null, {
5
- "esmResolve": true,
6
- "interopDefault": true,
7
- "alias": {
8
- "@nuxtjs/seo": "/home/harlan/packages/nuxt-seo-solo"
4
+ const module = defineNuxtModule({
5
+ meta: {
6
+ name: "nuxtseo",
7
+ compatibility: {
8
+ nuxt: ">=3.7.0",
9
+ bridge: false
10
+ }
11
+ },
12
+ defaults: {
13
+ enabled: true
14
+ },
15
+ async setup(config, nuxt) {
16
+ if (!config.enabled) {
17
+ return;
18
+ }
19
+ for (const module of modules) {
20
+ if (module.npm !== "@nuxtjs/seo") {
21
+ await installModule(await resolvePath(module.npm), {}, nuxt);
22
+ }
23
+ }
9
24
  }
10
- })("/home/harlan/packages/nuxt-seo-solo/src/module.ts");
25
+ });
11
26
 
12
- export default _module;
27
+ export { module as default };
package/dist/types.d.mts CHANGED
@@ -1,13 +1 @@
1
- import type { ModuleHooks, ModuleRuntimeHooks, ModuleRuntimeConfig, ModulePublicRuntimeConfig } from './module.js'
2
-
3
- declare module '#app' {
4
- interface RuntimeNuxtHooks extends ModuleRuntimeHooks {}
5
- }
6
-
7
- declare module '@nuxt/schema' {
8
- interface NuxtHooks extends ModuleHooks {}
9
- interface RuntimeConfig extends ModuleRuntimeConfig {}
10
- interface PublicRuntimeConfig extends ModulePublicRuntimeConfig {}
11
- }
12
-
13
- export * from "./module.js"
1
+ export { type ModuleOptions, default } from './module.js'
package/dist/types.d.ts CHANGED
@@ -1,13 +1 @@
1
- import type { ModuleHooks, ModuleRuntimeHooks, ModuleRuntimeConfig, ModulePublicRuntimeConfig } from './module'
2
-
3
- declare module '#app' {
4
- interface RuntimeNuxtHooks extends ModuleRuntimeHooks {}
5
- }
6
-
7
- declare module '@nuxt/schema' {
8
- interface NuxtHooks extends ModuleHooks {}
9
- interface RuntimeConfig extends ModuleRuntimeConfig {}
10
- interface PublicRuntimeConfig extends ModulePublicRuntimeConfig {}
11
- }
12
-
13
- export * from "./module"
1
+ export { type ModuleOptions, default } from './module'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxtjs/seo",
3
3
  "type": "module",
4
- "version": "2.0.1",
4
+ "version": "2.0.2",
5
5
  "description": "The all-in-one SEO layer for Nuxt 3.",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",