app-devtools 1.2.1 → 1.3.1
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/main.d.ts +9 -3
- package/dist/main.js +802 -825
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -5,6 +5,12 @@ declare function closeDevTools(): void;
|
|
|
5
5
|
declare function toggleDevTools(): void;
|
|
6
6
|
declare function devToolsIsOpen(): boolean;
|
|
7
7
|
|
|
8
|
+
type UnusedResponseData = {
|
|
9
|
+
field: string;
|
|
10
|
+
data?: unknown;
|
|
11
|
+
};
|
|
12
|
+
type UnusedResponseDataInput = UnusedResponseData | null | undefined;
|
|
13
|
+
|
|
8
14
|
type RequestSubTypes = 'delete' | 'update' | 'create' | 'custom' | 'send' | 'receive';
|
|
9
15
|
type RequestTypes = 'ws' | 'fetch' | 'mutation';
|
|
10
16
|
type RequestStatus = 'pending' | 'success' | 'error';
|
|
@@ -41,7 +47,7 @@ type ApiRequest = {
|
|
|
41
47
|
* response fields that were not used by the app, an optimization
|
|
42
48
|
* opportunity shown in the stats tab
|
|
43
49
|
*/
|
|
44
|
-
unusedResponseData:
|
|
50
|
+
unusedResponseData: UnusedResponseData[] | undefined;
|
|
45
51
|
/**
|
|
46
52
|
* approximate stored size (json string length of payload/response/metadata
|
|
47
53
|
* plus a fixed overhead), used by the size-based eviction budget
|
|
@@ -109,7 +115,7 @@ type RegisterCallResult = (props: {
|
|
|
109
115
|
* used by the app, e.g. fields not declared in the response schema, shown
|
|
110
116
|
* in the stats tab as an optimization opportunity
|
|
111
117
|
*/
|
|
112
|
-
unusedResponseData?:
|
|
118
|
+
unusedResponseData?: UnusedResponseDataInput[] | undefined;
|
|
113
119
|
}) => void;
|
|
114
120
|
declare function addWebsocketEvent({ type, response, payload, event, startTime, }: {
|
|
115
121
|
type: 'send' | 'receive';
|
|
@@ -259,4 +265,4 @@ declare function addLog(log: {
|
|
|
259
265
|
}): void;
|
|
260
266
|
declare function clearLogs(): void;
|
|
261
267
|
|
|
262
|
-
export { type DevtoolsLog, type LogSeverity, type RegisterCallResult, type RequestCaller, type RequestCallerInput, type RequestCallerSelectOption, type RequestWarning, type RequestWarningInput, addCall, addLog, addMarker, addWebsocketEvent, clearHistory, clearLogs, closeDevTools, devToolsIsOpen, initializeDevTools, openDevTools, toggleDevTools };
|
|
268
|
+
export { type DevtoolsLog, type LogSeverity, type RegisterCallResult, type RequestCaller, type RequestCallerInput, type RequestCallerSelectOption, type RequestWarning, type RequestWarningInput, type UnusedResponseData, type UnusedResponseDataInput, addCall, addLog, addMarker, addWebsocketEvent, clearHistory, clearLogs, closeDevTools, devToolsIsOpen, initializeDevTools, openDevTools, toggleDevTools };
|