@absolutejs/absolute 0.19.0-beta.740 → 0.19.0-beta.741
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 +14 -4
- package/dist/angular/index.js.map +4 -4
- package/dist/angular/server.js +14 -4
- package/dist/angular/server.js.map +4 -4
- package/dist/build.js +3 -3
- package/dist/build.js.map +3 -3
- package/dist/client/index.js +3 -3
- package/dist/client/index.js.map +3 -3
- package/dist/index.js +3 -3
- package/dist/index.js.map +3 -3
- package/dist/islands/index.js +3 -3
- package/dist/islands/index.js.map +3 -3
- package/dist/react/index.js +3 -3
- package/dist/react/index.js.map +3 -3
- package/dist/src/angular/pageHandler.d.ts +5 -0
- package/dist/src/angular/ssrRender.d.ts +1 -1
- package/dist/svelte/index.js +3 -3
- package/dist/svelte/index.js.map +3 -3
- package/dist/vue/index.js +3 -3
- package/dist/vue/index.js.map +3 -3
- package/package.json +1 -1
package/dist/angular/index.js
CHANGED
|
@@ -520,12 +520,12 @@ var routePropsCache, cacheRouteData = (pagePath, data) => {
|
|
|
520
520
|
result = injectBeforeClose(result, `<script>import(${escapedIndexPath});</script>`);
|
|
521
521
|
}
|
|
522
522
|
return result;
|
|
523
|
-
}, renderAngularApp = async (deps, PageComponent, providers, document2) => {
|
|
523
|
+
}, renderAngularApp = async (deps, PageComponent, providers, document2, url = "/") => {
|
|
524
524
|
const bootstrap = (context) => deps.bootstrapApplication(PageComponent, { providers }, context);
|
|
525
525
|
return withSuppressedAngularDevLogs(() => deps.renderApplication(bootstrap, {
|
|
526
526
|
document: document2,
|
|
527
527
|
platformProviders: [],
|
|
528
|
-
url
|
|
528
|
+
url
|
|
529
529
|
}));
|
|
530
530
|
}, withSuppressedAngularDevLogs = async (render) => {
|
|
531
531
|
const origLog = console.log;
|
|
@@ -13967,6 +13967,16 @@ var handleAngularPageRequest = async (input) => {
|
|
|
13967
13967
|
const resolvedPagePath = input.pagePath;
|
|
13968
13968
|
const maybeProps = input.props;
|
|
13969
13969
|
const userProviders = input.providers;
|
|
13970
|
+
const resolvedUrl = (() => {
|
|
13971
|
+
if (!input.request)
|
|
13972
|
+
return "/";
|
|
13973
|
+
try {
|
|
13974
|
+
const parsed = new URL(input.request.url);
|
|
13975
|
+
return `${parsed.pathname}${parsed.search}`;
|
|
13976
|
+
} catch {
|
|
13977
|
+
return "/";
|
|
13978
|
+
}
|
|
13979
|
+
})();
|
|
13970
13980
|
cacheRouteData(resolvedPagePath, {
|
|
13971
13981
|
headTag: resolvedHeadTag,
|
|
13972
13982
|
props: maybeProps
|
|
@@ -14004,7 +14014,7 @@ var handleAngularPageRequest = async (input) => {
|
|
|
14004
14014
|
resetSsrSanitizer();
|
|
14005
14015
|
const sanitizer = getSsrSanitizer(deps);
|
|
14006
14016
|
const providers = buildProviders(deps, sanitizer, maybeProps, tokenMap, userProviders);
|
|
14007
|
-
const rawHtml = await renderAngularApp(deps, PageComponent, providers, htmlString);
|
|
14017
|
+
const rawHtml = await renderAngularApp(deps, PageComponent, providers, htmlString, resolvedUrl);
|
|
14008
14018
|
const shouldProcessIslands = hasIslands || rawHtml.includes("<absolute-island");
|
|
14009
14019
|
const htmlWithLoweredIslands = shouldProcessIslands ? await lowerAngularServerIslands(rawHtml) : rawHtml;
|
|
14010
14020
|
const html = injectIslandPageContext(injectSsrScripts(htmlWithLoweredIslands, requestId, resolvedIndexPath, maybeProps), { hasIslands: shouldProcessIslands });
|
|
@@ -14334,5 +14344,5 @@ export {
|
|
|
14334
14344
|
Island
|
|
14335
14345
|
};
|
|
14336
14346
|
|
|
14337
|
-
//# debugId=
|
|
14347
|
+
//# debugId=278C518DD69255CE64756E2164756E21
|
|
14338
14348
|
//# sourceMappingURL=index.js.map
|