vite-plugin-sitemap 0.4.1 → 0.4.2
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/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10817,7 +10817,7 @@ function getRoutes(options) {
|
|
|
10817
10817
|
}
|
|
10818
10818
|
function getFormattedSitemap(options, routes) {
|
|
10819
10819
|
return routes.map((route) => ({
|
|
10820
|
-
url: new URL(options.basePath ? ensurePrefix("/", options.basePath) + ensurePrefix("/", route) : ensurePrefix("/",
|
|
10820
|
+
url: new URL(options.basePath ? ensurePrefix("/", options.basePath) + ensurePrefix("/", route) : ensurePrefix("/", route), removeMaybeSuffix("/", options.hostname)).href,
|
|
10821
10821
|
changefreq: options.changefreq,
|
|
10822
10822
|
priority: options.priority,
|
|
10823
10823
|
lastmod: options.lastmod
|
package/dist/index.mjs
CHANGED
|
@@ -10801,7 +10801,7 @@ function getRoutes(options) {
|
|
|
10801
10801
|
}
|
|
10802
10802
|
function getFormattedSitemap(options, routes) {
|
|
10803
10803
|
return routes.map((route) => ({
|
|
10804
|
-
url: new URL(options.basePath ? ensurePrefix("/", options.basePath) + ensurePrefix("/", route) : ensurePrefix("/",
|
|
10804
|
+
url: new URL(options.basePath ? ensurePrefix("/", options.basePath) + ensurePrefix("/", route) : ensurePrefix("/", route), removeMaybeSuffix("/", options.hostname)).href,
|
|
10805
10805
|
changefreq: options.changefreq,
|
|
10806
10806
|
priority: options.priority,
|
|
10807
10807
|
lastmod: options.lastmod
|