@absolutejs/absolute 0.19.0-beta.1040 → 0.19.0-beta.1042
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 +677 -108
- package/dist/index.js +68 -9
- package/dist/index.js.map +6 -5
- package/dist/src/cli/inspectData.d.ts +11 -0
- package/dist/src/cli/inspectTui.d.ts +1 -0
- package/dist/src/cli/scripts/inspect.d.ts +1 -0
- package/dist/src/cli/scripts/islands.d.ts +1 -0
- package/dist/src/core/prepare.d.ts +43 -2
- package/dist/src/dev/requestInspector.d.ts +43 -0
- package/dist/types/cli.d.ts +10 -0
- package/dist/types/globals.d.ts +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { LiveInstance, RequestRecord } from '../../types/cli';
|
|
2
|
+
export declare const aggregates: (records: RequestRecord[]) => {
|
|
3
|
+
avgMs: number;
|
|
4
|
+
count: number;
|
|
5
|
+
p95Ms: number;
|
|
6
|
+
};
|
|
7
|
+
export declare const fetchRequests: (url: string) => Promise<RequestRecord[] | null>;
|
|
8
|
+
export declare const findServer: () => Promise<LiveInstance | null>;
|
|
9
|
+
export declare const formatRequestRow: (record: RequestRecord, pathWidth: number) => string;
|
|
10
|
+
export declare const pathColumnWidth: (totalWidth: number) => number;
|
|
11
|
+
export declare const requestHeader: (pathWidth: number) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const runInspectTui: () => Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const runInspect: (args: string[]) => Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const runIslands: (args: string[]) => Promise<void>;
|
|
@@ -25,6 +25,13 @@ export declare const prepare: (configOrPath?: string) => Promise<{
|
|
|
25
25
|
macroFn: {};
|
|
26
26
|
parser: {};
|
|
27
27
|
response: {};
|
|
28
|
+
} & {
|
|
29
|
+
schema: {};
|
|
30
|
+
standaloneSchema: {};
|
|
31
|
+
macro: {};
|
|
32
|
+
macroFn: {};
|
|
33
|
+
parser: {};
|
|
34
|
+
response: {};
|
|
28
35
|
} & {
|
|
29
36
|
schema: {};
|
|
30
37
|
standaloneSchema: {};
|
|
@@ -43,7 +50,21 @@ export declare const prepare: (configOrPath?: string) => Promise<{
|
|
|
43
50
|
response: {
|
|
44
51
|
200: Response;
|
|
45
52
|
};
|
|
46
|
-
}, ((({
|
|
53
|
+
}, (((({
|
|
54
|
+
__absolute: {
|
|
55
|
+
requests: {
|
|
56
|
+
get: {
|
|
57
|
+
body: unknown;
|
|
58
|
+
params: {};
|
|
59
|
+
query: unknown;
|
|
60
|
+
headers: unknown;
|
|
61
|
+
response: {
|
|
62
|
+
200: import("..").RequestRecord[];
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
} & {
|
|
47
68
|
".well-known": {
|
|
48
69
|
appspecific: {
|
|
49
70
|
"com.chrome.devtools.json": {
|
|
@@ -64,7 +85,21 @@ export declare const prepare: (configOrPath?: string) => Promise<{
|
|
|
64
85
|
};
|
|
65
86
|
};
|
|
66
87
|
};
|
|
67
|
-
} | ({
|
|
88
|
+
}) | ({
|
|
89
|
+
__absolute: {
|
|
90
|
+
requests: {
|
|
91
|
+
get: {
|
|
92
|
+
body: unknown;
|
|
93
|
+
params: {};
|
|
94
|
+
query: unknown;
|
|
95
|
+
headers: unknown;
|
|
96
|
+
response: {
|
|
97
|
+
200: import("..").RequestRecord[];
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
} & {
|
|
68
103
|
".well-known": {
|
|
69
104
|
appspecific: {
|
|
70
105
|
"com.chrome.devtools.json": {
|
|
@@ -250,6 +285,12 @@ export declare const prepare: (configOrPath?: string) => Promise<{
|
|
|
250
285
|
schema: {};
|
|
251
286
|
standaloneSchema: {};
|
|
252
287
|
response: {};
|
|
288
|
+
} & {
|
|
289
|
+
derive: {};
|
|
290
|
+
resolve: {};
|
|
291
|
+
schema: {};
|
|
292
|
+
standaloneSchema: {};
|
|
293
|
+
response: {};
|
|
253
294
|
}>;
|
|
254
295
|
manifest: Record<string, string>;
|
|
255
296
|
} | {
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Elysia } from 'elysia';
|
|
2
|
+
export declare const requestInspector: Elysia<"", {
|
|
3
|
+
decorator: {};
|
|
4
|
+
store: {};
|
|
5
|
+
derive: {};
|
|
6
|
+
resolve: {};
|
|
7
|
+
}, {
|
|
8
|
+
typebox: {};
|
|
9
|
+
error: {};
|
|
10
|
+
}, {
|
|
11
|
+
schema: {};
|
|
12
|
+
standaloneSchema: {};
|
|
13
|
+
macro: {};
|
|
14
|
+
macroFn: {};
|
|
15
|
+
parser: {};
|
|
16
|
+
response: {};
|
|
17
|
+
}, {
|
|
18
|
+
__absolute: {
|
|
19
|
+
requests: {
|
|
20
|
+
get: {
|
|
21
|
+
body: unknown;
|
|
22
|
+
params: {};
|
|
23
|
+
query: unknown;
|
|
24
|
+
headers: unknown;
|
|
25
|
+
response: {
|
|
26
|
+
200: import("..").RequestRecord[];
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
}, {
|
|
32
|
+
derive: {};
|
|
33
|
+
resolve: {};
|
|
34
|
+
schema: {};
|
|
35
|
+
standaloneSchema: {};
|
|
36
|
+
response: {};
|
|
37
|
+
}, {
|
|
38
|
+
derive: {};
|
|
39
|
+
resolve: {};
|
|
40
|
+
schema: {};
|
|
41
|
+
standaloneSchema: {};
|
|
42
|
+
response: {};
|
|
43
|
+
}>;
|
package/dist/types/cli.d.ts
CHANGED
|
@@ -42,6 +42,16 @@ export type LiveInstance = InstanceRecord & {
|
|
|
42
42
|
uptimeMs: number;
|
|
43
43
|
url: string | null;
|
|
44
44
|
};
|
|
45
|
+
export type RequestKind = 'api' | 'asset' | 'hmr' | 'internal' | 'page';
|
|
46
|
+
export type RequestRecord = {
|
|
47
|
+
at: number;
|
|
48
|
+
durationMs: number;
|
|
49
|
+
kind: RequestKind;
|
|
50
|
+
method: string;
|
|
51
|
+
path: string;
|
|
52
|
+
size: number | null;
|
|
53
|
+
status: number;
|
|
54
|
+
};
|
|
45
55
|
export type TuiColors = {
|
|
46
56
|
bold: string;
|
|
47
57
|
cyan: string;
|
package/dist/types/globals.d.ts
CHANGED
|
@@ -45,6 +45,14 @@ declare global {
|
|
|
45
45
|
* every key the new app declares. Stays unset outside dev. */
|
|
46
46
|
var __absolutePreviousAppStore: Record<string, unknown> | undefined;
|
|
47
47
|
|
|
48
|
+
/** Dev-only request inspector ring buffer, filled by the global
|
|
49
|
+
* onRequest/onAfterResponse hooks in `requestInspector` and served at
|
|
50
|
+
* `/__absolute/requests` for `absolute inspect`. On globalThis so it
|
|
51
|
+
* survives Path B server-entry HMR. Stays unset outside dev. */
|
|
52
|
+
var __absoluteRequestLog:
|
|
53
|
+
| import('./cli').RequestRecord[]
|
|
54
|
+
| undefined;
|
|
55
|
+
|
|
48
56
|
/* Client-side globals (Window extensions for HMR) */
|
|
49
57
|
interface Window {
|
|
50
58
|
$RefreshReg$?: (type: unknown, id: string) => void;
|