Skip to content

Commit 9120fd8

Browse files
committed
feat: Remove cross-fetch
1 parent 3e17452 commit 9120fd8

File tree

5 files changed

+16
-46
lines changed

5 files changed

+16
-46
lines changed

example/generated/GitHubV3RestApiClient.generated.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import qs from 'qs';
2-
import { fetch } from 'cross-fetch';
32

43
export type Root = {
54
readonly current_user_url: string;

example/generated/SwaggerPetstoreClient.generated.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import qs from 'qs';
2-
import { fetch } from 'cross-fetch';
32

43
export type Category = { readonly id?: number; readonly name?: string };
54

package-lock.json

Lines changed: 15 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
"dependencies": {
4343
"chalk": "^4.1.0",
4444
"commander": "^7.1.0",
45-
"cross-fetch": "^3.1.4",
4645
"get-uri": "^4.0.0",
4746
"json-pointer": "^0.6.2",
4847
"json-schema": "^0.3.0",
@@ -61,7 +60,7 @@
6160
"@types/jest": "^27.4.0",
6261
"@types/json-pointer": "^1.0.31",
6362
"@types/json-schema": "^7.0.7",
64-
"@types/node": "^14.18.1",
63+
"@types/node": "^20",
6564
"@types/qs": "^6.9.5",
6665
"@types/yaml": "^1.2.0",
6766
"@typescript-eslint/eslint-plugin": "^4.15.2",

src/generators/client/generate.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export const generate = ({
3434

3535
const code = `
3636
import qs from 'qs';
37-
import { fetch } from 'cross-fetch';
3837
3938
${context.generateCode()}
4039

0 commit comments

Comments
 (0)