@absolutejs/absolute 0.19.0-beta.1042 → 0.19.0-beta.1044
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/cli/index.js +842 -311
- package/dist/index.js +32 -10
- package/dist/index.js.map +4 -4
- package/dist/src/cli/heapDiff.d.ts +1 -0
- package/dist/src/cli/inspectData.d.ts +1 -0
- package/dist/src/cli/scripts/analyze.d.ts +1 -0
- package/dist/src/cli/scripts/api.d.ts +1 -0
- package/dist/types/cli.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -27972,26 +27972,39 @@ var RING_MAX = 200, DEFAULT_STATUS = 200, ASSET_EXTENSION, requestLog = () => {
|
|
|
27972
27972
|
if (typeof value === "string")
|
|
27973
27973
|
return Buffer.byteLength(value);
|
|
27974
27974
|
return null;
|
|
27975
|
-
},
|
|
27975
|
+
}, toHeaderRecord = (headers) => {
|
|
27976
|
+
const record = {};
|
|
27977
|
+
for (const [key, value] of Object.entries(headers)) {
|
|
27978
|
+
if (value !== undefined && value !== null)
|
|
27979
|
+
record[key] = String(value);
|
|
27980
|
+
}
|
|
27981
|
+
return record;
|
|
27982
|
+
}, pending, requestInspector;
|
|
27976
27983
|
var init_requestInspector = __esm(() => {
|
|
27977
27984
|
ASSET_EXTENSION = /\.(?:avif|css|gif|ico|jpe?g|js|json|map|mjs|otf|png|svg|ttf|txt|wasm|webp|woff2?)$/i;
|
|
27978
|
-
|
|
27985
|
+
pending = new WeakMap;
|
|
27979
27986
|
requestInspector = new Elysia5({
|
|
27980
27987
|
name: "absolute-request-inspector"
|
|
27981
27988
|
}).get("/__absolute/requests", () => requestLog()).onRequest(({ request }) => {
|
|
27982
|
-
|
|
27989
|
+
pending.set(request, {
|
|
27990
|
+
headers: toHeaderRecord(Object.fromEntries(request.headers)),
|
|
27991
|
+
start: performance.now()
|
|
27992
|
+
});
|
|
27983
27993
|
}).onAfterResponse(({ request, set, responseValue }) => {
|
|
27984
27994
|
const path = pathOf(request.url);
|
|
27985
27995
|
if (path.startsWith("/__absolute"))
|
|
27986
27996
|
return;
|
|
27987
|
-
const
|
|
27997
|
+
const entry = pending.get(request);
|
|
27988
27998
|
const log2 = requestLog();
|
|
27989
27999
|
log2.push({
|
|
27990
28000
|
at: Date.now(),
|
|
27991
|
-
durationMs:
|
|
28001
|
+
durationMs: entry === undefined ? 0 : performance.now() - entry.start,
|
|
27992
28002
|
kind: classify(path),
|
|
27993
28003
|
method: request.method,
|
|
27994
28004
|
path,
|
|
28005
|
+
query: new URL(request.url).search,
|
|
28006
|
+
requestHeaders: entry?.headers ?? {},
|
|
28007
|
+
responseHeaders: toHeaderRecord(set.headers),
|
|
27995
28008
|
size: byteSize(set.headers["content-length"], responseValue),
|
|
27996
28009
|
status: typeof set.status === "number" ? set.status : DEFAULT_STATUS
|
|
27997
28010
|
});
|
|
@@ -29793,10 +29806,19 @@ var networking = (app) => {
|
|
|
29793
29806
|
if (env4.ABSOLUTE_COMPILED_RUNTIME === "1")
|
|
29794
29807
|
return app;
|
|
29795
29808
|
if (env4.NODE_ENV === "development") {
|
|
29796
|
-
app.get("/__absolute/routes", () => app.routes.map((route) =>
|
|
29797
|
-
|
|
29798
|
-
|
|
29799
|
-
|
|
29809
|
+
app.get("/__absolute/routes", () => app.routes.map((route) => {
|
|
29810
|
+
const hooks = route.hooks ?? {};
|
|
29811
|
+
return {
|
|
29812
|
+
method: route.method,
|
|
29813
|
+
path: route.path,
|
|
29814
|
+
schema: {
|
|
29815
|
+
body: hooks.body ?? null,
|
|
29816
|
+
params: hooks.params ?? null,
|
|
29817
|
+
query: hooks.query ?? null,
|
|
29818
|
+
response: hooks.response ?? null
|
|
29819
|
+
}
|
|
29820
|
+
};
|
|
29821
|
+
}));
|
|
29800
29822
|
}
|
|
29801
29823
|
const liveServer = globalThis.__absoluteBunServer;
|
|
29802
29824
|
if (liveServer && typeof liveServer.reload === "function") {
|
|
@@ -36357,5 +36379,5 @@ export {
|
|
|
36357
36379
|
ANGULAR_INIT_TIMEOUT_MS
|
|
36358
36380
|
};
|
|
36359
36381
|
|
|
36360
|
-
//# debugId=
|
|
36382
|
+
//# debugId=00C76BD7C1867E2664756E2164756E21
|
|
36361
36383
|
//# sourceMappingURL=index.js.map
|