@zerotal/devtools 1.9.0 → 1.10.0
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/api-surface.md +9 -9
- package/package.json +3 -3
- package/src/TraceStore.ts +3 -3
- package/src/client/index.ts +3 -3
- package/src/redaction.ts +3 -3
package/api-surface.md
CHANGED
|
@@ -141,9 +141,9 @@ interface QuerySpan = {
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
interface RedactionOptions = {
|
|
144
|
-
allow?: string[]
|
|
145
|
-
deny?: string[]
|
|
146
|
-
enabled?: boolean
|
|
144
|
+
allow?: string[] | undefined
|
|
145
|
+
deny?: string[] | undefined
|
|
146
|
+
enabled?: boolean | undefined
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
interface RequestTrace = {
|
|
@@ -218,9 +218,9 @@ interface TraceSink = {
|
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
interface TraceStoreOptions = {
|
|
221
|
-
capacity?: number
|
|
222
|
-
dbPath?: string | null
|
|
223
|
-
pruneHours?: number
|
|
221
|
+
capacity?: number | undefined
|
|
222
|
+
dbPath?: string | null | undefined
|
|
223
|
+
pruneHours?: number | undefined
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
type DevtoolsGate = (request: Request) => boolean | Promise<boolean>
|
|
@@ -252,9 +252,9 @@ function traceGroupKey = (trace: RequestTrace, channels: TraceChannelDescriptor[
|
|
|
252
252
|
function traceMatches = (trace: RequestTrace, query: string, f: Facets) => boolean
|
|
253
253
|
|
|
254
254
|
interface DevtoolsClientOptions = {
|
|
255
|
-
endpoint?: string
|
|
256
|
-
mode?: 'floating' | 'standalone'
|
|
257
|
-
mount?: HTMLElement
|
|
255
|
+
endpoint?: string | undefined
|
|
256
|
+
mode?: 'floating' | 'standalone' | undefined
|
|
257
|
+
mount?: HTMLElement | undefined
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
interface DevtoolsPanelPlugin = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zerotal/devtools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"maturity": "stable",
|
|
6
6
|
"private": false,
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"typecheck": "tsc --noEmit"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@zerotal/core": "1.
|
|
34
|
+
"@zerotal/core": "1.10.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"typescript": "^5.8.0",
|
|
38
|
-
"@zerotal/orm": "1.
|
|
38
|
+
"@zerotal/orm": "1.10.0"
|
|
39
39
|
},
|
|
40
40
|
"description": "In-browser developer tools for Zerotal — request traces, an inspector panel, and an extensible tab registry.",
|
|
41
41
|
"keywords": [
|
package/src/TraceStore.ts
CHANGED
|
@@ -16,11 +16,11 @@ interface Db {
|
|
|
16
16
|
|
|
17
17
|
export interface TraceStoreOptions {
|
|
18
18
|
/** How many traces to keep in memory and load back on open. */
|
|
19
|
-
capacity?: number;
|
|
19
|
+
capacity?: number | undefined;
|
|
20
20
|
/** SQLite file backing the history. Pass `null` to keep traces in memory only. */
|
|
21
|
-
dbPath?: string | null;
|
|
21
|
+
dbPath?: string | null | undefined;
|
|
22
22
|
/** How long a persisted trace survives, in hours. */
|
|
23
|
-
pruneHours?: number;
|
|
23
|
+
pruneHours?: number | undefined;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
/**
|
package/src/client/index.ts
CHANGED
|
@@ -33,7 +33,7 @@ import { timelineTab } from "./tabs/timeline.ts";
|
|
|
33
33
|
|
|
34
34
|
export interface DevtoolsClientOptions {
|
|
35
35
|
/** Base URL path for the devtools API. Default: '/__zerotal/devtools' */
|
|
36
|
-
endpoint?: string;
|
|
36
|
+
endpoint?: string | undefined;
|
|
37
37
|
/**
|
|
38
38
|
* How the panel is mounted.
|
|
39
39
|
*
|
|
@@ -42,9 +42,9 @@ export interface DevtoolsClientOptions {
|
|
|
42
42
|
* inspector dashboard. Both run the same renderers, so a tab added for one
|
|
43
43
|
* exists in the other.
|
|
44
44
|
*/
|
|
45
|
-
mode?: "floating" | "standalone";
|
|
45
|
+
mode?: "floating" | "standalone" | undefined;
|
|
46
46
|
/** Element to mount into. Defaults to `document.body`. */
|
|
47
|
-
mount?: HTMLElement;
|
|
47
|
+
mount?: HTMLElement | undefined;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/**
|
package/src/redaction.ts
CHANGED
|
@@ -31,17 +31,17 @@ export interface RedactionOptions {
|
|
|
31
31
|
* Turn masking off entirely. Only reasonable when you are debugging the values
|
|
32
32
|
* themselves and nothing sensitive is in the database.
|
|
33
33
|
*/
|
|
34
|
-
enabled?: boolean;
|
|
34
|
+
enabled?: boolean | undefined;
|
|
35
35
|
/**
|
|
36
36
|
* Names whose values are safe to show in full. Matched case-insensitively
|
|
37
37
|
* against the column a binding belongs to, a channel entry's field name, or a
|
|
38
38
|
* cache key's segment.
|
|
39
39
|
*/
|
|
40
|
-
allow?: string[];
|
|
40
|
+
allow?: string[] | undefined;
|
|
41
41
|
/**
|
|
42
42
|
* Extra names to mask, added to the built-in list.
|
|
43
43
|
*/
|
|
44
|
-
deny?: string[];
|
|
44
|
+
deny?: string[] | undefined;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|