@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/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/build.js +12 -3
- package/dist/build.js.map +3 -3
- package/dist/index.js +12 -3
- package/dist/index.js.map +3 -3
- package/dist/types/sitemap.d.ts +5 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-e5Ukal/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-e5Ukal/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
|
|
|
48
48
|
getWarningController()?.maybeWarn(primitiveName);
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
// .angular-partial-tmp-
|
|
51
|
+
// .angular-partial-tmp-e5Ukal/src/core/streamingSlotRegistry.ts
|
|
52
52
|
var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
|
|
53
53
|
var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
|
|
54
54
|
var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
|
package/dist/build.js
CHANGED
|
@@ -4979,7 +4979,7 @@ var DEFAULT_PRIORITY = 0.8, escapeXml = (str) => str.replace(/&/g, "&").repl
|
|
|
4979
4979
|
return true;
|
|
4980
4980
|
}
|
|
4981
4981
|
return false;
|
|
4982
|
-
}, 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) => {
|
|
4982
|
+
}, 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) => {
|
|
4983
4983
|
const block = SITEMAP_BLOCK_PATTERN.exec(source);
|
|
4984
4984
|
if (!block)
|
|
4985
4985
|
return;
|
|
@@ -5004,6 +5004,11 @@ var DEFAULT_PRIORITY = 0.8, escapeXml = (str) => str.replace(/&/g, "&").repl
|
|
|
5004
5004
|
if (!Number.isNaN(num))
|
|
5005
5005
|
out.priority = num;
|
|
5006
5006
|
}
|
|
5007
|
+
SITEMAP_BOOLEAN_FIELD_PATTERN.lastIndex = 0;
|
|
5008
|
+
while ((m = SITEMAP_BOOLEAN_FIELD_PATTERN.exec(body)) !== null) {
|
|
5009
|
+
if (m[1] === "exclude")
|
|
5010
|
+
out.exclude = m[2] === "true";
|
|
5011
|
+
}
|
|
5007
5012
|
return Object.keys(out).length > 0 ? out : undefined;
|
|
5008
5013
|
}, PAGE_HANDLER_NAMES2, sourceMentionsPageHandler = (source) => PAGE_HANDLER_NAMES2.some((name) => source.includes(name)), routeHandlerSource = (route) => {
|
|
5009
5014
|
if (route.handlerSource)
|
|
@@ -5035,12 +5040,15 @@ var DEFAULT_PRIORITY = 0.8, escapeXml = (str) => str.replace(/&/g, "&").repl
|
|
|
5035
5040
|
continue;
|
|
5036
5041
|
if (isExcluded(mountPath, exclude))
|
|
5037
5042
|
continue;
|
|
5043
|
+
const meta = sitemapMetadataForRoute(route);
|
|
5044
|
+
if (meta?.exclude === true)
|
|
5045
|
+
continue;
|
|
5038
5046
|
seen.add(mountPath);
|
|
5039
5047
|
out.push({
|
|
5040
5048
|
emitTopLevel: !isWildcardPagePath(route.path),
|
|
5041
5049
|
mountPath,
|
|
5042
5050
|
rawPath: route.path,
|
|
5043
|
-
sitemap:
|
|
5051
|
+
sitemap: meta
|
|
5044
5052
|
});
|
|
5045
5053
|
}
|
|
5046
5054
|
return out;
|
|
@@ -5173,6 +5181,7 @@ var init_generateSitemap = __esm(() => {
|
|
|
5173
5181
|
SITEMAP_BLOCK_PATTERN = /\bsitemap\s*:\s*\{([^{}]*)\}/;
|
|
5174
5182
|
SITEMAP_STRING_FIELD_PATTERN = /\b(changefreq|lastmod)\s*:\s*['"]([^'"]+)['"]/g;
|
|
5175
5183
|
SITEMAP_NUMBER_FIELD_PATTERN = /\bpriority\s*:\s*([+-]?\d+(?:\.\d+)?)/g;
|
|
5184
|
+
SITEMAP_BOOLEAN_FIELD_PATTERN = /\b(exclude)\s*:\s*(true|false)\b/g;
|
|
5176
5185
|
VALID_CHANGEFREQ = new Set([
|
|
5177
5186
|
"always",
|
|
5178
5187
|
"hourly",
|
|
@@ -26290,5 +26299,5 @@ export {
|
|
|
26290
26299
|
build
|
|
26291
26300
|
};
|
|
26292
26301
|
|
|
26293
|
-
//# debugId=
|
|
26302
|
+
//# debugId=6B1C49D345A8485C64756E2164756E21
|
|
26294
26303
|
//# sourceMappingURL=build.js.map
|