@nuxtjs/sitemap 7.2.8 → 7.2.10
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/client/200.html +9 -9
- package/dist/client/404.html +9 -9
- package/dist/client/_nuxt/BLmTiKMJ.js +1 -0
- package/dist/client/_nuxt/BUP090M8.js +172 -0
- package/dist/client/_nuxt/DDzCRRw4.js +1 -0
- package/dist/client/_nuxt/DdvkoY3I.js +1 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/3c351607-eab3-459a-b743-aba04e49a80e.json +1 -0
- package/dist/client/_nuxt/{entry.CJ2Eg9q-.css → entry.BrROiVtQ.css} +1 -1
- package/dist/client/_nuxt/error-404.BMkETmdU.css +1 -0
- package/dist/client/_nuxt/error-500.C3_I-O7u.css +1 -0
- package/dist/client/index.html +9 -9
- package/dist/content.d.cts +2 -1
- package/dist/content.d.mts +2 -1
- package/dist/content.d.ts +2 -1
- package/dist/module.cjs +27 -25
- package/dist/module.d.cts +3 -1
- package/dist/module.d.mts +3 -1
- package/dist/module.d.ts +3 -1
- package/dist/module.json +3 -3
- package/dist/module.mjs +29 -27
- package/dist/runtime/server/routes/__sitemap__/debug.d.ts +4 -4
- package/dist/runtime/server/routes/__sitemap__/nuxt-content-urls-v3.js +7 -2
- package/dist/types.d.mts +5 -1
- package/package.json +24 -31
- package/content.d.ts +0 -1
- package/dist/client/_nuxt/B1NUf7y4.js +0 -1
- package/dist/client/_nuxt/BQoSv7ci.js +0 -1
- package/dist/client/_nuxt/BqOMjNHq.js +0 -1
- package/dist/client/_nuxt/DLMm4UZJ.js +0 -172
- package/dist/client/_nuxt/builds/meta/29f34212-6bce-4ec6-ac5a-7621297c72da.json +0 -1
- package/dist/client/_nuxt/builds/meta/dev.json +0 -1
- package/dist/client/_nuxt/error-404.BekgbWEw.css +0 -1
- package/dist/client/_nuxt/error-500.DsnRrjDA.css +0 -1
- package/dist/types.d.ts +0 -1
|
@@ -7,18 +7,18 @@ declare const _default: import("h3").EventHandler<import("h3").EventHandlerReque
|
|
|
7
7
|
isNuxtContentDocumentDriven: boolean;
|
|
8
8
|
sitemaps: {
|
|
9
9
|
index?: Pick<SitemapDefinition, "sitemapName" | "_route"> & {
|
|
10
|
-
sitemaps: import("../../../types").SitemapIndexEntry[];
|
|
10
|
+
sitemaps: import("../../../types.js").SitemapIndexEntry[];
|
|
11
11
|
};
|
|
12
12
|
} & Record<string, Omit<SitemapDefinition, "urls"> & {
|
|
13
13
|
_hasSourceChunk?: boolean;
|
|
14
14
|
}>;
|
|
15
|
-
autoI18n?: import("../../../types").AutoI18nConfig;
|
|
15
|
+
autoI18n?: import("../../../types.js").AutoI18nConfig;
|
|
16
16
|
isMultiSitemap: boolean;
|
|
17
17
|
isI18nMapped: boolean;
|
|
18
18
|
sitemapsPathPrefix: string | false;
|
|
19
19
|
cacheMaxAgeSeconds: number | false;
|
|
20
20
|
sitemapName: string;
|
|
21
|
-
excludeAppSources: true | (import("../../../types").AppSourceContext[]);
|
|
21
|
+
excludeAppSources: true | (import("../../../types.js").AppSourceContext[]);
|
|
22
22
|
sortEntries: boolean;
|
|
23
23
|
defaultSitemapsChunkSize: number | false;
|
|
24
24
|
xslColumns?: {
|
|
@@ -35,6 +35,6 @@ declare const _default: import("h3").EventHandler<import("h3").EventHandlerReque
|
|
|
35
35
|
credits: boolean;
|
|
36
36
|
minify: boolean;
|
|
37
37
|
};
|
|
38
|
-
globalSources: import("../../../types").SitemapSourceResolved[];
|
|
38
|
+
globalSources: import("../../../types.js").SitemapSourceResolved[];
|
|
39
39
|
}>>;
|
|
40
40
|
export default _default;
|
|
@@ -10,8 +10,13 @@ export default defineEventHandler(async (e) => {
|
|
|
10
10
|
}
|
|
11
11
|
const contentList = [];
|
|
12
12
|
for (const collection of collections) {
|
|
13
|
-
contentList.push(queryCollectionWithEvent(e, collection).select("path", "sitemap").where("path", "IS NOT NULL").all());
|
|
13
|
+
contentList.push(queryCollectionWithEvent(e, collection).select("path", "sitemap").where("path", "IS NOT NULL").where("sitemap", "IS NOT NULL").all());
|
|
14
14
|
}
|
|
15
15
|
const results = await Promise.all(contentList);
|
|
16
|
-
return results.
|
|
16
|
+
return results.flatMap((c) => {
|
|
17
|
+
return c.filter((c2) => c2.sitemap !== false && c2.path).flatMap((c2) => ({
|
|
18
|
+
loc: c2.path,
|
|
19
|
+
...c2.sitemap || {}
|
|
20
|
+
}));
|
|
21
|
+
}).filter(Boolean);
|
|
17
22
|
});
|
package/dist/types.d.mts
CHANGED
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.10",
|
|
5
5
|
"description": "Powerfully flexible XML Sitemaps that integrate seamlessly, for Nuxt.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Harlan Wilton",
|
|
@@ -24,35 +24,32 @@
|
|
|
24
24
|
"exports": {
|
|
25
25
|
".": {
|
|
26
26
|
"types": "./dist/types.d.mts",
|
|
27
|
-
"import": "./dist/module.mjs"
|
|
28
|
-
"require": "./dist/module.cjs"
|
|
27
|
+
"import": "./dist/module.mjs"
|
|
29
28
|
},
|
|
30
|
-
"./content":
|
|
31
|
-
"import": "./dist/content.mjs",
|
|
32
|
-
"require": "./dist/content.cjs"
|
|
33
|
-
}
|
|
29
|
+
"./content": "./dist/content.mjs"
|
|
34
30
|
},
|
|
35
|
-
"main": "./dist/module.
|
|
36
|
-
"types": "./dist/types.d.ts",
|
|
31
|
+
"main": "./dist/module.mjs",
|
|
37
32
|
"files": [
|
|
38
33
|
"dist",
|
|
39
|
-
"virtual.d.ts"
|
|
40
|
-
"content.d.ts"
|
|
34
|
+
"virtual.d.ts"
|
|
41
35
|
],
|
|
42
36
|
"typesVersions": {
|
|
43
37
|
"*": {
|
|
38
|
+
".": [
|
|
39
|
+
"./dist/types.d.mts"
|
|
40
|
+
],
|
|
44
41
|
"content": [
|
|
45
|
-
"dist/content"
|
|
42
|
+
"./dist/content.d.mts"
|
|
46
43
|
]
|
|
47
44
|
}
|
|
48
45
|
},
|
|
49
46
|
"dependencies": {
|
|
50
|
-
"@nuxt/devtools-kit": "^2.3.
|
|
51
|
-
"@nuxt/kit": "^3.16.
|
|
47
|
+
"@nuxt/devtools-kit": "^2.3.2",
|
|
48
|
+
"@nuxt/kit": "^3.16.2",
|
|
52
49
|
"chalk": "^5.4.1",
|
|
53
50
|
"defu": "^6.1.4",
|
|
54
51
|
"h3-compression": "^0.3.2",
|
|
55
|
-
"nuxt-site-config": "^3.1.
|
|
52
|
+
"nuxt-site-config": "^3.1.9",
|
|
56
53
|
"ofetch": "^1.4.1",
|
|
57
54
|
"pathe": "^2.0.3",
|
|
58
55
|
"pkg-types": "^2.1.0",
|
|
@@ -63,27 +60,23 @@
|
|
|
63
60
|
},
|
|
64
61
|
"devDependencies": {
|
|
65
62
|
"@arethetypeswrong/cli": "0.17.4",
|
|
66
|
-
"@nuxt/content": "^3.
|
|
67
|
-
"@nuxt/eslint-config": "^1.
|
|
68
|
-
"@nuxt/module-builder": "^0.
|
|
63
|
+
"@nuxt/content": "^3.4.0",
|
|
64
|
+
"@nuxt/eslint-config": "^1.3.0",
|
|
65
|
+
"@nuxt/module-builder": "^1.0.0",
|
|
69
66
|
"@nuxt/test-utils": "^3.17.2",
|
|
70
|
-
"@nuxt/ui": "^3.0.
|
|
71
|
-
"@nuxtjs/i18n": "9.
|
|
72
|
-
"@nuxtjs/robots": "^5.2.
|
|
67
|
+
"@nuxt/ui": "^3.0.2",
|
|
68
|
+
"@nuxtjs/i18n": "9.5.2",
|
|
69
|
+
"@nuxtjs/robots": "^5.2.8",
|
|
73
70
|
"bumpp": "^10.1.0",
|
|
74
|
-
"eslint": "^9.
|
|
75
|
-
"eslint-plugin-n": "^17.
|
|
71
|
+
"eslint": "^9.24.0",
|
|
72
|
+
"eslint-plugin-n": "^17.17.0",
|
|
76
73
|
"execa": "^9.5.2",
|
|
77
|
-
"nuxt": "^3.16.
|
|
78
|
-
"nuxt-i18n-micro": "^1.
|
|
79
|
-
"typescript": "5.8.
|
|
80
|
-
"vitest": "^3.
|
|
74
|
+
"nuxt": "^3.16.2",
|
|
75
|
+
"nuxt-i18n-micro": "^1.83.1",
|
|
76
|
+
"typescript": "^5.8.3",
|
|
77
|
+
"vitest": "^3.1.1",
|
|
81
78
|
"vue-tsc": "^2.2.8"
|
|
82
79
|
},
|
|
83
|
-
"resolutions": {
|
|
84
|
-
"postcss": "8.4.47",
|
|
85
|
-
"typescript": "5.6.3"
|
|
86
|
-
},
|
|
87
80
|
"scripts": {
|
|
88
81
|
"lint": "eslint .",
|
|
89
82
|
"lint:type": "tsc --noEmit",
|
package/content.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './dist/content'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as s,u as a,c as i,o as u,a as e,t as o}from"./DLMm4UZJ.js";const l={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},c={class:"max-w-520px text-center"},d=["textContent"],p=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const r=t;return a({title:`${r.statusCode} - ${r.statusMessage} | ${r.appName}`,script:[{children:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{children:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(g,n)=>(u(),i("div",l,[n[0]||(n[0]=e("div",{class:"-bottom-1/2 fixed h-1/2 left-0 right-0 spotlight"},null,-1)),e("div",c,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:o(t.statusCode)},null,8,d),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:o(t.description)},null,8,p)])]))}},m=s(f,[["__scopeId","data-v-d8a00f5f"]]);export{m as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const n=Object.freeze(JSON.parse('{"displayName":"JSON","name":"json","patterns":[{"include":"#value"}],"repository":{"array":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.array.begin.json"}},"end":"\\\\]","endCaptures":{"0":{"name":"punctuation.definition.array.end.json"}},"name":"meta.structure.array.json","patterns":[{"include":"#value"},{"match":",","name":"punctuation.separator.array.json"},{"match":"[^\\\\s\\\\]]","name":"invalid.illegal.expected-array-separator.json"}]},"comments":{"patterns":[{"begin":"/\\\\*\\\\*(?!/)","captures":{"0":{"name":"punctuation.definition.comment.json"}},"end":"\\\\*/","name":"comment.block.documentation.json"},{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.json"}},"end":"\\\\*/","name":"comment.block.json"},{"captures":{"1":{"name":"punctuation.definition.comment.json"}},"match":"(//).*$\\\\n?","name":"comment.line.double-slash.js"}]},"constant":{"match":"\\\\b(?:true|false|null)\\\\b","name":"constant.language.json"},"number":{"match":"-?(?:0|[1-9]\\\\d*)(?:(?:\\\\.\\\\d+)?(?:[eE][+-]?\\\\d+)?)?","name":"constant.numeric.json"},"object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.dictionary.begin.json"}},"end":"\\\\}","endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.json"}},"name":"meta.structure.dictionary.json","patterns":[{"comment":"the JSON object key","include":"#objectkey"},{"include":"#comments"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.dictionary.key-value.json"}},"end":"(,)|(?=\\\\})","endCaptures":{"1":{"name":"punctuation.separator.dictionary.pair.json"}},"name":"meta.structure.dictionary.value.json","patterns":[{"comment":"the JSON object value","include":"#value"},{"match":"[^\\\\s,]","name":"invalid.illegal.expected-dictionary-separator.json"}]},{"match":"[^\\\\s\\\\}]","name":"invalid.illegal.expected-dictionary-separator.json"}]},"objectkey":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.support.type.property-name.begin.json"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.support.type.property-name.end.json"}},"name":"string.json support.type.property-name.json","patterns":[{"include":"#stringcontent"}]},"string":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.json"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.json"}},"name":"string.quoted.double.json","patterns":[{"include":"#stringcontent"}]},"stringcontent":{"patterns":[{"match":"\\\\\\\\(?:[\\"\\\\\\\\/bfnrt]|u[0-9a-fA-F]{4})","name":"constant.character.escape.json"},{"match":"\\\\\\\\.","name":"invalid.illegal.unrecognized-string-escape.json"}]},"value":{"patterns":[{"include":"#constant"},{"include":"#number"},{"include":"#string"},{"include":"#array"},{"include":"#object"},{"include":"#comments"}]}},"scopeName":"source.json"}')),e=[n];export{e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as a,u as i,c as u,o as c,a as e,t as r,b as l,w as d,d as p,e as f}from"./DLMm4UZJ.js";const m={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},g={class:"max-w-520px text-center z-20"},h=["textContent"],b=["textContent"],x={class:"flex items-center justify-center w-full"},y={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const n=t;return i({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[{children:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{children:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(k,o)=>{const s=f;return c(),u("div",m,[o[0]||(o[0]=e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),e("div",g,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:r(t.statusCode)},null,8,h),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:r(t.description)},null,8,b),e("div",x,[l(s,{to:"/",class:"cursor-pointer gradient-border px-4 py-2 sm:px-6 sm:py-3 sm:text-xl text-md"},{default:d(()=>[p(r(t.backHome),1)]),_:1})])])])}}},_=a(y,[["__scopeId","data-v-88ae37df"]]);export{_ as default};
|