From 8da0961da7ea3e16e348ec1774cb072e5dc15f69 Mon Sep 17 00:00:00 2001 From: nexxai Date: Tue, 26 Nov 2024 18:21:13 -0700 Subject: [PATCH] Typofixes --- overrides/path/php | 2 +- src/api/api-model.ts | 4 ++-- src/client/http-client.ts | 2 +- src/interceptors/docker/docker-commands.ts | 2 +- src/interceptors/docker/docker-tunnel-proxy.ts | 2 +- src/interceptors/terminal/terminal-env-overrides.ts | 2 +- src/interceptors/terminal/terminal-scripts.ts | 6 +++--- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/overrides/path/php b/overrides/path/php index 31b5a515..b6335639 100755 --- a/overrides/path/php +++ b/overrides/path/php @@ -6,7 +6,7 @@ PATH="${PATH//`dirname "$0"`:/}" real_php=`command -v php` PATH="`dirname "$0"`:$PATH" -# Strip out our PHP_INI_SCAN_DIR - if this file has been run succesfully, then it's not necessary, +# Strip out our PHP_INI_SCAN_DIR - if this file has been run successfully, then it's not necessary, # and it can cause problems (since it overrides any default scan directories configured) export INJECTED_PHP_INI_DIR=$HTTP_TOOLKIT_OVERRIDE_PATH/php export PHP_INI_SCAN_DIR="${PHP_INI_SCAN_DIR//:$INJECTED_PHP_INI_DIR/}" diff --git a/src/api/api-model.ts b/src/api/api-model.ts index c89f33d3..c94bfa4e 100644 --- a/src/api/api-model.ts +++ b/src/api/api-model.ts @@ -84,7 +84,7 @@ export class ApiModel { }; } - // Seperate purely to support the GQL API resolver structure + // Separate purely to support the GQL API resolver structure getDnsServers(proxyPort: number) { return withFallback(async () => { const dnsServer = await getDnsServer(proxyPort); @@ -140,7 +140,7 @@ export class ApiModel { }; } - // Seperate purely to support the GQL API resolver structure + // Separate purely to support the GQL API resolver structure async isInterceptorActive(id: string, proxyPort: number) { const interceptor = this.interceptors[id]; diff --git a/src/client/http-client.ts b/src/client/http-client.ts index 9d2c7c70..2c10c8ac 100644 --- a/src/client/http-client.ts +++ b/src/client/http-client.ts @@ -119,7 +119,7 @@ export class HttpClient { // Node supports sending raw headers via [key, value, key, value] array, but if we do // so with 'headers' above then we can't removeHeader first (to disable the defaults). - // Instead we remove headers and then manunally trigger the 'raw' write behaviour. + // Instead we remove headers and then manually trigger the 'raw' write behaviour. request.removeHeader('connection'); request.removeHeader('transfer-encoding'); diff --git a/src/interceptors/docker/docker-commands.ts b/src/interceptors/docker/docker-commands.ts index 10e5fc97..4eef1512 100644 --- a/src/interceptors/docker/docker-commands.ts +++ b/src/interceptors/docker/docker-commands.ts @@ -90,7 +90,7 @@ export async function transformContainerCreationConfig( baseImageConfig?.ContainerConfig; // Combine the image config with the container creation options. Most - // fields are overriden by container config, a couple are merged: + // fields are overridden by container config, a couple are merged: const currentConfig: Docker.ContainerCreateOptions = { ...imageContainerConfig, ...containerConfig, diff --git a/src/interceptors/docker/docker-tunnel-proxy.ts b/src/interceptors/docker/docker-tunnel-proxy.ts index 99a55b82..74d29fdb 100644 --- a/src/interceptors/docker/docker-tunnel-proxy.ts +++ b/src/interceptors/docker/docker-tunnel-proxy.ts @@ -19,7 +19,7 @@ const pullTunnelImage = (docker: Docker) => .then(stream => waitForDockerStream(docker, stream)); // Parallel mutation of a single Docker container's state is asking for trouble, so we use -// a simple lock over all operations (across all proxes, not per-proxy, just for simplicity/safety). +// a simple lock over all operations (across all proxies, not per-proxy, just for simplicity/safety). const containerMutex = new Mutex(); // Starts pulling the docker tunnel image, just to ensure it's available if we need it. diff --git a/src/interceptors/terminal/terminal-env-overrides.ts b/src/interceptors/terminal/terminal-env-overrides.ts index dc3165de..22d1fa2b 100644 --- a/src/interceptors/terminal/terminal-env-overrides.ts +++ b/src/interceptors/terminal/terminal-env-overrides.ts @@ -27,7 +27,7 @@ export function getTerminalEnvVars( | 'posix-runtime-inherit' | 'powershell-runtime-inherit', - // All 3 of the below must be overriden together, or not at all, to avoid + // All 3 of the below must be overridden together, or not at all, to avoid // mixing platforms & default (platform-specific) paths targetEnvConfig?: { httpToolkitHost: string, diff --git a/src/interceptors/terminal/terminal-scripts.ts b/src/interceptors/terminal/terminal-scripts.ts index 57515799..88237e49 100644 --- a/src/interceptors/terminal/terminal-scripts.ts +++ b/src/interceptors/terminal/terminal-scripts.ts @@ -86,7 +86,7 @@ export const getBashShellScript = (callbackUrl: string, env: { [name: string]: s fi if command -v curl >/dev/null 2>&1; then - # Let the HTTP Toolkit app know this ran succesfully + # Let the HTTP Toolkit app know this ran successfully (curl --noproxy '*' -X POST "${callbackUrl}" >/dev/null 2>&1 &) &> /dev/null fi @@ -117,7 +117,7 @@ export const getFishShellScript = (callbackUrl: string, env: { [name: string]: s end if command -v curl >/dev/null 2>&1 - # Let the HTTP Toolkit app know this ran succesfully + # Let the HTTP Toolkit app know this ran successfully curl --noproxy '*' -X POST "${callbackUrl}" >/dev/null 2>&1 & end @@ -157,7 +157,7 @@ ${ # Then we disable cert checks completely - all traffic will go to us, we'll handle HTTPS upstream $PSDefaultParameterValues["invoke-webrequest:SkipCertificateCheck"] = $True - # Let the HTTP Toolkit app know this ran succesfully + # Let the HTTP Toolkit app know this ran successfully Start-Job -ScriptBlock { Invoke-WebRequest "${callbackUrl}" -NoProxy -Method 'POST' } | out-null Write-Host "HTTP Toolkit interception enabled\`nTo stop intercepting type " -NoNewline