Skip to content

Commit d664f3f

Browse files
committed
fix: use block65 rest client native fetcher (again)
1 parent 328c8a0 commit d664f3f

File tree

10 files changed

+16
-16
lines changed

10 files changed

+16
-16
lines changed

__tests__/fixtures/openai/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* WARN: Do not edit directly.
55
*
6-
* Generated on 2024-05-27T10:51:18.299Z
6+
* Generated on 2024-05-27T10:54:46.817Z
77
*
88
*/
99
/** eslint-disable max-classes */

__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 2024-05-27T10:51:18.299Z
6+
* Generated on 2024-05-27T10:54:46.817Z
77
*
88
*/
99
import {
1010
RestServiceClient,
11-
createIsomorphicFetcher,
11+
createIsomorphicNativeFetcher,
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 = createIsomorphicFetcher(),
213+
fetcher = createIsomorphicNativeFetcher(),
214214
config?: RestServiceClientConfig,
215215
) {
216216
super(baseUrl, fetcher, config);

__tests__/fixtures/openai/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* WARN: Do not edit directly.
55
*
6-
* Generated on 2024-05-27T10:51:18.299Z
6+
* Generated on 2024-05-27T10:54:46.817Z
77
*
88
*/
99
import type { Jsonifiable } from 'type-fest';

__tests__/fixtures/petstore/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* WARN: Do not edit directly.
55
*
6-
* Generated on 2024-05-27T10:51:14.858Z
6+
* Generated on 2024-05-27T10:54:43.557Z
77
*
88
*/
99
/** eslint-disable max-classes */

__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 2024-05-27T10:51:14.858Z
6+
* Generated on 2024-05-27T10:54:43.557Z
77
*
88
*/
99
import {
1010
RestServiceClient,
11-
createIsomorphicFetcher,
11+
createIsomorphicNativeFetcher,
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 = createIsomorphicFetcher(),
35+
fetcher = createIsomorphicNativeFetcher(),
3636
config?: RestServiceClientConfig,
3737
) {
3838
super(baseUrl, fetcher, config);

__tests__/fixtures/petstore/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* WARN: Do not edit directly.
55
*
6-
* Generated on 2024-05-27T10:51:14.858Z
6+
* Generated on 2024-05-27T10:54:43.557Z
77
*
88
*/
99
import type { Jsonifiable } from 'type-fest';

__tests__/fixtures/test1/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* WARN: Do not edit directly.
55
*
6-
* Generated on 2024-05-27T10:51:16.043Z
6+
* Generated on 2024-05-27T10:54:44.720Z
77
*
88
*/
99
/** eslint-disable max-classes */

__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 2024-05-27T10:51:16.043Z
6+
* Generated on 2024-05-27T10:54:44.720Z
77
*
88
*/
99
import {
1010
RestServiceClient,
11-
createIsomorphicFetcher,
11+
createIsomorphicNativeFetcher,
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 = createIsomorphicFetcher(),
82+
fetcher = createIsomorphicNativeFetcher(),
8383
config?: RestServiceClientConfig,
8484
) {
8585
super(baseUrl, fetcher, config);

__tests__/fixtures/test1/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* WARN: Do not edit directly.
55
*
6-
* Generated on 2024-05-27T10:51:16.043Z
6+
* Generated on 2024-05-27T10:54:44.720Z
77
*
88
*/
99
import type { Jsonifiable } from 'type-fest';

lib/process-document.ts

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

609609
const serviceClientClassName = 'RestServiceClient';
610-
const fetcherName = 'createIsomorphicFetcher';
610+
const fetcherName = 'createIsomorphicNativeFetcher';
611611
const configType = 'RestServiceClientConfig';
612612

613613
clientFile.addImportDeclarations([

0 commit comments

Comments
 (0)