@nuxtjs/sitemap 5.0.0 → 5.0.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/dist/client/200.html +4 -4
- package/dist/client/404.html +4 -4
- package/dist/client/_nuxt/{Icon.wdYGFqbO.js → Icon.Y7HhHHAz.js} +1 -1
- package/dist/client/_nuxt/{IconCSS.L-uj6Ouj.js → IconCSS.Q-iLbQkL.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/4ef99937-9859-42d8-9d63-62e7809c4b65.json +1 -0
- package/dist/client/_nuxt/{entry.Soe9IWze.js → entry.EEjw95sW.js} +3 -3
- package/dist/client/_nuxt/{error-404.uz-DxZsp.js → error-404.Loh33F4g.js} +1 -1
- package/dist/client/_nuxt/{error-500.BsNDeZpL.js → error-500.m13OPw8F.js} +1 -1
- package/dist/client/index.html +4 -4
- package/dist/module.json +1 -1
- package/dist/module.mjs +6 -6
- package/dist/runtime/nitro/routes/sitemap.xsl.mjs +1 -2
- package/package.json +2 -1
- package/dist/client/_nuxt/builds/meta/c3bdccb2-d4db-4a94-9e61-39b740a57bf8.json +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as a,u as n,o as r,c as l,a as e,t as s,b as d,w as c,d as p,e as f,p as h,f as m}from"./entry.
|
|
1
|
+
import{_ as a,u as n,o as r,c as l,a as e,t as s,b as d,w as c,d as p,e as f,p as h,f as m}from"./entry.EEjw95sW.js";const x=t=>(h("data-v-05a2b8a3"),t=t(),m(),t),u={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},g=x(()=>e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),b={class:"max-w-520px text-center z-20"},_=["textContent"],w=["textContent"],y={class:"w-full flex items-center justify-center"},S={__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 o=t;return n({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}a{color:inherit;text-decoration:inherit}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(k,N)=>{const i=f;return r(),l("div",u,[g,e("div",b,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,_),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,w),e("div",y,[d(i,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:c(()=>[p(s(t.backHome),1)]),_:1})])])])}}},z=a(S,[["__scopeId","data-v-05a2b8a3"]]);export{z as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as i,u as a,o as r,c as n,a as e,t as s,p as l,f as d}from"./entry.
|
|
1
|
+
import{_ as i,u as a,o as r,c as n,a as e,t as s,p as l,f as d}from"./entry.EEjw95sW.js";const c=t=>(l("data-v-c967d9a9"),t=t(),d(),t),p={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},h=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),f={class:"max-w-520px text-center"},g=["textContent"],m=["textContent"],x={__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 o=t;return a({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(b,u)=>(r(),n("div",p,[h,e("div",f,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,g),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,m)])]))}},_=i(x,[["__scopeId","data-v-c967d9a9"]]);export{_ as default};
|
package/dist/client/index.html
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<!DOCTYPE html><html><head><meta charset="utf-8">
|
|
2
2
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
3
3
|
<link rel="stylesheet" href="/__sitemap__/devtools/_nuxt/entry.UqhvG0ao.css">
|
|
4
|
-
<link rel="modulepreload" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/entry.
|
|
4
|
+
<link rel="modulepreload" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/entry.EEjw95sW.js">
|
|
5
5
|
<link rel="prefetch" as="style" href="/__sitemap__/devtools/_nuxt/error-404.DkXpI38i.css">
|
|
6
|
-
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/error-404.
|
|
6
|
+
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/error-404.Loh33F4g.js">
|
|
7
7
|
<link rel="prefetch" as="style" href="/__sitemap__/devtools/_nuxt/error-500.SLhS9LVu.css">
|
|
8
|
-
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/error-500.
|
|
9
|
-
<script type="module" src="/__sitemap__/devtools/_nuxt/entry.
|
|
8
|
+
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/error-500.m13OPw8F.js">
|
|
9
|
+
<script type="module" src="/__sitemap__/devtools/_nuxt/entry.EEjw95sW.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window&&window.localStorage&&window.localStorage.getItem&&window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?d():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:d,addColorScheme:i,removeColorScheme:f};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function f(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function d(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
|
|
10
10
|
</script></head><body><div id="__nuxt"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4,"once":5},{},false,{},{},["Set"]]</script>
|
|
11
11
|
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__sitemap__/devtools",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -2,6 +2,7 @@ import { useNuxt, loadNuxtModuleInstance, createResolver, addTemplate, extendPag
|
|
|
2
2
|
import { parseURL, withLeadingSlash, withBase, joinURL, withoutLeadingSlash } from 'ufo';
|
|
3
3
|
import { assertSiteConfig, installNuxtSiteConfig } from 'nuxt-site-config-kit';
|
|
4
4
|
import { defu, createDefu } from 'defu';
|
|
5
|
+
import { readPackageJSON } from 'pkg-types';
|
|
5
6
|
import { statSync, existsSync } from 'node:fs';
|
|
6
7
|
import { extname, relative, dirname } from 'pathe';
|
|
7
8
|
import { provider, env } from 'std-env';
|
|
@@ -12,8 +13,6 @@ import { build } from 'nitropack';
|
|
|
12
13
|
import { withSiteUrl } from 'nuxt-site-config-kit/urls';
|
|
13
14
|
import 'site-config-stack/urls';
|
|
14
15
|
|
|
15
|
-
const version = "4.4.1";
|
|
16
|
-
|
|
17
16
|
async function resolveUrls(urls) {
|
|
18
17
|
if (typeof urls === "function")
|
|
19
18
|
urls = urls();
|
|
@@ -504,7 +503,9 @@ const module = defineNuxtModule({
|
|
|
504
503
|
inferStaticPagesAsRoutes: true
|
|
505
504
|
},
|
|
506
505
|
async setup(config, nuxt) {
|
|
507
|
-
const
|
|
506
|
+
const { resolve } = createResolver(import.meta.url);
|
|
507
|
+
const { name, version } = await readPackageJSON(resolve("../package.json"));
|
|
508
|
+
const logger = useLogger(name);
|
|
508
509
|
logger.level = config.debug || nuxt.options.debug ? 4 : 3;
|
|
509
510
|
if (config.enabled === false) {
|
|
510
511
|
logger.debug("The module is disabled, skipping setup.");
|
|
@@ -523,7 +524,6 @@ const module = defineNuxtModule({
|
|
|
523
524
|
config.defaults = config.defaults || {};
|
|
524
525
|
config.defaults.lastmod = normaliseDate(/* @__PURE__ */ new Date());
|
|
525
526
|
}
|
|
526
|
-
const { resolve } = createResolver(import.meta.url);
|
|
527
527
|
await installNuxtSiteConfig();
|
|
528
528
|
const userGlobalSources = [
|
|
529
529
|
...config.sources || []
|
|
@@ -592,7 +592,7 @@ const module = defineNuxtModule({
|
|
|
592
592
|
config.excludeAppSources.push("nuxt:pages");
|
|
593
593
|
} else {
|
|
594
594
|
if (!normalisedLocales.length)
|
|
595
|
-
logger.warn(
|
|
595
|
+
logger.warn(`You are using @nuxtjs/i18n but have not configured any locales, this will cause issues with ${name}. Please configure \`locales\`.`);
|
|
596
596
|
}
|
|
597
597
|
const hasSetAutoI18n = typeof config.autoI18n === "object" && Object.keys(config.autoI18n).length;
|
|
598
598
|
const hasI18nConfigForAlternatives = nuxtI18nConfig.differentDomains || usingI18nPages || nuxtI18nConfig.strategy !== "no_prefix" && nuxtI18nConfig.locales;
|
|
@@ -631,7 +631,7 @@ const module = defineNuxtModule({
|
|
|
631
631
|
from: resolve("./runtime/nitro/composables/getPathRobotConfigPolyfill")
|
|
632
632
|
}]);
|
|
633
633
|
}
|
|
634
|
-
extendTypes(
|
|
634
|
+
extendTypes(name, async ({ typesPath }) => {
|
|
635
635
|
return `
|
|
636
636
|
declare module 'nitropack' {
|
|
637
637
|
interface NitroRouteRules {
|
|
@@ -11,8 +11,7 @@ export default defineEventHandler(async (e) => {
|
|
|
11
11
|
else
|
|
12
12
|
setHeader(e, "Cache-Control", `no-cache, no-store`);
|
|
13
13
|
const svgIcon = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="icon" style="margin-right: 4px; font-size: 25px;" width="1em" height="1em" viewBox="0 0 32 32"><path fill="#93c5fd" d="M4 26h4v4H4zm10 0h4v4h-4zm10 0h4v4h-4zm1-10h-8v-2h-2v2H7a2.002 2.002 0 0 0-2 2v6h2v-6h8v6h2v-6h8v6h2v-6a2.002 2.002 0 0 0-2-2zM9 2v10h14V2zm2 2h2v6h-2zm10 6h-6V4h6z"></path></svg>`;
|
|
14
|
-
const creditName = `<a href="https://github.com/nuxt-modules/sitemap" style="color: black; display: flex; align-items: center; font-weight: 500;" target="_blank" rel="noopener">${svgIcon} Nuxt
|
|
15
|
-
Simple Sitemap v${version}</a>`;
|
|
14
|
+
const creditName = `<a href="https://github.com/nuxt-modules/sitemap" style="color: black; display: flex; align-items: center; font-weight: 500;" target="_blank" rel="noopener">${svgIcon} Nuxt Sitemap v${version}</a>`;
|
|
16
15
|
const { name: siteName, url: siteUrl } = useSiteConfig(e);
|
|
17
16
|
const referrer = getHeader(e, "Referer") || "/";
|
|
18
17
|
const isNotIndexButHasIndex = referrer !== fixPath("/sitemap.xml") && parseURL(referrer).pathname.endsWith("-sitemap.xml");
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxtjs/sitemap",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.0.
|
|
4
|
+
"version": "5.0.1",
|
|
5
5
|
"packageManager": "pnpm@8.14.0",
|
|
6
6
|
"description": "Powerfully flexible XML Sitemaps that integrate seamlessly, for Nuxt.",
|
|
7
7
|
"author": {
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"nuxt-site-config-kit": "^2.2.0",
|
|
45
45
|
"ofetch": "^1.3.3",
|
|
46
46
|
"pathe": "^1.1.1",
|
|
47
|
+
"pkg-types": "^1.0.3",
|
|
47
48
|
"radix3": "^1.1.0",
|
|
48
49
|
"semver": "^7.5.4",
|
|
49
50
|
"sirv": "^2.0.4",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"c3bdccb2-d4db-4a94-9e61-39b740a57bf8","timestamp":1704516759119,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|