- Updated documentation

- Fixed issue with node-fetch abort signal
This commit is contained in:
Ferdi Koomen 2022-06-13 11:18:17 +02:00
parent 79bb027ee5
commit e180ba3f15
5 changed files with 3160 additions and 2956 deletions

View File

@ -9,8 +9,8 @@ If you want to generate the Angular based client then you can specify `--client
The Angular client has been tested with the following versions:
```
"@angular/common": "13.2.x",
"@angular/core": "13.2.x",
"@angular/common": "14.0.x",
"@angular/core": "14.0.x",
"rxjs": "7.5.x",
```

6065
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -66,30 +66,30 @@
"json-schema-ref-parser": "^9.0.9"
},
"devDependencies": {
"@angular-devkit/build-angular": "13.3.7",
"@angular/animations": "13.3.10",
"@angular/cli": "13.3.7",
"@angular/common": "13.3.10",
"@angular/compiler": "13.3.10",
"@angular/compiler-cli": "13.3.10",
"@angular/core": "13.3.10",
"@angular/forms": "13.3.10",
"@angular/platform-browser": "13.3.10",
"@angular/platform-browser-dynamic": "13.3.10",
"@angular/router": "13.3.10",
"@angular-devkit/build-angular": "14.0.1",
"@angular/animations": "14.0.1",
"@angular/cli": "14.0.1",
"@angular/common": "14.0.1",
"@angular/compiler": "14.0.1",
"@angular/compiler-cli": "14.0.1",
"@angular/core": "14.0.1",
"@angular/forms": "14.0.1",
"@angular/platform-browser": "14.0.1",
"@angular/platform-browser-dynamic": "14.0.1",
"@angular/router": "14.0.1",
"@babel/cli": "7.17.10",
"@babel/core": "7.18.2",
"@babel/core": "7.18.5",
"@babel/preset-env": "7.18.2",
"@babel/preset-typescript": "7.17.12",
"@rollup/plugin-commonjs": "22.0.0",
"@rollup/plugin-node-resolve": "13.3.0",
"@rollup/plugin-typescript": "8.3.2",
"@rollup/plugin-typescript": "8.3.3",
"@types/cross-spawn": "6.0.2",
"@types/express": "4.17.13",
"@types/fs-extra": "^9.0.13",
"@types/glob": "7.2.0",
"@types/jest": "28.1.1",
"@types/node": "17.0.40",
"@types/node": "17.0.42",
"@types/node-fetch": "2.6.1",
"@types/qs": "6.9.7",
"@typescript-eslint/eslint-plugin": "5.27.1",
@ -105,19 +105,18 @@
"express": "4.18.1",
"form-data": "4.0.0",
"glob": "8.0.3",
"jest": "28.1.0",
"jest-cli": "28.1.0",
"node-fetch": "2.6.7",
"jest": "28.1.1",
"jest-cli": "28.1.1",
"prettier": "2.6.2",
"puppeteer": "14.2.1",
"qs": "6.10.4",
"puppeteer": "14.3.0",
"qs": "6.10.5",
"rimraf": "3.0.2",
"rollup": "2.75.5",
"rollup": "2.75.6",
"rollup-plugin-terser": "7.0.2",
"rxjs": "7.5.5",
"ts-node": "10.8.1",
"tslib": "2.4.0",
"typescript": "4.6.4",
"typescript": "4.7.3",
"zone.js": "0.11.5"
},
"resolutions": {

View File

@ -1,7 +1,9 @@
{{>header}}
import FormData from 'form-data';
import fetch, { Headers, RequestInit, Response } from 'node-fetch';
import fetch, { Headers } from 'node-fetch';
import type { RequestInit, Response } from 'node-fetch';
import type { AbortSignal } from 'node-fetch/externals';
import { ApiError } from './ApiError';
import type { ApiRequestOptions } from './ApiRequestOptions';

View File

@ -12,7 +12,7 @@ export const sendRequest = async (
headers,
method: options.method,
body: body ?? formData,
signal: controller.signal,
signal: controller.signal as AbortSignal,
};
onCancel(() => controller.abort());