@nuxtjs/sitemap 6.0.0-beta.3 → 6.0.0-beta.4
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 +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/88407df5-4a0e-4841-8e00-133ac2590793.json +1 -0
- package/dist/client/index.html +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/package.json +1 -1
- package/dist/client/_nuxt/builds/meta/b8c557ad-dbc3-41dd-803c-e68d118730bb.json +0 -1
package/dist/client/200.html
CHANGED
|
@@ -270,4 +270,4 @@
|
|
|
270
270
|
<link rel="prefetch" as="style" href="/__sitemap__/devtools/_nuxt/error-500.CQd8P6J5.css">
|
|
271
271
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/BqAMNMnf.js">
|
|
272
272
|
<script type="module" src="/__sitemap__/devtools/_nuxt/vPsaSUqs.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"serverRendered":1},false]</script>
|
|
273
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__sitemap__/devtools",buildId:"
|
|
273
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__sitemap__/devtools",buildId:"88407df5-4a0e-4841-8e00-133ac2590793",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/client/404.html
CHANGED
|
@@ -270,4 +270,4 @@
|
|
|
270
270
|
<link rel="prefetch" as="style" href="/__sitemap__/devtools/_nuxt/error-500.CQd8P6J5.css">
|
|
271
271
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/BqAMNMnf.js">
|
|
272
272
|
<script type="module" src="/__sitemap__/devtools/_nuxt/vPsaSUqs.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"serverRendered":1},false]</script>
|
|
273
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__sitemap__/devtools",buildId:"
|
|
273
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__sitemap__/devtools",buildId:"88407df5-4a0e-4841-8e00-133ac2590793",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"
|
|
1
|
+
{"id":"88407df5-4a0e-4841-8e00-133ac2590793","timestamp":1724293835440}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"88407df5-4a0e-4841-8e00-133ac2590793","timestamp":1724293835440,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
package/dist/client/index.html
CHANGED
|
@@ -270,4 +270,4 @@
|
|
|
270
270
|
<link rel="prefetch" as="style" href="/__sitemap__/devtools/_nuxt/error-500.CQd8P6J5.css">
|
|
271
271
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/BqAMNMnf.js">
|
|
272
272
|
<script type="module" src="/__sitemap__/devtools/_nuxt/vPsaSUqs.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"serverRendered":1},false]</script>
|
|
273
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__sitemap__/devtools",buildId:"
|
|
273
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__sitemap__/devtools",buildId:"88407df5-4a0e-4841-8e00-133ac2590793",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -250,14 +250,14 @@ function extractSitemapMetaFromHtml(html, options) {
|
|
|
250
250
|
const mainRegex = /<main[^>]*>([\s\S]*?)<\/main>/;
|
|
251
251
|
const mainMatch = mainRegex.exec(html);
|
|
252
252
|
if (mainMatch?.[1] && mainMatch[1].includes("<img")) {
|
|
253
|
-
const imgRegex = /<img\s+src=["']((?!data:|blob:|file:)[^"']+?)["'][^>]*>/gi;
|
|
253
|
+
const imgRegex = /<img\s+(?:[^>]*?\s)?src=["']((?!data:|blob:|file:)[^"']+?)["'][^>]*>/gi;
|
|
254
254
|
let match;
|
|
255
255
|
while ((match = imgRegex.exec(mainMatch[1])) !== null) {
|
|
256
256
|
if (match.index === imgRegex.lastIndex)
|
|
257
257
|
imgRegex.lastIndex++;
|
|
258
258
|
let url = match[1];
|
|
259
259
|
if (url.startsWith("/"))
|
|
260
|
-
url = withSiteUrl(url);
|
|
260
|
+
url = tryUseNuxt() ? withSiteUrl(url) : url;
|
|
261
261
|
images.add(url);
|
|
262
262
|
}
|
|
263
263
|
}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"b8c557ad-dbc3-41dd-803c-e68d118730bb","timestamp":1724290202807,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|