Skip to content

Commit dfc2b6d

Browse files
committed
Remove dependency on node-fetch and form-data
1 parent c8cf2ec commit dfc2b6d

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

.npmrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
//registry.npmjs.org/
2+
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}
3+
@zuplo:registry=https://npm.pkg.github.com

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "openapi-typescript-codegen",
2+
"name": "@zuplo/openapi-typescript-codegen",
33
"version": "0.23.0",
44
"description": "Library that generates Typescript clients based on the OpenAPI specification.",
55
"author": "Ferdi Koomen",
@@ -120,7 +120,7 @@
120120
"typescript": "4.8.4",
121121
"zone.js": "0.11.8"
122122
},
123-
"overrides" : {
123+
"overrides": {
124124
"rollup": "3.2.3"
125125
}
126126
}

src/templates/core/node/request.hbs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
{{>header}}
22

3-
import FormData from 'form-data';
4-
import fetch, { Headers } from 'node-fetch';
5-
import type { RequestInit, Response } from 'node-fetch';
6-
import type { AbortSignal } from 'node-fetch/externals';
7-
83
import { ApiError } from './ApiError';
94
import type { ApiRequestOptions } from './ApiRequestOptions';
105
import type { ApiResult } from './ApiResult';

0 commit comments

Comments
 (0)