豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit e8e33d4

Browse files
chore: fix some typos (#1240)
1 parent 483695e commit e8e33d4

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/McpResponse.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,10 @@ export class McpResponse implements Response {
165165
}
166166

167167
attachNetworkRequest(
168-
reqid: number,
168+
reqId: number,
169169
options?: {requestFilePath?: string; responseFilePath?: string},
170170
): void {
171-
this.#attachedNetworkRequestId = reqid;
171+
this.#attachedNetworkRequestId = reqId;
172172
this.#attachedNetworkRequestOptions = options;
173173
}
174174

@@ -346,7 +346,7 @@ export class McpResponse implements Response {
346346
});
347347
if (!formatter.isValid()) {
348348
throw new Error(
349-
"Can't provide detals for the msgid " + consoleMessageStableId,
349+
"Can't provide details for the msgid " + consoleMessageStableId,
350350
);
351351
}
352352
detailedConsoleMessage = formatter;

src/PageCollector.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,13 +272,13 @@ class PageEventSubscriber {
272272
if (this.#issueAggregator) {
273273
this.#issueAggregator.removeEventListener(
274274
DevTools.IssueAggregatorEvents.AGGREGATED_ISSUE_UPDATED,
275-
this.#onAggregatedissue,
275+
this.#onAggregatedIssue,
276276
);
277277
}
278278
this.#issueAggregator = new DevTools.IssueAggregator(this.#issueManager);
279279
this.#issueAggregator.addEventListener(
280280
DevTools.IssueAggregatorEvents.AGGREGATED_ISSUE_UPDATED,
281-
this.#onAggregatedissue,
281+
this.#onAggregatedIssue,
282282
);
283283
}
284284

@@ -303,15 +303,15 @@ class PageEventSubscriber {
303303
if (this.#issueAggregator) {
304304
this.#issueAggregator.removeEventListener(
305305
DevTools.IssueAggregatorEvents.AGGREGATED_ISSUE_UPDATED,
306-
this.#onAggregatedissue,
306+
this.#onAggregatedIssue,
307307
);
308308
}
309309
void this.#session.send('Audits.disable').catch(() => {
310310
// might fail.
311311
});
312312
}
313313

314-
#onAggregatedissue = (
314+
#onAggregatedIssue = (
315315
event: DevTools.Common.EventTarget.EventTargetEvent<DevTools.AggregatedIssue>,
316316
) => {
317317
if (this.#seenIssues.has(event.data)) {

tests/McpResponse.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ describe('McpResponse', () => {
619619
try {
620620
await response.handle('test', context);
621621
} catch (e) {
622-
assert.ok(e.message.includes("Can't provide detals for the msgid 1"));
622+
assert.ok(e.message.includes("Can't provide details for the msgid 1"));
623623
}
624624
});
625625
});

0 commit comments

Comments
 (0)