From ed64904c1ae2bddba987675041c829ca03737841 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 17 Dec 2024 17:26:24 +0000 Subject: [PATCH] chore(internal): fix some typos (#633) --- src/core.ts | 4 ++-- tests/index.test.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core.ts b/src/core.ts index 1ee74d2c..ea8d8dca 100644 --- a/src/core.ts +++ b/src/core.ts @@ -197,7 +197,7 @@ export abstract class APIClient { maxRetries = 2, timeout = 600000, // 10 minutes httpAgent, - fetch: overridenFetch, + fetch: overriddenFetch, }: { baseURL: string; maxRetries?: number | undefined; @@ -210,7 +210,7 @@ export abstract class APIClient { this.timeout = validatePositiveInteger('timeout', timeout); this.httpAgent = httpAgent; - this.fetch = overridenFetch ?? fetch; + this.fetch = overriddenFetch ?? fetch; } protected authHeaders(opts: FinalRequestOptions): Headers { diff --git a/tests/index.test.ts b/tests/index.test.ts index 0d4a6bba..b6398085 100644 --- a/tests/index.test.ts +++ b/tests/index.test.ts @@ -183,7 +183,7 @@ describe('instantiate client', () => { expect(client.apiKey).toBe('my-anthropic-api-key'); }); - test('with overriden environment variable arguments', () => { + test('with overridden environment variable arguments', () => { // set options via env var process.env['ANTHROPIC_API_KEY'] = 'another my-anthropic-api-key'; const client = new Anthropic({ apiKey: 'my-anthropic-api-key' });