@nuxtjs/sitemap 7.2.0 → 7.2.1
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/content.d.ts +1 -0
- package/dist/client/200.html +6 -6
- package/dist/client/404.html +6 -6
- package/dist/client/_nuxt/{DIH-cllJ.js → B-Cf5GGq.js} +1 -1
- package/dist/client/_nuxt/{sSZQ7D2b.js → CBErYmNG.js} +3 -3
- package/dist/client/_nuxt/{Djzw0wLt.js → CxhUe2GG.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/b551cdd3-b342-41ea-8265-0fb9c87a6b0b.json +1 -0
- package/dist/client/_nuxt/{entry.WCUheyaE.css → entry.CJ2Eg9q-.css} +1 -1
- package/dist/client/index.html +6 -6
- package/dist/content.cjs +48 -0
- package/dist/content.d.cts +231 -0
- package/dist/content.d.mts +231 -0
- package/dist/content.d.ts +231 -0
- package/dist/content.mjs +45 -0
- package/dist/module.cjs +1270 -4
- package/dist/module.d.cts +8 -0
- package/dist/module.d.mts +1 -4
- package/dist/module.d.ts +1 -4
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -51
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +17 -13
- package/dist/client/_nuxt/builds/meta/cbd506e7-b089-42a0-8062-dff717a0d923.json +0 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
+
import { ModuleOptions as ModuleOptions$1 } from '../dist/runtime/types.js';
|
|
3
|
+
|
|
4
|
+
interface ModuleOptions extends ModuleOptions$1 {
|
|
5
|
+
}
|
|
6
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
7
|
+
|
|
8
|
+
export { type ModuleOptions, _default as default };
|
package/dist/module.d.mts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
2
|
import { ModuleOptions as ModuleOptions$1 } from '../dist/runtime/types.js';
|
|
3
3
|
|
|
4
|
-
declare function asSitemapCollection(collection: any): any;
|
|
5
|
-
|
|
6
4
|
interface ModuleOptions extends ModuleOptions$1 {
|
|
7
5
|
}
|
|
8
|
-
|
|
9
6
|
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
10
7
|
|
|
11
|
-
export { type ModuleOptions,
|
|
8
|
+
export { type ModuleOptions, _default as default };
|
package/dist/module.d.ts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
2
|
import { ModuleOptions as ModuleOptions$1 } from '../dist/runtime/types.js';
|
|
3
3
|
|
|
4
|
-
declare function asSitemapCollection(collection: any): any;
|
|
5
|
-
|
|
6
4
|
interface ModuleOptions extends ModuleOptions$1 {
|
|
7
5
|
}
|
|
8
|
-
|
|
9
6
|
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
10
7
|
|
|
11
|
-
export { type ModuleOptions,
|
|
8
|
+
export { type ModuleOptions, _default as default };
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -12,7 +12,6 @@ import { join } from 'node:path';
|
|
|
12
12
|
import chalk from 'chalk';
|
|
13
13
|
import { build } from 'nitropack';
|
|
14
14
|
import { normaliseDate } from '../dist/runtime/server/sitemap/urlset/normalise.js';
|
|
15
|
-
import { z } from '@nuxt/content';
|
|
16
15
|
|
|
17
16
|
async function resolveUrls(urls, ctx) {
|
|
18
17
|
if (typeof urls === "function")
|
|
@@ -609,55 +608,6 @@ function normalizeFilters(filters) {
|
|
|
609
608
|
}).filter(Boolean);
|
|
610
609
|
}
|
|
611
610
|
|
|
612
|
-
const sitemap = z.object({
|
|
613
|
-
loc: z.string().optional(),
|
|
614
|
-
lastmod: z.date().optional(),
|
|
615
|
-
changefreq: z.union([z.literal("always"), z.literal("hourly"), z.literal("daily"), z.literal("weekly"), z.literal("monthly"), z.literal("yearly"), z.literal("never")]).optional(),
|
|
616
|
-
priority: z.number().optional(),
|
|
617
|
-
images: z.array(z.object({
|
|
618
|
-
loc: z.string(),
|
|
619
|
-
caption: z.string().optional(),
|
|
620
|
-
geo_location: z.string().optional(),
|
|
621
|
-
title: z.string().optional(),
|
|
622
|
-
license: z.string().optional()
|
|
623
|
-
})).optional(),
|
|
624
|
-
videos: z.array(z.object({
|
|
625
|
-
content_loc: z.string(),
|
|
626
|
-
player_loc: z.string().optional(),
|
|
627
|
-
duration: z.string().optional(),
|
|
628
|
-
expiration_date: z.date().optional(),
|
|
629
|
-
rating: z.number().optional(),
|
|
630
|
-
view_count: z.number().optional(),
|
|
631
|
-
publication_date: z.date().optional(),
|
|
632
|
-
family_friendly: z.boolean().optional(),
|
|
633
|
-
tag: z.string().optional(),
|
|
634
|
-
category: z.string().optional(),
|
|
635
|
-
restriction: z.object({
|
|
636
|
-
relationship: z.literal("allow").optional(),
|
|
637
|
-
value: z.string().optional()
|
|
638
|
-
}).optional(),
|
|
639
|
-
gallery_loc: z.string().optional(),
|
|
640
|
-
price: z.string().optional(),
|
|
641
|
-
requires_subscription: z.boolean().optional(),
|
|
642
|
-
uploader: z.string().optional()
|
|
643
|
-
})).optional()
|
|
644
|
-
}).optional();
|
|
645
|
-
function asSitemapCollection(collection) {
|
|
646
|
-
if (collection.type !== "page") {
|
|
647
|
-
return;
|
|
648
|
-
}
|
|
649
|
-
if (!collection.schema) {
|
|
650
|
-
collection.schema = z.object({
|
|
651
|
-
sitemap
|
|
652
|
-
});
|
|
653
|
-
} else {
|
|
654
|
-
collection.schema = collection.schema.extend({
|
|
655
|
-
sitemap
|
|
656
|
-
});
|
|
657
|
-
}
|
|
658
|
-
return collection;
|
|
659
|
-
}
|
|
660
|
-
|
|
661
611
|
const module = defineNuxtModule({
|
|
662
612
|
meta: {
|
|
663
613
|
name: "@nuxtjs/sitemap",
|
|
@@ -1311,4 +1261,4 @@ declare module 'vue-router' {
|
|
|
1311
1261
|
}
|
|
1312
1262
|
});
|
|
1313
1263
|
|
|
1314
|
-
export {
|
|
1264
|
+
export { module as default };
|
package/dist/types.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { type ModuleOptions,
|
|
1
|
+
export { type ModuleOptions, default } from './module.js'
|
package/dist/types.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { type ModuleOptions,
|
|
1
|
+
export { type ModuleOptions, default } from './module'
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxtjs/sitemap",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.2.
|
|
4
|
+
"version": "7.2.1",
|
|
5
5
|
"description": "Powerfully flexible XML Sitemaps that integrate seamlessly, for Nuxt.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Harlan Wilton",
|
|
@@ -26,16 +26,29 @@
|
|
|
26
26
|
"types": "./dist/types.d.ts",
|
|
27
27
|
"import": "./dist/module.mjs",
|
|
28
28
|
"require": "./dist/module.cjs"
|
|
29
|
+
},
|
|
30
|
+
"./content": {
|
|
31
|
+
"types": "./dist/content.d.ts",
|
|
32
|
+
"import": "./dist/content.mjs",
|
|
33
|
+
"require": "./dist/content.cjs"
|
|
29
34
|
}
|
|
30
35
|
},
|
|
31
36
|
"main": "./dist/module.cjs",
|
|
32
37
|
"types": "./dist/types.d.ts",
|
|
33
38
|
"files": [
|
|
34
39
|
"dist",
|
|
35
|
-
"virtual.d.ts"
|
|
40
|
+
"virtual.d.ts",
|
|
41
|
+
"content.d.ts"
|
|
36
42
|
],
|
|
43
|
+
"typesVersions": {
|
|
44
|
+
"*": {
|
|
45
|
+
"content": [
|
|
46
|
+
"dist/content"
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
},
|
|
37
50
|
"dependencies": {
|
|
38
|
-
"@nuxt/devtools-kit": "^
|
|
51
|
+
"@nuxt/devtools-kit": "^2.0.0-beta.3",
|
|
39
52
|
"@nuxt/kit": "^3.15.2",
|
|
40
53
|
"chalk": "^5.4.1",
|
|
41
54
|
"defu": "^6.1.4",
|
|
@@ -56,7 +69,7 @@
|
|
|
56
69
|
"@nuxt/test-utils": "^3.15.4",
|
|
57
70
|
"@nuxt/ui": "^2.21.0",
|
|
58
71
|
"@nuxtjs/i18n": "9.1.1",
|
|
59
|
-
"@nuxtjs/robots": "^5.
|
|
72
|
+
"@nuxtjs/robots": "^5.2.1",
|
|
60
73
|
"bumpp": "^9.10.1",
|
|
61
74
|
"eslint": "^9.18.0",
|
|
62
75
|
"eslint-plugin-n": "^17.15.1",
|
|
@@ -70,15 +83,6 @@
|
|
|
70
83
|
"postcss": "8.4.47",
|
|
71
84
|
"typescript": "5.6.3"
|
|
72
85
|
},
|
|
73
|
-
"build": {
|
|
74
|
-
"externals": [
|
|
75
|
-
"h3",
|
|
76
|
-
"std-env",
|
|
77
|
-
"nitropack",
|
|
78
|
-
"consola",
|
|
79
|
-
"@nuxt/content"
|
|
80
|
-
]
|
|
81
|
-
},
|
|
82
86
|
"scripts": {
|
|
83
87
|
"lint": "eslint .",
|
|
84
88
|
"lint:type": "tsc --noEmit",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"cbd506e7-b089-42a0-8062-dff717a0d923","timestamp":1737249770886,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|