react-native-debug-toolkit 2.2.0 → 3.0.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/README.md +5 -8
- package/README.zh-CN.md +5 -8
- package/bin/debug-toolkit.js +114 -0
- package/lib/commonjs/features/network/index.js +32 -12
- package/lib/commonjs/features/network/index.js.map +1 -1
- package/lib/commonjs/features/network/networkInterceptor.js +164 -201
- package/lib/commonjs/features/network/networkInterceptor.js.map +1 -1
- package/lib/commonjs/index.js +59 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/panel/DebugPanel.js +25 -0
- package/lib/commonjs/ui/panel/DebugPanel.js.map +1 -1
- package/lib/commonjs/ui/panel/FloatPanelView.js +15 -62
- package/lib/commonjs/ui/panel/FloatPanelView.js.map +1 -1
- package/lib/commonjs/ui/panel/StreamingSettingsModal.js +529 -0
- package/lib/commonjs/ui/panel/StreamingSettingsModal.js.map +1 -0
- package/lib/commonjs/ui/panel/useTabAnimation.js +71 -0
- package/lib/commonjs/ui/panel/useTabAnimation.js.map +1 -0
- package/lib/commonjs/utils/autoDetectDaemon.js +141 -0
- package/lib/commonjs/utils/autoDetectDaemon.js.map +1 -0
- package/lib/commonjs/utils/createPersistedObservableStore.js +23 -3
- package/lib/commonjs/utils/createPersistedObservableStore.js.map +1 -1
- package/lib/commonjs/utils/daemonConnection.js +81 -0
- package/lib/commonjs/utils/daemonConnection.js.map +1 -0
- package/lib/commonjs/utils/daemonSettings.js +110 -0
- package/lib/commonjs/utils/daemonSettings.js.map +1 -0
- package/lib/commonjs/utils/reportToDaemon.js +112 -0
- package/lib/commonjs/utils/reportToDaemon.js.map +1 -0
- package/lib/commonjs/utils/sessionReport.js +132 -0
- package/lib/commonjs/utils/sessionReport.js.map +1 -0
- package/lib/commonjs/utils/streamToDaemon.js +334 -0
- package/lib/commonjs/utils/streamToDaemon.js.map +1 -0
- package/lib/module/features/network/index.js +30 -12
- package/lib/module/features/network/index.js.map +1 -1
- package/lib/module/features/network/networkInterceptor.js +163 -200
- package/lib/module/features/network/networkInterceptor.js.map +1 -1
- package/lib/module/index.js +5 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/panel/DebugPanel.js +26 -1
- package/lib/module/ui/panel/DebugPanel.js.map +1 -1
- package/lib/module/ui/panel/FloatPanelView.js +16 -63
- package/lib/module/ui/panel/FloatPanelView.js.map +1 -1
- package/lib/module/ui/panel/StreamingSettingsModal.js +524 -0
- package/lib/module/ui/panel/StreamingSettingsModal.js.map +1 -0
- package/lib/module/ui/panel/useTabAnimation.js +67 -0
- package/lib/module/ui/panel/useTabAnimation.js.map +1 -0
- package/lib/module/utils/autoDetectDaemon.js +136 -0
- package/lib/module/utils/autoDetectDaemon.js.map +1 -0
- package/lib/module/utils/createPersistedObservableStore.js +23 -3
- package/lib/module/utils/createPersistedObservableStore.js.map +1 -1
- package/lib/module/utils/daemonConnection.js +77 -0
- package/lib/module/utils/daemonConnection.js.map +1 -0
- package/lib/module/utils/daemonSettings.js +102 -0
- package/lib/module/utils/daemonSettings.js.map +1 -0
- package/lib/module/utils/reportToDaemon.js +105 -0
- package/lib/module/utils/reportToDaemon.js.map +1 -0
- package/lib/module/utils/sessionReport.js +128 -0
- package/lib/module/utils/sessionReport.js.map +1 -0
- package/lib/module/utils/streamToDaemon.js +328 -0
- package/lib/module/utils/streamToDaemon.js.map +1 -0
- package/lib/typescript/src/features/network/index.d.ts +2 -4
- package/lib/typescript/src/features/network/index.d.ts.map +1 -1
- package/lib/typescript/src/features/network/networkInterceptor.d.ts +2 -15
- package/lib/typescript/src/features/network/networkInterceptor.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +11 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/ui/panel/DebugPanel.d.ts.map +1 -1
- package/lib/typescript/src/ui/panel/FloatPanelView.d.ts.map +1 -1
- package/lib/typescript/src/ui/panel/StreamingSettingsModal.d.ts +8 -0
- package/lib/typescript/src/ui/panel/StreamingSettingsModal.d.ts.map +1 -0
- package/lib/typescript/src/ui/panel/useTabAnimation.d.ts +14 -0
- package/lib/typescript/src/ui/panel/useTabAnimation.d.ts.map +1 -0
- package/lib/typescript/src/utils/autoDetectDaemon.d.ts +15 -0
- package/lib/typescript/src/utils/autoDetectDaemon.d.ts.map +1 -0
- package/lib/typescript/src/utils/createPersistedObservableStore.d.ts +2 -1
- package/lib/typescript/src/utils/createPersistedObservableStore.d.ts.map +1 -1
- package/lib/typescript/src/utils/daemonConnection.d.ts +18 -0
- package/lib/typescript/src/utils/daemonConnection.d.ts.map +1 -0
- package/lib/typescript/src/utils/daemonSettings.d.ts +19 -0
- package/lib/typescript/src/utils/daemonSettings.d.ts.map +1 -0
- package/lib/typescript/src/utils/reportToDaemon.d.ts +34 -0
- package/lib/typescript/src/utils/reportToDaemon.d.ts.map +1 -0
- package/lib/typescript/src/utils/sessionReport.d.ts +18 -0
- package/lib/typescript/src/utils/sessionReport.d.ts.map +1 -0
- package/lib/typescript/src/utils/streamToDaemon.d.ts +23 -0
- package/lib/typescript/src/utils/streamToDaemon.d.ts.map +1 -0
- package/node/daemon/src/cli.js +75 -0
- package/node/daemon/src/console/console.html +936 -0
- package/node/daemon/src/console/index.js +47 -0
- package/node/daemon/src/constants.js +32 -0
- package/node/daemon/src/index.js +11 -0
- package/node/daemon/src/server.js +365 -0
- package/node/daemon/src/store.js +110 -0
- package/node/mcp/src/cli.js +31 -0
- package/node/mcp/src/constants.js +13 -0
- package/node/mcp/src/daemonClient.js +132 -0
- package/node/mcp/src/httpClient.js +49 -0
- package/node/mcp/src/index.js +15 -0
- package/node/mcp/src/logs.js +95 -0
- package/node/mcp/src/server.js +144 -0
- package/node/mcp/src/tools.js +84 -0
- package/package.json +10 -5
- package/src/features/network/index.ts +35 -19
- package/src/features/network/networkInterceptor.ts +224 -236
- package/src/index.ts +15 -1
- package/src/ui/panel/DebugPanel.tsx +23 -1
- package/src/ui/panel/FloatPanelView.tsx +10 -68
- package/src/ui/panel/StreamingSettingsModal.tsx +566 -0
- package/src/ui/panel/useTabAnimation.ts +77 -0
- package/src/utils/autoDetectDaemon.ts +175 -0
- package/src/utils/createPersistedObservableStore.ts +16 -3
- package/src/utils/daemonConnection.ts +133 -0
- package/src/utils/daemonSettings.ts +134 -0
- package/src/utils/reportToDaemon.ts +172 -0
- package/src/utils/sessionReport.ts +203 -0
- package/src/utils/streamToDaemon.ts +419 -0
|
@@ -4,14 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.resetInterceptors = resetInterceptors;
|
|
7
|
-
exports.
|
|
8
|
-
exports.startFetch = startFetch;
|
|
7
|
+
exports.startXMLHttpRequest = startXMLHttpRequest;
|
|
9
8
|
var _urlRewriterRegistry = require("../../utils/urlRewriterRegistry");
|
|
10
|
-
// Intercepts
|
|
11
|
-
//
|
|
12
|
-
// avoiding the unreliable XHR response interception in React Native.
|
|
13
|
-
|
|
14
|
-
// ─── Minimal axios interface (no hard dependency) ──────
|
|
9
|
+
// Intercepts React Native's XMLHttpRequest transport layer.
|
|
10
|
+
// RN fetch and axios (default adapter) both go through XHR — one hook captures everything.
|
|
15
11
|
|
|
16
12
|
// ─── Shared helpers ────────────────────────────────────
|
|
17
13
|
|
|
@@ -26,236 +22,203 @@ function rewriteUrl(url) {
|
|
|
26
22
|
return url;
|
|
27
23
|
}
|
|
28
24
|
}
|
|
29
|
-
function
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
return result;
|
|
33
|
-
}
|
|
34
|
-
if (typeof headers.forEach === 'function') {
|
|
35
|
-
headers.forEach((value, key) => {
|
|
36
|
-
result[key] = value;
|
|
37
|
-
});
|
|
38
|
-
return result;
|
|
25
|
+
function parseRawHeaders(rawHeaders) {
|
|
26
|
+
if (!rawHeaders) {
|
|
27
|
+
return undefined;
|
|
39
28
|
}
|
|
40
|
-
|
|
41
|
-
|
|
29
|
+
const headers = {};
|
|
30
|
+
rawHeaders.trim().split(/[\r\n]+/).forEach(line => {
|
|
31
|
+
const separatorIndex = line.indexOf(':');
|
|
32
|
+
if (separatorIndex <= 0) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
const key = line.slice(0, separatorIndex).trim();
|
|
36
|
+
const value = line.slice(separatorIndex + 1).trim();
|
|
37
|
+
if (key) {
|
|
38
|
+
headers[key] = value;
|
|
39
|
+
}
|
|
42
40
|
});
|
|
43
|
-
return
|
|
44
|
-
}
|
|
45
|
-
function getRequestSnapshot(input, init) {
|
|
46
|
-
const request = input instanceof Request ? input : null;
|
|
47
|
-
return {
|
|
48
|
-
url: typeof input === 'string' ? input : request?.url ?? String(input),
|
|
49
|
-
method: (init?.method || request?.method || 'GET').toUpperCase(),
|
|
50
|
-
headers: init?.headers ? headersToObject(init.headers) : request?.headers ? headersToObject(request.headers) : undefined,
|
|
51
|
-
body: init?.body
|
|
52
|
-
};
|
|
41
|
+
return Object.keys(headers).length > 0 ? headers : undefined;
|
|
53
42
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
if (!raw) {
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
43
|
+
function parseBodyText(raw) {
|
|
44
|
+
if (!raw) return undefined;
|
|
59
45
|
try {
|
|
60
46
|
return JSON.parse(raw);
|
|
61
47
|
} catch {
|
|
62
48
|
return raw;
|
|
63
49
|
}
|
|
64
50
|
}
|
|
65
|
-
function
|
|
66
|
-
|
|
67
|
-
|
|
51
|
+
function normalizeXhrResponseBody(xhr) {
|
|
52
|
+
const text = safeRead(() => xhr.responseText);
|
|
53
|
+
if (typeof text === 'string' && text) {
|
|
54
|
+
return parseBodyText(text);
|
|
68
55
|
}
|
|
69
|
-
|
|
70
|
-
if (
|
|
71
|
-
|
|
72
|
-
headers.forEach((value, key) => {
|
|
73
|
-
result[key] = value;
|
|
74
|
-
});
|
|
75
|
-
return Object.keys(result).length > 0 ? result : undefined;
|
|
76
|
-
}
|
|
77
|
-
// Plain object
|
|
78
|
-
const result = {};
|
|
79
|
-
const obj = headers;
|
|
80
|
-
for (const key of Object.keys(obj)) {
|
|
81
|
-
const val = obj[key];
|
|
82
|
-
if (typeof val === 'string') {
|
|
83
|
-
result[key] = val;
|
|
84
|
-
}
|
|
56
|
+
const response = safeRead(() => xhr.response);
|
|
57
|
+
if (response != null) {
|
|
58
|
+
return response;
|
|
85
59
|
}
|
|
86
|
-
return
|
|
60
|
+
return undefined;
|
|
87
61
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
62
|
+
|
|
63
|
+
// ─── XMLHttpRequest interceptor ───────────────────────
|
|
64
|
+
|
|
65
|
+
let originalXMLHttpRequest = null;
|
|
66
|
+
let originalXhrOpen = null;
|
|
67
|
+
let originalXhrSend = null;
|
|
68
|
+
let originalXhrSetRequestHeader = null;
|
|
69
|
+
let xhrRefCount = 0;
|
|
70
|
+
const pendingXhrRequests = new WeakMap();
|
|
71
|
+
function safeRead(read) {
|
|
72
|
+
try {
|
|
73
|
+
return read();
|
|
74
|
+
} catch {
|
|
75
|
+
return undefined;
|
|
93
76
|
}
|
|
94
|
-
return base.replace(/\/$/, '') + '/' + url.replace(/^\//, '');
|
|
95
77
|
}
|
|
96
78
|
|
|
97
|
-
//
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
79
|
+
// URLs matching these patterns are skipped (Metro dev server internals).
|
|
80
|
+
const IGNORED_URL_PATTERNS = [/\/symbolicate$/];
|
|
81
|
+
function shouldIgnoreUrl(url) {
|
|
82
|
+
return IGNORED_URL_PATTERNS.some(p => p.test(url));
|
|
83
|
+
}
|
|
84
|
+
function getGlobalXMLHttpRequest() {
|
|
85
|
+
return globalThis.XMLHttpRequest;
|
|
86
|
+
}
|
|
87
|
+
function getXhrResponseHeaders(xhr) {
|
|
88
|
+
const rawHeaders = safeRead(() => xhr.getAllResponseHeaders?.());
|
|
89
|
+
const parsedHeaders = parseRawHeaders(rawHeaders);
|
|
90
|
+
if (parsedHeaders) {
|
|
91
|
+
return parsedHeaders;
|
|
92
|
+
}
|
|
93
|
+
const headers = xhr.responseHeaders;
|
|
94
|
+
if (!headers) {
|
|
95
|
+
return undefined;
|
|
106
96
|
}
|
|
97
|
+
return Object.keys(headers).length > 0 ? headers : undefined;
|
|
107
98
|
}
|
|
108
|
-
function
|
|
109
|
-
|
|
110
|
-
if (
|
|
99
|
+
function stopXMLHttpRequest() {
|
|
100
|
+
xhrRefCount = Math.max(0, xhrRefCount - 1);
|
|
101
|
+
if (xhrRefCount > 0 || !originalXMLHttpRequest) {
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
const CurrentXMLHttpRequest = getGlobalXMLHttpRequest();
|
|
105
|
+
if (CurrentXMLHttpRequest) {
|
|
106
|
+
if (originalXhrOpen) {
|
|
107
|
+
CurrentXMLHttpRequest.prototype.open = originalXhrOpen;
|
|
108
|
+
}
|
|
109
|
+
if (originalXhrSend) {
|
|
110
|
+
CurrentXMLHttpRequest.prototype.send = originalXhrSend;
|
|
111
|
+
}
|
|
112
|
+
if (originalXhrSetRequestHeader) {
|
|
113
|
+
CurrentXMLHttpRequest.prototype.setRequestHeader = originalXhrSetRequestHeader;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
originalXMLHttpRequest = null;
|
|
117
|
+
originalXhrOpen = null;
|
|
118
|
+
originalXhrSend = null;
|
|
119
|
+
originalXhrSetRequestHeader = null;
|
|
120
|
+
}
|
|
121
|
+
function startXMLHttpRequest(emit) {
|
|
122
|
+
const CurrentXMLHttpRequest = getGlobalXMLHttpRequest();
|
|
123
|
+
if (!CurrentXMLHttpRequest) {
|
|
124
|
+
return () => {};
|
|
125
|
+
}
|
|
126
|
+
xhrRefCount += 1;
|
|
127
|
+
if (originalXMLHttpRequest) {
|
|
111
128
|
return () => {
|
|
112
|
-
|
|
129
|
+
stopXMLHttpRequest();
|
|
113
130
|
};
|
|
114
131
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
rewrittenInput = new Request(rewriteUrl(input.url), input);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
const request = getRequestSnapshot(rewrittenInput, init);
|
|
127
|
-
try {
|
|
128
|
-
const response = await originalFetch.call(globalThis, rewrittenInput, init);
|
|
129
|
-
const duration = Date.now() - startTime;
|
|
130
|
-
try {
|
|
131
|
-
const data = await parseResponseBody(response);
|
|
132
|
-
emit({
|
|
133
|
-
timestamp: startTime,
|
|
134
|
-
duration,
|
|
135
|
-
request,
|
|
136
|
-
response: {
|
|
137
|
-
status: response.status,
|
|
138
|
-
statusText: response.statusText,
|
|
139
|
-
data
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
} catch {
|
|
143
|
-
emit({
|
|
144
|
-
timestamp: startTime,
|
|
145
|
-
duration,
|
|
146
|
-
request,
|
|
147
|
-
response: {
|
|
148
|
-
status: response.status,
|
|
149
|
-
statusText: response.statusText
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
return response;
|
|
154
|
-
} catch (error) {
|
|
155
|
-
emit({
|
|
156
|
-
timestamp: startTime,
|
|
157
|
-
duration: Date.now() - startTime,
|
|
158
|
-
request,
|
|
159
|
-
error: error instanceof Error ? error.message : String(error)
|
|
160
|
-
});
|
|
161
|
-
throw error;
|
|
132
|
+
originalXMLHttpRequest = CurrentXMLHttpRequest;
|
|
133
|
+
originalXhrOpen = CurrentXMLHttpRequest.prototype.open;
|
|
134
|
+
originalXhrSend = CurrentXMLHttpRequest.prototype.send;
|
|
135
|
+
originalXhrSetRequestHeader = CurrentXMLHttpRequest.prototype.setRequestHeader;
|
|
136
|
+
CurrentXMLHttpRequest.prototype.open = function interceptedOpen(method, url, ...args) {
|
|
137
|
+
const rewrittenUrl = _urlRewriterRegistry.urlRewriter.get() ? rewriteUrl(url) : url;
|
|
138
|
+
if (shouldIgnoreUrl(rewrittenUrl)) {
|
|
139
|
+
return originalXhrOpen.call(this, method, rewrittenUrl, ...args);
|
|
162
140
|
}
|
|
141
|
+
pendingXhrRequests.set(this, {
|
|
142
|
+
method: (method || 'GET').toUpperCase(),
|
|
143
|
+
url: rewrittenUrl,
|
|
144
|
+
headers: {},
|
|
145
|
+
timestamp: Date.now()
|
|
146
|
+
});
|
|
147
|
+
return originalXhrOpen.call(this, method, rewrittenUrl, ...args);
|
|
163
148
|
};
|
|
164
|
-
|
|
165
|
-
|
|
149
|
+
CurrentXMLHttpRequest.prototype.setRequestHeader = function interceptedSetRequestHeader(header, value) {
|
|
150
|
+
const state = pendingXhrRequests.get(this);
|
|
151
|
+
if (state) {
|
|
152
|
+
state.headers[header] = value;
|
|
153
|
+
}
|
|
154
|
+
return originalXhrSetRequestHeader.call(this, header, value);
|
|
166
155
|
};
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
const pendingAxiosRequests = new WeakMap();
|
|
173
|
-
function startAxios(axiosInstance, emit) {
|
|
174
|
-
const requestInterceptorId = axiosInstance.interceptors.request.use(
|
|
175
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
176
|
-
config => {
|
|
177
|
-
const now = Date.now();
|
|
178
|
-
pendingAxiosRequests.set(config, {
|
|
179
|
-
startTime: now,
|
|
180
|
-
timestamp: now
|
|
181
|
-
});
|
|
182
|
-
if (_urlRewriterRegistry.urlRewriter.get() && config.url) {
|
|
183
|
-
const fullUrl = buildFullUrl(config);
|
|
184
|
-
const rewritten = rewriteUrl(fullUrl);
|
|
185
|
-
if (rewritten !== fullUrl) {
|
|
186
|
-
config.url = rewritten;
|
|
187
|
-
if (config.baseURL) {
|
|
188
|
-
config.baseURL = undefined;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
156
|
+
CurrentXMLHttpRequest.prototype.send = function interceptedSend(body) {
|
|
157
|
+
const that = this;
|
|
158
|
+
const existingState = pendingXhrRequests.get(that);
|
|
159
|
+
if (!existingState) {
|
|
160
|
+
return originalXhrSend.call(that, body);
|
|
191
161
|
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
emit({
|
|
201
|
-
timestamp: startTime,
|
|
202
|
-
duration: Date.now() - startTime,
|
|
203
|
-
request: {
|
|
204
|
-
url: buildFullUrl(config),
|
|
205
|
-
method: (config?.method ?? 'GET').toUpperCase(),
|
|
206
|
-
headers: normalizeAxiosHeaders(config?.headers),
|
|
207
|
-
body: config?.data
|
|
208
|
-
},
|
|
209
|
-
response: {
|
|
210
|
-
status: response.status,
|
|
211
|
-
statusText: response.statusText,
|
|
212
|
-
headers: normalizeAxiosHeaders(response.headers),
|
|
213
|
-
data: response.data,
|
|
214
|
-
success: response.status >= 200 && response.status < 300
|
|
162
|
+
const state = existingState;
|
|
163
|
+
state.body = body;
|
|
164
|
+
state.timestamp = Date.now();
|
|
165
|
+
pendingXhrRequests.set(that, state);
|
|
166
|
+
const complete = () => {
|
|
167
|
+
const currentState = pendingXhrRequests.get(that);
|
|
168
|
+
if (!currentState || currentState.completed) {
|
|
169
|
+
return;
|
|
215
170
|
}
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
},
|
|
219
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
220
|
-
error => {
|
|
221
|
-
const config = error.config;
|
|
222
|
-
const pending = config ? pendingAxiosRequests.get(config) : undefined;
|
|
223
|
-
const startTime = pending?.timestamp ?? Date.now();
|
|
224
|
-
if (config) {
|
|
171
|
+
currentState.completed = true;
|
|
172
|
+
const headers = getXhrResponseHeaders(that);
|
|
225
173
|
emit({
|
|
226
|
-
timestamp:
|
|
227
|
-
duration: Date.now() -
|
|
174
|
+
timestamp: currentState.timestamp,
|
|
175
|
+
duration: Date.now() - currentState.timestamp,
|
|
228
176
|
request: {
|
|
229
|
-
url:
|
|
230
|
-
method:
|
|
231
|
-
headers:
|
|
232
|
-
body:
|
|
177
|
+
url: currentState.url,
|
|
178
|
+
method: currentState.method,
|
|
179
|
+
headers: Object.keys(currentState.headers).length > 0 ? currentState.headers : undefined,
|
|
180
|
+
body: currentState.body
|
|
181
|
+
},
|
|
182
|
+
response: {
|
|
183
|
+
status: that.status,
|
|
184
|
+
statusText: that.statusText,
|
|
185
|
+
headers,
|
|
186
|
+
data: normalizeXhrResponseBody(that),
|
|
187
|
+
success: that.status >= 200 && that.status < 300
|
|
233
188
|
},
|
|
234
|
-
|
|
235
|
-
status: error.response.status,
|
|
236
|
-
statusText: error.response.statusText,
|
|
237
|
-
headers: normalizeAxiosHeaders(error.response.headers),
|
|
238
|
-
data: error.response.data,
|
|
239
|
-
success: false
|
|
240
|
-
} : undefined,
|
|
241
|
-
error: error.message ?? String(error)
|
|
189
|
+
error: currentState.error
|
|
242
190
|
});
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
|
|
191
|
+
};
|
|
192
|
+
const markError = message => {
|
|
193
|
+
const currentState = pendingXhrRequests.get(that);
|
|
194
|
+
if (currentState) {
|
|
195
|
+
currentState.error = message;
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
that.addEventListener('error', () => {
|
|
199
|
+
markError('Network Error');
|
|
200
|
+
});
|
|
201
|
+
that.addEventListener('timeout', () => {
|
|
202
|
+
markError('Timeout');
|
|
203
|
+
});
|
|
204
|
+
that.addEventListener('abort', () => {
|
|
205
|
+
markError('Aborted');
|
|
206
|
+
});
|
|
207
|
+
that.addEventListener('loadend', complete);
|
|
208
|
+
return originalXhrSend.call(that, body);
|
|
209
|
+
};
|
|
246
210
|
return () => {
|
|
247
|
-
|
|
248
|
-
axiosInstance.interceptors.response.eject(responseInterceptorId);
|
|
211
|
+
stopXMLHttpRequest();
|
|
249
212
|
};
|
|
250
213
|
}
|
|
251
214
|
|
|
252
215
|
// ─── Cleanup ───────────────────────────────────────────
|
|
253
216
|
|
|
254
217
|
function resetInterceptors() {
|
|
255
|
-
if (
|
|
256
|
-
|
|
257
|
-
|
|
218
|
+
if (originalXMLHttpRequest) {
|
|
219
|
+
xhrRefCount = 1;
|
|
220
|
+
stopXMLHttpRequest();
|
|
258
221
|
}
|
|
259
|
-
|
|
222
|
+
xhrRefCount = 0;
|
|
260
223
|
}
|
|
261
224
|
//# sourceMappingURL=networkInterceptor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_urlRewriterRegistry","require","rewriteUrl","url","rewriter","urlRewriter","get","
|
|
1
|
+
{"version":3,"names":["_urlRewriterRegistry","require","rewriteUrl","url","rewriter","urlRewriter","get","parseRawHeaders","rawHeaders","undefined","headers","trim","split","forEach","line","separatorIndex","indexOf","key","slice","value","Object","keys","length","parseBodyText","raw","JSON","parse","normalizeXhrResponseBody","xhr","text","safeRead","responseText","response","originalXMLHttpRequest","originalXhrOpen","originalXhrSend","originalXhrSetRequestHeader","xhrRefCount","pendingXhrRequests","WeakMap","read","IGNORED_URL_PATTERNS","shouldIgnoreUrl","some","p","test","getGlobalXMLHttpRequest","globalThis","XMLHttpRequest","getXhrResponseHeaders","getAllResponseHeaders","parsedHeaders","responseHeaders","stopXMLHttpRequest","Math","max","CurrentXMLHttpRequest","prototype","open","send","setRequestHeader","startXMLHttpRequest","emit","interceptedOpen","method","args","rewrittenUrl","call","set","toUpperCase","timestamp","Date","now","interceptedSetRequestHeader","header","state","interceptedSend","body","that","existingState","complete","currentState","completed","duration","request","status","statusText","data","success","error","markError","message","addEventListener","resetInterceptors"],"sourceRoot":"../../../../src","sources":["features/network/networkInterceptor.ts"],"mappings":";;;;;;;AACA,IAAAA,oBAAA,GAAAC,OAAA;AAMA;AACA;;AAEA;;AAEA,SAASC,UAAUA,CAACC,GAAW,EAAU;EACvC,MAAMC,QAAQ,GAAGC,gCAAW,CAAC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O,EAAEV,IAAI,CAACO,MAAM,IAAI,GAAG,IAAIP,IAAI,CAACO,MAAM,GAAG;QAC/C,CAAC;QACDI,KAAK,EAAER,YAAY,CAACQ;MACtB,CAAC,CAAC;IACJ,CAAC;IAED,MAAMC,SAAS,GAAIC,OAAe,IAAK;MACrC,MAAMV,YAAY,GAAG3C,kBAAkB,CAAChC,GAAG,CAACwE,IAAI,CAAC;MACjD,IAAIG,YAAY,EAAE;QAChBA,YAAY,CAACQ,KAAK,GAAGE,OAAO;MAC9B;IACF,CAAC;IAEDb,IAAI,CAACc,gBAAgB,CAAC,OAAO,EAAE,MAAM;MACnCF,SAAS,CAAC,eAAe,CAAC;IAC5B,CAAC,CAAC;IACFZ,IAAI,CAACc,gBAAgB,CAAC,SAAS,EAAE,MAAM;MACrCF,SAAS,CAAC,SAAS,CAAC;IACtB,CAAC,CAAC;IACFZ,IAAI,CAACc,gBAAgB,CAAC,OAAO,EAAE,MAAM;MACnCF,SAAS,CAAC,SAAS,CAAC;IACtB,CAAC,CAAC;IACFZ,IAAI,CAACc,gBAAgB,CAAC,SAAS,EAAEZ,QAAQ,CAAC;IAE1C,OAAO7C,eAAe,CAAEgC,IAAI,CAACW,IAAI,EAAED,IAAI,CAAC;EAC1C,CAAC;EAED,OAAO,MAAM;IACXxB,kBAAkB,CAAC,CAAC;EACtB,CAAC;AACH;;AAEA;;AAEO,SAASwC,iBAAiBA,CAAA,EAAS;EACxC,IAAI5D,sBAAsB,EAAE;IAC1BI,WAAW,GAAG,CAAC;IACfgB,kBAAkB,CAAC,CAAC;EACtB;EACAhB,WAAW,GAAG,CAAC;AACjB","ignoreList":[]}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -39,6 +39,18 @@ Object.defineProperty(exports, "addZustandLog", {
|
|
|
39
39
|
return _zustand.addZustandLog;
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
+
Object.defineProperty(exports, "autoDetectDaemonIp", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () {
|
|
45
|
+
return _autoDetectDaemon.autoDetectDaemonIp;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "checkDaemonConnection", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () {
|
|
51
|
+
return _daemonConnection.checkDaemonConnection;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
42
54
|
Object.defineProperty(exports, "copyToComputer", {
|
|
43
55
|
enumerable: true,
|
|
44
56
|
get: function () {
|
|
@@ -57,6 +69,12 @@ Object.defineProperty(exports, "createConsoleLogFeature", {
|
|
|
57
69
|
return _console.createConsoleLogFeature;
|
|
58
70
|
}
|
|
59
71
|
});
|
|
72
|
+
Object.defineProperty(exports, "createDebugSessionReport", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function () {
|
|
75
|
+
return _sessionReport.createDebugSessionReport;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
60
78
|
Object.defineProperty(exports, "createEnvironmentFeature", {
|
|
61
79
|
enumerable: true,
|
|
62
80
|
get: function () {
|
|
@@ -99,24 +117,60 @@ Object.defineProperty(exports, "fmt", {
|
|
|
99
117
|
return _copyToComputer.fmt;
|
|
100
118
|
}
|
|
101
119
|
});
|
|
120
|
+
Object.defineProperty(exports, "getDefaultDaemonEndpoint", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function () {
|
|
123
|
+
return _reportToDaemon.getDefaultDaemonEndpoint;
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
Object.defineProperty(exports, "getMetroHost", {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
get: function () {
|
|
129
|
+
return _autoDetectDaemon.getMetroHost;
|
|
130
|
+
}
|
|
131
|
+
});
|
|
102
132
|
Object.defineProperty(exports, "initializeDebugToolkit", {
|
|
103
133
|
enumerable: true,
|
|
104
134
|
get: function () {
|
|
105
135
|
return _initialize.initializeDebugToolkit;
|
|
106
136
|
}
|
|
107
137
|
});
|
|
138
|
+
Object.defineProperty(exports, "isStreaming", {
|
|
139
|
+
enumerable: true,
|
|
140
|
+
get: function () {
|
|
141
|
+
return _streamToDaemon.isStreaming;
|
|
142
|
+
}
|
|
143
|
+
});
|
|
108
144
|
Object.defineProperty(exports, "logToComputer", {
|
|
109
145
|
enumerable: true,
|
|
110
146
|
get: function () {
|
|
111
147
|
return _copyToComputer.logToComputer;
|
|
112
148
|
}
|
|
113
149
|
});
|
|
150
|
+
Object.defineProperty(exports, "reportDebugSessionToDaemon", {
|
|
151
|
+
enumerable: true,
|
|
152
|
+
get: function () {
|
|
153
|
+
return _reportToDaemon.reportDebugSessionToDaemon;
|
|
154
|
+
}
|
|
155
|
+
});
|
|
114
156
|
Object.defineProperty(exports, "safeStringify", {
|
|
115
157
|
enumerable: true,
|
|
116
158
|
get: function () {
|
|
117
159
|
return _safeStringify.safeStringify;
|
|
118
160
|
}
|
|
119
161
|
});
|
|
162
|
+
Object.defineProperty(exports, "startStreaming", {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
get: function () {
|
|
165
|
+
return _streamToDaemon.startStreaming;
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
Object.defineProperty(exports, "stopStreaming", {
|
|
169
|
+
enumerable: true,
|
|
170
|
+
get: function () {
|
|
171
|
+
return _streamToDaemon.stopStreaming;
|
|
172
|
+
}
|
|
173
|
+
});
|
|
120
174
|
Object.defineProperty(exports, "useDebugToolkit", {
|
|
121
175
|
enumerable: true,
|
|
122
176
|
get: function () {
|
|
@@ -149,4 +203,9 @@ var _clipboard = require("./features/clipboard");
|
|
|
149
203
|
var _useNavigationLogger = require("./features/navigation/useNavigationLogger");
|
|
150
204
|
var _safeStringify = require("./utils/safeStringify");
|
|
151
205
|
var _copyToComputer = require("./utils/copyToComputer");
|
|
206
|
+
var _sessionReport = require("./utils/sessionReport");
|
|
207
|
+
var _reportToDaemon = require("./utils/reportToDaemon");
|
|
208
|
+
var _daemonConnection = require("./utils/daemonConnection");
|
|
209
|
+
var _streamToDaemon = require("./utils/streamToDaemon");
|
|
210
|
+
var _autoDetectDaemon = require("./utils/autoDetectDaemon");
|
|
152
211
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_DebugToolkit","require","_DebugToolkitProvider","_DebugView","_initialize","_network","_console","_zustand","_navigation","_track","_environment","_clipboard","_useNavigationLogger","_safeStringify","_copyToComputer"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":["_DebugToolkit","require","_DebugToolkitProvider","_DebugView","_initialize","_network","_console","_zustand","_navigation","_track","_environment","_clipboard","_useNavigationLogger","_safeStringify","_copyToComputer","_sessionReport","_reportToDaemon","_daemonConnection","_streamToDaemon","_autoDetectDaemon"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,qBAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAEA,IAAAG,WAAA,GAAAH,OAAA;AAIA,IAAAI,QAAA,GAAAJ,OAAA;AAEA,IAAAK,QAAA,GAAAL,OAAA;AAEA,IAAAM,QAAA,GAAAN,OAAA;AAEA,IAAAO,WAAA,GAAAP,OAAA;AAEA,IAAAQ,MAAA,GAAAR,OAAA;AAEA,IAAAS,YAAA,GAAAT,OAAA;AAEA,IAAAU,UAAA,GAAAV,OAAA;AAGA,IAAAW,oBAAA,GAAAX,OAAA;AAGA,IAAAY,cAAA,GAAAZ,OAAA;AACA,IAAAa,eAAA,GAAAb,OAAA;AAEA,IAAAc,cAAA,GAAAd,OAAA;AAEA,IAAAe,eAAA,GAAAf,OAAA;AAEA,IAAAgB,iBAAA,GAAAhB,OAAA;AAMA,IAAAiB,eAAA,GAAAjB,OAAA;AAEA,IAAAkB,iBAAA,GAAAlB,OAAA","ignoreList":[]}
|