@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.
@@ -13934,17 +13934,19 @@ var resolveRuntimeAngularModulePath = async (pagePath) => {
13934
13934
  };
13935
13935
  var angularSsrContext = new AsyncLocalStorage3;
13936
13936
  setSsrContextGetter(() => angularSsrContext.getStore());
13937
- async function handleAngularPageRequest(PageOrInput, pagePath, indexPath, headTag = "<head></head>", ...args) {
13937
+ async function handleAngularPageRequest(input) {
13938
13938
  const requestId = `angular_${Date.now()}_${Math.random().toString(BASE_36_RADIX).substring(2, RANDOM_ID_END_INDEX)}`;
13939
13939
  return angularSsrContext.run(requestId, async () => {
13940
13940
  await ensureAngularCompiler();
13941
- const isInput = isAngularPageRequestInput(PageOrInput);
13942
- const resolvedHeadTag = isInput ? PageOrInput.headTag ?? "<head></head>" : headTag;
13943
- const resolvedIndexPath = isInput ? PageOrInput.indexPath : indexPath ?? "";
13944
- const options = isInput ? PageOrInput : args[1];
13945
- const resolvedPagePath = isInput ? PageOrInput.pagePath : pagePath ?? "";
13946
- const maybeProps = isInput ? PageOrInput.props : args[0];
13947
- const userProviders = isInput ? PageOrInput.providers : undefined;
13941
+ if (!isAngularPageRequestInput(input)) {
13942
+ throw new Error("Angular page handler requires an object input with pagePath and indexPath.");
13943
+ }
13944
+ const resolvedHeadTag = input.headTag ?? "<head></head>";
13945
+ const resolvedIndexPath = input.indexPath;
13946
+ const options = input;
13947
+ const resolvedPagePath = input.pagePath;
13948
+ const maybeProps = input.props;
13949
+ const userProviders = input.providers;
13948
13950
  cacheRouteData(resolvedPagePath, {
13949
13951
  headTag: resolvedHeadTag,
13950
13952
  props: maybeProps
@@ -14312,5 +14314,5 @@ export {
14312
14314
  Island
14313
14315
  };
14314
14316
 
14315
- //# debugId=560721F809FDA60264756E2164756E21
14317
+ //# debugId=3CB55B415035DFEF64756E2164756E21
14316
14318
  //# sourceMappingURL=index.js.map