@absolutejs/absolute 0.19.0-beta.722 → 0.19.0-beta.724

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.
@@ -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(PageOrInput, pagePath, indexPath, headTag = "<head></head>", ...args) {
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
- const isInput = isAngularPageRequestInput(PageOrInput);
5002
- const resolvedHeadTag = isInput ? PageOrInput.headTag ?? "<head></head>" : headTag;
5003
- const resolvedIndexPath = isInput ? PageOrInput.indexPath : indexPath ?? "";
5004
- const options = isInput ? PageOrInput : args[1];
5005
- const resolvedPagePath = isInput ? PageOrInput.pagePath : pagePath ?? "";
5006
- const maybeProps = isInput ? PageOrInput.props : args[0];
5007
- const userProviders = isInput ? PageOrInput.providers : undefined;
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=576B32CF1EBCA47264756E2164756E21
5073
+ //# debugId=473BE2627542240A64756E2164756E21
5072
5074
  //# sourceMappingURL=server.js.map