vite-plugin-sitemap 0.4.0 → 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 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("/", "/route"), removeMaybeSuffix("/", options.hostname)).href,
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("/", "/route"), removeMaybeSuffix("/", options.hostname)).href,
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-sitemap",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "packageManager": "pnpm@8.3.1",
5
5
  "description": "Sitemap generator plugin for Vite",
6
6
  "main": "dist/index.js",
@@ -24,7 +24,7 @@
24
24
  "eslint": "8.39.0",
25
25
  "pkgroll": "1.9.0",
26
26
  "pnpm": "8.3.1",
27
- "sitemap-ts": "1.3.0",
27
+ "sitemap-ts": "1.4.0",
28
28
  "typescript": "5.0.4",
29
29
  "vite": "4.3.3",
30
30
  "vite-plugin-pages": "0.29.0",