@onruntime/next-sitemap 0.9.1 → 0.9.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/app/index.cjs +2 -2
- package/dist/app/index.js +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/dist/pages/index.cjs +2 -2
- package/dist/pages/index.js +2 -2
- package/package.json +1 -1
package/dist/app/index.cjs
CHANGED
|
@@ -270,10 +270,10 @@ function normalizePath(pathname) {
|
|
|
270
270
|
}
|
|
271
271
|
function buildUrl(baseUrl, pathname, locale, defaultLocale) {
|
|
272
272
|
const normalizedPath = normalizePath(pathname);
|
|
273
|
+
const pathSuffix = pathname === "/" ? "" : normalizedPath;
|
|
273
274
|
if (!locale || locale === defaultLocale) {
|
|
274
|
-
return `${baseUrl}${
|
|
275
|
+
return `${baseUrl}${pathSuffix}`;
|
|
275
276
|
}
|
|
276
|
-
const pathSuffix = pathname === "/" ? "" : normalizedPath;
|
|
277
277
|
return `${baseUrl}/${locale}${pathSuffix}`;
|
|
278
278
|
}
|
|
279
279
|
function generateSitemapXml(entries, options) {
|
package/dist/app/index.js
CHANGED
|
@@ -247,10 +247,10 @@ function normalizePath(pathname) {
|
|
|
247
247
|
}
|
|
248
248
|
function buildUrl(baseUrl, pathname, locale, defaultLocale) {
|
|
249
249
|
const normalizedPath = normalizePath(pathname);
|
|
250
|
+
const pathSuffix = pathname === "/" ? "" : normalizedPath;
|
|
250
251
|
if (!locale || locale === defaultLocale) {
|
|
251
|
-
return `${baseUrl}${
|
|
252
|
+
return `${baseUrl}${pathSuffix}`;
|
|
252
253
|
}
|
|
253
|
-
const pathSuffix = pathname === "/" ? "" : normalizedPath;
|
|
254
254
|
return `${baseUrl}/${locale}${pathSuffix}`;
|
|
255
255
|
}
|
|
256
256
|
function generateSitemapXml(entries, options) {
|
package/dist/index.cjs
CHANGED
|
@@ -270,10 +270,10 @@ function normalizePath(pathname) {
|
|
|
270
270
|
}
|
|
271
271
|
function buildUrl(baseUrl, pathname, locale, defaultLocale) {
|
|
272
272
|
const normalizedPath = normalizePath(pathname);
|
|
273
|
+
const pathSuffix = pathname === "/" ? "" : normalizedPath;
|
|
273
274
|
if (!locale || locale === defaultLocale) {
|
|
274
|
-
return `${baseUrl}${
|
|
275
|
+
return `${baseUrl}${pathSuffix}`;
|
|
275
276
|
}
|
|
276
|
-
const pathSuffix = pathname === "/" ? "" : normalizedPath;
|
|
277
277
|
return `${baseUrl}/${locale}${pathSuffix}`;
|
|
278
278
|
}
|
|
279
279
|
function generateSitemapXml(entries, options) {
|
package/dist/index.js
CHANGED
|
@@ -247,10 +247,10 @@ function normalizePath(pathname) {
|
|
|
247
247
|
}
|
|
248
248
|
function buildUrl(baseUrl, pathname, locale, defaultLocale) {
|
|
249
249
|
const normalizedPath = normalizePath(pathname);
|
|
250
|
+
const pathSuffix = pathname === "/" ? "" : normalizedPath;
|
|
250
251
|
if (!locale || locale === defaultLocale) {
|
|
251
|
-
return `${baseUrl}${
|
|
252
|
+
return `${baseUrl}${pathSuffix}`;
|
|
252
253
|
}
|
|
253
|
-
const pathSuffix = pathname === "/" ? "" : normalizedPath;
|
|
254
254
|
return `${baseUrl}/${locale}${pathSuffix}`;
|
|
255
255
|
}
|
|
256
256
|
function generateSitemapXml(entries, options) {
|
package/dist/pages/index.cjs
CHANGED
|
@@ -270,10 +270,10 @@ function normalizePath(pathname) {
|
|
|
270
270
|
}
|
|
271
271
|
function buildUrl(baseUrl, pathname, locale, defaultLocale) {
|
|
272
272
|
const normalizedPath = normalizePath(pathname);
|
|
273
|
+
const pathSuffix = pathname === "/" ? "" : normalizedPath;
|
|
273
274
|
if (!locale || locale === defaultLocale) {
|
|
274
|
-
return `${baseUrl}${
|
|
275
|
+
return `${baseUrl}${pathSuffix}`;
|
|
275
276
|
}
|
|
276
|
-
const pathSuffix = pathname === "/" ? "" : normalizedPath;
|
|
277
277
|
return `${baseUrl}/${locale}${pathSuffix}`;
|
|
278
278
|
}
|
|
279
279
|
function generateSitemapXml(entries, options) {
|
package/dist/pages/index.js
CHANGED
|
@@ -247,10 +247,10 @@ function normalizePath(pathname) {
|
|
|
247
247
|
}
|
|
248
248
|
function buildUrl(baseUrl, pathname, locale, defaultLocale) {
|
|
249
249
|
const normalizedPath = normalizePath(pathname);
|
|
250
|
+
const pathSuffix = pathname === "/" ? "" : normalizedPath;
|
|
250
251
|
if (!locale || locale === defaultLocale) {
|
|
251
|
-
return `${baseUrl}${
|
|
252
|
+
return `${baseUrl}${pathSuffix}`;
|
|
252
253
|
}
|
|
253
|
-
const pathSuffix = pathname === "/" ? "" : normalizedPath;
|
|
254
254
|
return `${baseUrl}/${locale}${pathSuffix}`;
|
|
255
255
|
}
|
|
256
256
|
function generateSitemapXml(entries, options) {
|
package/package.json
CHANGED