Skip to content

Commit

Permalink
chore(internal): codegen related update (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Dec 19, 2024
1 parent 70d727b commit 9a2ebaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export abstract class APIClient {
maxRetries = 2,
timeout = 60000, // 1 minute
httpAgent,
fetch: overridenFetch,
fetch: overriddenFetch,
}: {
baseURL: string;
maxRetries?: number | undefined;
Expand All @@ -176,7 +176,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 {
Expand Down
2 changes: 1 addition & 1 deletion tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ describe('instantiate client', () => {
expect(client.bearerToken).toBe('My Bearer Token');
});

test('with overriden environment variable arguments', () => {
test('with overridden environment variable arguments', () => {
// set options via env var
process.env['MIDDAY_ENGINE_API_KEY'] = 'another My Bearer Token';
const client = new Midday({ bearerToken: 'My Bearer Token' });
Expand Down

0 comments on commit 9a2ebaf

Please sign in to comment.