@absolutejs/absolute 0.19.0-beta.951 → 0.19.0-beta.952
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/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/angular/index.js +29 -9
- package/dist/angular/index.js.map +3 -3
- package/dist/angular/server.js +29 -9
- package/dist/angular/server.js.map +3 -3
- package/dist/index.js +30 -22
- package/dist/index.js.map +4 -4
- package/dist/react/index.js +29 -9
- package/dist/react/index.js.map +3 -3
- package/dist/react/server.js +29 -9
- package/dist/react/server.js.map +3 -3
- package/dist/src/core/devRouteRegistrationCallsite.d.ts +1 -0
- package/dist/svelte/index.js +29 -9
- package/dist/svelte/index.js.map +3 -3
- package/dist/svelte/server.js +29 -9
- package/dist/svelte/server.js.map +3 -3
- package/dist/vue/index.js +29 -9
- package/dist/vue/index.js.map +3 -3
- package/dist/vue/server.js +29 -9
- package/dist/vue/server.js.map +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8686,11 +8686,22 @@ var init_startupTimings = __esm(() => {
|
|
|
8686
8686
|
var exports_devRouteRegistrationCallsite = {};
|
|
8687
8687
|
__export(exports_devRouteRegistrationCallsite, {
|
|
8688
8688
|
patchElysiaRouteRegistrationCallsites: () => patchElysiaRouteRegistrationCallsites,
|
|
8689
|
+
isPageHandler: () => isPageHandler,
|
|
8689
8690
|
getCurrentRouteRegistrationCallsite: () => getCurrentRouteRegistrationCallsite
|
|
8690
8691
|
});
|
|
8691
8692
|
import { AsyncLocalStorage } from "async_hooks";
|
|
8692
8693
|
import { Elysia } from "elysia";
|
|
8693
|
-
var ROUTE_CALLSITE_STORAGE_KEY, ROUTE_CALLSITE_PATCHED_KEY, ROUTE_METHOD_NAMES,
|
|
8694
|
+
var ROUTE_CALLSITE_STORAGE_KEY, ROUTE_CALLSITE_PATCHED_KEY, ROUTE_METHOD_NAMES, PAGE_HANDLER_NAMES, pageHandlerWrappers, handlerSourceMentionsPageHelper = (handler) => {
|
|
8695
|
+
const source = handler.toString();
|
|
8696
|
+
return PAGE_HANDLER_NAMES.some((name) => source.includes(name));
|
|
8697
|
+
}, isPageHandler = (handler) => {
|
|
8698
|
+
if (typeof handler !== "function")
|
|
8699
|
+
return false;
|
|
8700
|
+
const fn2 = handler;
|
|
8701
|
+
if (pageHandlerWrappers.has(fn2))
|
|
8702
|
+
return true;
|
|
8703
|
+
return handlerSourceMentionsPageHelper(fn2);
|
|
8704
|
+
}, isObjectRecord3 = (value) => Boolean(value) && typeof value === "object", isAsyncLocalStorage2 = (value) => isObjectRecord3(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function", isRouteMethod = (value) => typeof value === "function", getRouteCallsiteStorage = () => {
|
|
8694
8705
|
const value = Reflect.get(globalThis, ROUTE_CALLSITE_STORAGE_KEY);
|
|
8695
8706
|
if (value === null || typeof value === "undefined") {
|
|
8696
8707
|
return;
|
|
@@ -8723,13 +8734,13 @@ var ROUTE_CALLSITE_STORAGE_KEY, ROUTE_CALLSITE_PATCHED_KEY, ROUTE_METHOD_NAMES,
|
|
|
8723
8734
|
return function wrappedRouteHandler(...args) {
|
|
8724
8735
|
return storage.run({ callsite }, () => Reflect.apply(routeHandler, this, args));
|
|
8725
8736
|
};
|
|
8726
|
-
}, createPatchedRouteMethod = (originalMethod) => function patchedRouteMethod(path, handler, ...rest) {
|
|
8737
|
+
}, createPatchedRouteMethod = (originalMethod, methodName) => function patchedRouteMethod(path, handler, ...rest) {
|
|
8727
8738
|
const callsite = captureRouteRegistrationCallsite();
|
|
8728
|
-
|
|
8729
|
-
|
|
8730
|
-
|
|
8731
|
-
|
|
8732
|
-
]);
|
|
8739
|
+
const wrapped = wrapRouteHandlerWithCallsite(handler, callsite);
|
|
8740
|
+
if (methodName === "get" && typeof handler === "function" && typeof wrapped === "function" && handlerSourceMentionsPageHelper(handler)) {
|
|
8741
|
+
pageHandlerWrappers.add(wrapped);
|
|
8742
|
+
}
|
|
8743
|
+
return Reflect.apply(originalMethod, this, [path, wrapped, ...rest]);
|
|
8733
8744
|
}, getCurrentRouteRegistrationCallsite = () => getRouteCallsiteStorage()?.getStore()?.callsite, patchElysiaRouteRegistrationCallsites = () => {
|
|
8734
8745
|
if (false) {}
|
|
8735
8746
|
if (Reflect.get(globalThis, ROUTE_CALLSITE_PATCHED_KEY) === true) {
|
|
@@ -8740,7 +8751,7 @@ var ROUTE_CALLSITE_STORAGE_KEY, ROUTE_CALLSITE_PATCHED_KEY, ROUTE_METHOD_NAMES,
|
|
|
8740
8751
|
const originalMethod = Reflect.get(prototype, methodName);
|
|
8741
8752
|
if (!isRouteMethod(originalMethod))
|
|
8742
8753
|
return;
|
|
8743
|
-
Reflect.set(prototype, methodName, createPatchedRouteMethod(originalMethod));
|
|
8754
|
+
Reflect.set(prototype, methodName, createPatchedRouteMethod(originalMethod, methodName));
|
|
8744
8755
|
});
|
|
8745
8756
|
Reflect.set(globalThis, ROUTE_CALLSITE_PATCHED_KEY, true);
|
|
8746
8757
|
};
|
|
@@ -8757,6 +8768,15 @@ var init_devRouteRegistrationCallsite = __esm(() => {
|
|
|
8757
8768
|
"post",
|
|
8758
8769
|
"put"
|
|
8759
8770
|
];
|
|
8771
|
+
PAGE_HANDLER_NAMES = [
|
|
8772
|
+
"handleReactPageRequest",
|
|
8773
|
+
"handleSveltePageRequest",
|
|
8774
|
+
"handleVuePageRequest",
|
|
8775
|
+
"handleAngularPageRequest",
|
|
8776
|
+
"handleHTMLPageRequest",
|
|
8777
|
+
"handleHTMXPageRequest"
|
|
8778
|
+
];
|
|
8779
|
+
pageHandlerWrappers = new WeakSet;
|
|
8760
8780
|
});
|
|
8761
8781
|
|
|
8762
8782
|
// src/utils/startupBanner.ts
|
|
@@ -25592,11 +25612,6 @@ var DEFAULT_PRIORITY = 0.8, escapeXml = (str) => str.replace(/&/g, "&").repl
|
|
|
25592
25612
|
return true;
|
|
25593
25613
|
}
|
|
25594
25614
|
return false;
|
|
25595
|
-
}, PAGE_HANDLER_NAMES, isPageHandler = (handler) => {
|
|
25596
|
-
if (typeof handler !== "function")
|
|
25597
|
-
return false;
|
|
25598
|
-
const source = handler.toString();
|
|
25599
|
-
return PAGE_HANDLER_NAMES.some((name) => source.includes(name));
|
|
25600
25615
|
}, discoverPageRoutes = (routes, exclude) => {
|
|
25601
25616
|
const seen = new Set;
|
|
25602
25617
|
return routes.filter((route) => {
|
|
@@ -25653,14 +25668,7 @@ var DEFAULT_PRIORITY = 0.8, escapeXml = (str) => str.replace(/&/g, "&").repl
|
|
|
25653
25668
|
await write4(`${outDir}/sitemap.xml`, xml);
|
|
25654
25669
|
};
|
|
25655
25670
|
var init_generateSitemap = __esm(() => {
|
|
25656
|
-
|
|
25657
|
-
"handleReactPageRequest",
|
|
25658
|
-
"handleSveltePageRequest",
|
|
25659
|
-
"handleVuePageRequest",
|
|
25660
|
-
"handleAngularPageRequest",
|
|
25661
|
-
"handleHTMLPageRequest",
|
|
25662
|
-
"handleHTMXPageRequest"
|
|
25663
|
-
];
|
|
25671
|
+
init_devRouteRegistrationCallsite();
|
|
25664
25672
|
});
|
|
25665
25673
|
|
|
25666
25674
|
// src/core/prerender.ts
|
|
@@ -33865,5 +33873,5 @@ export {
|
|
|
33865
33873
|
ANGULAR_INIT_TIMEOUT_MS
|
|
33866
33874
|
};
|
|
33867
33875
|
|
|
33868
|
-
//# debugId=
|
|
33876
|
+
//# debugId=62528314180FB57664756E2164756E21
|
|
33869
33877
|
//# sourceMappingURL=index.js.map
|