From b4d544a26a4493ca31b2ba55d4e3a0756c58ebc6 Mon Sep 17 00:00:00 2001 From: Roland Scheffler <38014002+r-scheffler@users.noreply.github.com> Date: Wed, 16 Sep 2026 15:22:21 +0300 Subject: [PATCH] Fix a few typos --- automation/webpack.prod.ts | 2 +- src/model/events/event-base.ts | 2 +- src/model/http/http-docs.ts | 2 +- src/model/rules/rule-descriptions.ts | 2 +- src/model/send/send-request-model.ts | 2 +- src/services/ui-worker-api.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/automation/webpack.prod.ts b/automation/webpack.prod.ts index 5e7527d79..08bb48dc9 100644 --- a/automation/webpack.prod.ts +++ b/automation/webpack.prod.ts @@ -57,7 +57,7 @@ export default merge(common, { // Split out various extra chunks for libraries that we know to be large & either // rarely used or updated differently to other code in the frontend. The goal is to // avoid re-downloading large non-updated libs when often-updated libs change. - // This is a bit suspect - definitely more art then science right now. + // This is a bit suspect - definitely more art than science right now. cacheGroups: { // Zstd is rarely used, big-ish, always loaded async, and v rarely changed: zstd: { diff --git a/src/model/events/event-base.ts b/src/model/events/event-base.ts index 4ede02505..241a65bfb 100644 --- a/src/model/events/event-base.ts +++ b/src/model/events/event-base.ts @@ -17,7 +17,7 @@ export abstract class HTKEventBase { abstract get id(): string; - // These can be overriden by subclasses to allow easy type narrowing: + // These can be overridden by subclasses to allow easy type narrowing: isHttp(): this is HttpExchangeView { return false; } isWebSocket(): this is WebSocketView { return false; } diff --git a/src/model/http/http-docs.ts b/src/model/http/http-docs.ts index 98de7f3c2..7cb316cad 100644 --- a/src/model/http/http-docs.ts +++ b/src/model/http/http-docs.ts @@ -605,7 +605,7 @@ const HEADERS: { [key: string]: MdnDocsData | undefined } = { "dpr": { "mdnSlug": "Web/HTTP/Headers/DPR", "name": "DPR", - "summary": "The DPR header is a Client Hints headers which represents the client device pixel ratio (DPR), which is the the number of physical device pixels corresponding to every CSS pixel." + "summary": "The DPR header is one of the Client Hints headers, which represents the client device pixel ratio (DPR), the number of physical device pixels corresponding to every CSS pixel." }, "date": { "mdnSlug": "Web/HTTP/Headers/Date", diff --git a/src/model/rules/rule-descriptions.ts b/src/model/rules/rule-descriptions.ts index 2e4520430..ccce15dc0 100644 --- a/src/model/rules/rule-descriptions.ts +++ b/src/model/rules/rule-descriptions.ts @@ -282,7 +282,7 @@ export function summarizeStepClass(key: StepClassKey): string { } // Summarize the matchers of an instantiated rule -// Slight varation on the Mockttp explanation to make the +// Slight variation on the Mockttp explanation to make the // comma positioning more consistent for UX of changing rules export function summarizeMatcher(rule: HtkRule): string { const { matchers } = rule; diff --git a/src/model/send/send-request-model.ts b/src/model/send/send-request-model.ts index 92b76c8f1..84bab36b7 100644 --- a/src/model/send/send-request-model.ts +++ b/src/model/send/send-request-model.ts @@ -23,7 +23,7 @@ import { import { getHeaderValue, h2HeadersToH1, rawHeadersToHeaders } from '../http/headers'; import { parseHarRequest } from '../http/har'; -// This is our model of a Request for sending. Smilar to the API model, +// This is our model of a Request for sending. Similar to the API model, // but not identical, as we add extra UI metadata etc. export class RequestInput { diff --git a/src/services/ui-worker-api.ts b/src/services/ui-worker-api.ts index b220e006c..b109f4ccc 100644 --- a/src/services/ui-worker-api.ts +++ b/src/services/ui-worker-api.ts @@ -65,7 +65,7 @@ function callApi< * Takes a body, asynchronously decodes it and returns the decoded buffer. * * Note that this requires transferring the _encoded_ body to a web worker, - * so after this is run the encoded the buffer will become empty, if any + * so after this is run the encoded buffer will become empty, if any * decoding is actually required. * * The method returns an object containing the new decoded buffer and the