Skip to content

Commit a172f1a

Browse files
chore(internal): codegen related update (#81)
1 parent 2329288 commit a172f1a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/core.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export abstract class APIClient {
163163
maxRetries = 2,
164164
timeout = 60000, // 1 minute
165165
httpAgent,
166-
fetch: overridenFetch,
166+
fetch: overriddenFetch,
167167
}: {
168168
baseURL: string;
169169
maxRetries?: number | undefined;
@@ -176,7 +176,7 @@ export abstract class APIClient {
176176
this.timeout = validatePositiveInteger('timeout', timeout);
177177
this.httpAgent = httpAgent;
178178

179-
this.fetch = overridenFetch ?? fetch;
179+
this.fetch = overriddenFetch ?? fetch;
180180
}
181181

182182
protected authHeaders(opts: FinalRequestOptions): Headers {

tests/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ describe('instantiate client', () => {
177177
expect(client.apiKey).toBe('My API Key');
178178
});
179179

180-
test('with overriden environment variable arguments', () => {
180+
test('with overridden environment variable arguments', () => {
181181
// set options via env var
182182
process.env['BROWSERBASE_API_KEY'] = 'another My API Key';
183183
const client = new Browserbase({ apiKey: 'My API Key' });

0 commit comments

Comments
 (0)