@absolutejs/absolute 0.20.0-beta.182 → 0.20.0-beta.183
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/CHANGELOG.md +14 -0
- package/changelog.json +21 -0
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/angular/index.js +177 -37
- package/dist/angular/index.js.map +6 -5
- package/dist/angular/server.js +177 -37
- package/dist/angular/server.js.map +6 -5
- package/dist/build.js +22 -8
- package/dist/build.js.map +5 -5
- package/dist/cli/{build-p3qra1nj.js → build-df81wh71.js} +5 -2
- package/dist/cli/{buildReactServerComponents-vc9hh2rd.js → buildReactServerComponents-k6amghrj.js} +1 -1
- package/dist/cli/config/server.js +19 -1
- package/dist/cli/{index-mmm6d3k5.js → index-3dz754hk.js} +2 -2
- package/dist/cli/{index-7zwzyymv.js → index-pq4qqz0r.js} +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/cli/{typecheck-yjme4fv1.js → typecheck-bvm0ndq4.js} +153 -62
- package/dist/dev/serverBootstrap.js +8 -2
- package/dist/index.js +24 -10
- package/dist/index.js.map +5 -5
- package/dist/react/index.js +10 -2
- package/dist/react/index.js.map +3 -3
- package/dist/react/server.js +10 -2
- package/dist/react/server.js.map +3 -3
- package/dist/src/angular/colocatedRouteMatch.d.ts +23 -0
- package/dist/src/cli/scripts/typecheck.d.ts +1 -0
- package/dist/src/cli/scripts/typecheckDiagnostics.d.ts +41 -0
- package/dist/src/dev/hot/analyze.d.ts +1 -1
- package/dist/src/utils/spaRouteManifest.d.ts +1 -0
- package/dist/svelte/index.js +10 -2
- package/dist/svelte/index.js.map +3 -3
- package/dist/svelte/server.js +10 -2
- package/dist/svelte/server.js.map +3 -3
- package/dist/vue/index.js +10 -2
- package/dist/vue/index.js.map +3 -3
- package/dist/vue/server.js +10 -2
- package/dist/vue/server.js.map +3 -3
- package/package.json +1 -1
package/dist/vue/index.js
CHANGED
|
@@ -670,6 +670,7 @@ var init_resolveConvention = __esm(() => {
|
|
|
670
670
|
});
|
|
671
671
|
|
|
672
672
|
// src/utils/spaRouteManifest.ts
|
|
673
|
+
import { NotFound } from "elysia";
|
|
673
674
|
import { basename as basename2 } from "path";
|
|
674
675
|
var SPA_ROUTES_KEY = "__absoluteSpaRoutes", setSpaRouteManifest = (hosts) => {
|
|
675
676
|
Reflect.set(globalThis, SPA_ROUTES_KEY, hosts);
|
|
@@ -734,7 +735,14 @@ var SPA_ROUTES_KEY = "__absoluteSpaRoutes", setSpaRouteManifest = (hosts) => {
|
|
|
734
735
|
}, renderSpaNotFound = async (framework, pageName, request) => {
|
|
735
736
|
if (isKnownSpaRoute(framework, pageName, request))
|
|
736
737
|
return null;
|
|
737
|
-
return
|
|
738
|
+
return renderSpaNotFoundResponse(request);
|
|
739
|
+
}, renderSpaNotFoundResponse = async (request) => {
|
|
740
|
+
if (request && !isPageRequest(request)) {
|
|
741
|
+
return new NotFound().toResponse();
|
|
742
|
+
}
|
|
743
|
+
return await renderFirstNotFound({
|
|
744
|
+
preferHtmx: request?.headers.get("hx-request") === "true"
|
|
745
|
+
}) ?? new Response("Not found", {
|
|
738
746
|
headers: { "Content-Type": "text/plain" },
|
|
739
747
|
status: 404
|
|
740
748
|
});
|
|
@@ -7878,5 +7886,5 @@ export {
|
|
|
7878
7886
|
useServerData
|
|
7879
7887
|
};
|
|
7880
7888
|
|
|
7881
|
-
//# debugId=
|
|
7889
|
+
//# debugId=0BEAFA186F762F8164756E2164756E21
|
|
7882
7890
|
//# sourceMappingURL=index.js.map
|