@nuxtjs/sitemap
Advanced tools
Comparing version 7.2.1 to 7.2.2
@@ -1,1 +0,1 @@ | ||
{"id":"b551cdd3-b342-41ea-8265-0fb9c87a6b0b","timestamp":1737342425153} | ||
{"id":"bc845d88-1260-4cd6-8743-707a992c7426","timestamp":1737365954751} |
@@ -8,3 +8,3 @@ { | ||
"configKey": "sitemap", | ||
"version": "7.2.0", | ||
"version": "7.2.1", | ||
"builder": { | ||
@@ -11,0 +11,0 @@ "@nuxt/module-builder": "0.8.4", |
@@ -13,6 +13,6 @@ import { defineEventHandler } from "h3"; | ||
for (const collection of collections) { | ||
contentList.push(queryCollectionWithEvent(e, collection).select("sitemap").where("sitemap", "IS NOT NULL").all()); | ||
contentList.push(queryCollectionWithEvent(e, collection).select("path", "sitemap").where("path", "IS NOT NULL").all()); | ||
} | ||
const results = await Promise.all(contentList); | ||
return results.flat().map((c) => c.sitemap).filter(Boolean); | ||
return results.flat().map((c) => ({ loc: c.path, ...c.sitemap })).filter(Boolean); | ||
}); |
{ | ||
"name": "@nuxtjs/sitemap", | ||
"type": "module", | ||
"version": "7.2.1", | ||
"version": "7.2.2", | ||
"description": "Powerfully flexible XML Sitemaps that integrate seamlessly, for Nuxt.", | ||
@@ -6,0 +6,0 @@ "author": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
9811328
41872
0