@absolutejs/absolute 0.19.0-beta.355 → 0.19.0-beta.357
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/index.js +8 -2
- package/dist/angular/index.js.map +3 -3
- package/dist/angular/server.js +8 -2
- package/dist/angular/server.js.map +3 -3
- package/dist/build.js +9 -3
- package/dist/build.js.map +3 -3
- package/dist/index.js +9 -3
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/angular/server.js
CHANGED
|
@@ -30797,12 +30797,18 @@ var escapeHtml = (str) => String(str).replace(/&/g, "&").replace(/</g, "<
|
|
|
30797
30797
|
|
|
30798
30798
|
// src/angular/pageHandler.ts
|
|
30799
30799
|
import { AsyncLocalStorage } from "async_hooks";
|
|
30800
|
-
var ssrDirty = false, lastSelector = "angular-page", isRecord4 = (value) => typeof value === "object" && value !== null, isAngularComponent = (value) => typeof value === "function",
|
|
30800
|
+
var ssrDirty = false, lastSelector = "angular-page", isRecord4 = (value) => typeof value === "object" && value !== null, isAngularComponent = (value) => typeof value === "function", compilerImportPromise = null, ensureAngularCompiler = () => {
|
|
30801
|
+
if (!compilerImportPromise) {
|
|
30802
|
+
compilerImportPromise = Promise.resolve().then(() => (init_compiler(), exports_compiler));
|
|
30803
|
+
}
|
|
30804
|
+
return compilerImportPromise;
|
|
30805
|
+
}, readAngularPageModule = (value) => isRecord4(value) ? value : null, invalidateAngularSsrCache = () => {
|
|
30801
30806
|
ssrDirty = true;
|
|
30802
30807
|
clearSelectorCache();
|
|
30803
30808
|
}, angularSsrContext, handleAngularPageRequest = async (_importer, pagePath, indexPath, headTag = "<head></head>", ...props) => {
|
|
30804
30809
|
const requestId = `angular_${Date.now()}_${Math.random().toString(BASE_36_RADIX).substring(2, RANDOM_ID_END_INDEX)}`;
|
|
30805
30810
|
return angularSsrContext.run(requestId, async () => {
|
|
30811
|
+
await ensureAngularCompiler();
|
|
30806
30812
|
const [maybeProps] = props;
|
|
30807
30813
|
cacheRouteData(pagePath, { headTag, props: maybeProps });
|
|
30808
30814
|
if (ssrDirty) {
|
|
@@ -30871,5 +30877,5 @@ export {
|
|
|
30871
30877
|
handleAngularPageRequest
|
|
30872
30878
|
};
|
|
30873
30879
|
|
|
30874
|
-
//# debugId=
|
|
30880
|
+
//# debugId=9ACB4A4316EB79C464756E2164756E21
|
|
30875
30881
|
//# sourceMappingURL=server.js.map
|