@absolutejs/absolute 0.19.0-beta.722 → 0.19.0-beta.723
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/server.js
CHANGED
|
@@ -4994,17 +4994,19 @@ var resolveRuntimeAngularModulePath = async (pagePath) => {
|
|
|
4994
4994
|
};
|
|
4995
4995
|
var angularSsrContext = new AsyncLocalStorage3;
|
|
4996
4996
|
setSsrContextGetter(() => angularSsrContext.getStore());
|
|
4997
|
-
async function handleAngularPageRequest(
|
|
4997
|
+
async function handleAngularPageRequest(input) {
|
|
4998
4998
|
const requestId = `angular_${Date.now()}_${Math.random().toString(BASE_36_RADIX).substring(2, RANDOM_ID_END_INDEX)}`;
|
|
4999
4999
|
return angularSsrContext.run(requestId, async () => {
|
|
5000
5000
|
await ensureAngularCompiler();
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
const
|
|
5005
|
-
const
|
|
5006
|
-
const
|
|
5007
|
-
const
|
|
5001
|
+
if (!isAngularPageRequestInput(input)) {
|
|
5002
|
+
throw new Error("Angular page handler requires an object input with pagePath and indexPath.");
|
|
5003
|
+
}
|
|
5004
|
+
const resolvedHeadTag = input.headTag ?? "<head></head>";
|
|
5005
|
+
const resolvedIndexPath = input.indexPath;
|
|
5006
|
+
const options = input;
|
|
5007
|
+
const resolvedPagePath = input.pagePath;
|
|
5008
|
+
const maybeProps = input.props;
|
|
5009
|
+
const userProviders = input.providers;
|
|
5008
5010
|
cacheRouteData(resolvedPagePath, {
|
|
5009
5011
|
headTag: resolvedHeadTag,
|
|
5010
5012
|
props: maybeProps
|
|
@@ -5068,5 +5070,5 @@ export {
|
|
|
5068
5070
|
handleAngularPageRequest
|
|
5069
5071
|
};
|
|
5070
5072
|
|
|
5071
|
-
//# debugId=
|
|
5073
|
+
//# debugId=473BE2627542240A64756E2164756E21
|
|
5072
5074
|
//# sourceMappingURL=server.js.map
|