@absolutejs/absolute 0.19.0-beta.960 → 0.19.0-beta.961

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
@@ -10453,7 +10453,7 @@ var DEFAULT_PRIORITY = 0.8, escapeXml = (str) => str.replace(/&/g, "&").repl
10453
10453
  return true;
10454
10454
  }
10455
10455
  return false;
10456
- }, stripTrailingWildcard = (path) => path.replace(/\/\*+$/, ""), isWildcardPagePath = (path) => path.endsWith("/*") || path.endsWith("*"), SITEMAP_BLOCK_PATTERN, SITEMAP_STRING_FIELD_PATTERN, SITEMAP_NUMBER_FIELD_PATTERN, VALID_CHANGEFREQ, extractSitemapMetadataFromHandlerSource = (source) => {
10456
+ }, stripTrailingWildcard = (path) => path.replace(/\/\*+$/, ""), isWildcardPagePath = (path) => path.endsWith("/*") || path.endsWith("*"), SITEMAP_BLOCK_PATTERN, SITEMAP_STRING_FIELD_PATTERN, SITEMAP_NUMBER_FIELD_PATTERN, SITEMAP_BOOLEAN_FIELD_PATTERN, VALID_CHANGEFREQ, extractSitemapMetadataFromHandlerSource = (source) => {
10457
10457
  const block = SITEMAP_BLOCK_PATTERN.exec(source);
10458
10458
  if (!block)
10459
10459
  return;
@@ -10478,6 +10478,11 @@ var DEFAULT_PRIORITY = 0.8, escapeXml = (str) => str.replace(/&/g, "&").repl
10478
10478
  if (!Number.isNaN(num))
10479
10479
  out.priority = num;
10480
10480
  }
10481
+ SITEMAP_BOOLEAN_FIELD_PATTERN.lastIndex = 0;
10482
+ while ((m = SITEMAP_BOOLEAN_FIELD_PATTERN.exec(body)) !== null) {
10483
+ if (m[1] === "exclude")
10484
+ out.exclude = m[2] === "true";
10485
+ }
10481
10486
  return Object.keys(out).length > 0 ? out : undefined;
10482
10487
  }, PAGE_HANDLER_NAMES2, sourceMentionsPageHandler = (source) => PAGE_HANDLER_NAMES2.some((name) => source.includes(name)), routeHandlerSource = (route) => {
10483
10488
  if (route.handlerSource)
@@ -10509,12 +10514,15 @@ var DEFAULT_PRIORITY = 0.8, escapeXml = (str) => str.replace(/&/g, "&").repl
10509
10514
  continue;
10510
10515
  if (isExcluded(mountPath, exclude))
10511
10516
  continue;
10517
+ const meta = sitemapMetadataForRoute(route);
10518
+ if (meta?.exclude === true)
10519
+ continue;
10512
10520
  seen.add(mountPath);
10513
10521
  out.push({
10514
10522
  emitTopLevel: !isWildcardPagePath(route.path),
10515
10523
  mountPath,
10516
10524
  rawPath: route.path,
10517
- sitemap: sitemapMetadataForRoute(route)
10525
+ sitemap: meta
10518
10526
  });
10519
10527
  }
10520
10528
  return out;
@@ -10647,6 +10655,7 @@ var init_generateSitemap = __esm(() => {
10647
10655
  SITEMAP_BLOCK_PATTERN = /\bsitemap\s*:\s*\{([^{}]*)\}/;
10648
10656
  SITEMAP_STRING_FIELD_PATTERN = /\b(changefreq|lastmod)\s*:\s*['"]([^'"]+)['"]/g;
10649
10657
  SITEMAP_NUMBER_FIELD_PATTERN = /\bpriority\s*:\s*([+-]?\d+(?:\.\d+)?)/g;
10658
+ SITEMAP_BOOLEAN_FIELD_PATTERN = /\b(exclude)\s*:\s*(true|false)\b/g;
10650
10659
  VALID_CHANGEFREQ = new Set([
10651
10660
  "always",
10652
10661
  "hourly",
@@ -34948,5 +34957,5 @@ export {
34948
34957
  ANGULAR_INIT_TIMEOUT_MS
34949
34958
  };
34950
34959
 
34951
- //# debugId=252287D2668B6BE164756E2164756E21
34960
+ //# debugId=D7AA7607EBC87A8B64756E2164756E21
34952
34961
  //# sourceMappingURL=index.js.map