Skip to content

Commit 8ef9dfd

Browse files
committed
fix: use latest native fetcher from block65/res-client
1 parent 9792f49 commit 8ef9dfd

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

__tests__/fixtures/openai/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
*
44
* WARN: Do not edit directly.
55
*
6-
* Generated on 2023-12-14T06:34:27.220Z
6+
* Generated on 2024-05-27T10:18:55.926Z
77
*
88
*/
99
import {
1010
RestServiceClient,
11-
createIsomorphicNativeFetcher,
11+
createIsomorphicFetcher,
1212
type RestServiceClientConfig,
1313
} from '@block65/rest-client';
1414
import {
@@ -210,7 +210,7 @@ export class OpenAiApiRestClient extends RestServiceClient<
210210
> {
211211
constructor(
212212
baseUrl = new URL('https://api.openai.com/v1/'),
213-
fetcher = createIsomorphicNativeFetcher(),
213+
fetcher = createIsomorphicFetcher(),
214214
config?: RestServiceClientConfig,
215215
) {
216216
super(baseUrl, fetcher, config);

__tests__/fixtures/petstore/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
*
44
* WARN: Do not edit directly.
55
*
6-
* Generated on 2023-12-14T06:34:23.021Z
6+
* Generated on 2024-05-27T10:18:52.577Z
77
*
88
*/
99
import {
1010
RestServiceClient,
11-
createIsomorphicNativeFetcher,
11+
createIsomorphicFetcher,
1212
type RestServiceClientConfig,
1313
} from '@block65/rest-client';
1414
import {
@@ -32,7 +32,7 @@ export class SwaggerPetstoreRestClient extends RestServiceClient<
3232
> {
3333
constructor(
3434
baseUrl = new URL('http://petstore.swagger.io/api/'),
35-
fetcher = createIsomorphicNativeFetcher(),
35+
fetcher = createIsomorphicFetcher(),
3636
config?: RestServiceClientConfig,
3737
) {
3838
super(baseUrl, fetcher, config);

__tests__/fixtures/test1/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
*
44
* WARN: Do not edit directly.
55
*
6-
* Generated on 2023-12-14T06:34:24.294Z
6+
* Generated on 2024-05-27T10:18:53.761Z
77
*
88
*/
99
import {
1010
RestServiceClient,
11-
createIsomorphicNativeFetcher,
11+
createIsomorphicFetcher,
1212
type RestServiceClientConfig,
1313
} from '@block65/rest-client';
1414
import {
@@ -79,7 +79,7 @@ export class BillingServiceRestApiRestClient extends RestServiceClient<
7979
> {
8080
constructor(
8181
baseUrl = new URL('https://api.example.com/'),
82-
fetcher = createIsomorphicNativeFetcher(),
82+
fetcher = createIsomorphicFetcher(),
8383
config?: RestServiceClientConfig,
8484
) {
8585
super(baseUrl, fetcher, config);

lib/process-document.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ export async function processOpenApiDocument(
709709
: undefined;
710710

711711
const serviceClientClassName = 'RestServiceClient';
712-
const fetcherName = 'createIsomorphicNativeFetcher';
712+
const fetcherName = 'createIsomorphicFetcher';
713713
const configType = 'RestServiceClientConfig';
714714

715715
clientFile.addImportDeclarations([

0 commit comments

Comments
 (0)