Skip to content

Commit badd74b

Browse files
authored
Merge pull request #2583 from davidgamero/signal-support
abort signal support via regenerating on new openapigen commit
2 parents fa064bf + 3754a20 commit badd74b

File tree

6 files changed

+7
-15
lines changed

6 files changed

+7
-15
lines changed

settings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ export CLIENT_VERSION="0.8-SNAPSHOT"
3030
# Name of the release package
3131
export PACKAGE_NAME="@kubernetes/node-client"
3232

33-
export OPENAPI_GENERATOR_COMMIT=3e032bfcfd74b03f33fa5fb3d073286daf5cdbe1
33+
export OPENAPI_GENERATOR_COMMIT=d06ed32df0a30fe12a1c7ba98722c12e867b6060

src/gen/.openapi-generator/COMMIT

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

src/gen/http/http.ts

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/watch.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ export class Watch {
3939
const requestInit = await this.config.applyToFetchOptions({});
4040

4141
const controller = new AbortController();
42+
const timeoutSignal = AbortSignal.timeout(30000);
43+
requestInit.signal = AbortSignal.any([controller.signal, timeoutSignal]);
4244
requestInit.signal = controller.signal as AbortSignal;
4345
requestInit.method = 'GET';
44-
requestInit.timeout = 30000;
4546

4647
let doneCalled: boolean = false;
4748
const doneCallOnce = (err: any) => {

tsconfig-with-tests.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
{
22
"extends": "./tsconfig.json",
3-
"exclude": [],
4-
"compilerOptions": {
5-
"paths": {
6-
"node-fetch/externals": ["./node_modules/@types/node-fetch/externals.d.ts"]
7-
}
8-
}
3+
"exclude": []
94
}

tsconfig.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@
1616
"importHelpers": true,
1717
"skipLibCheck": true,
1818
"esModuleInterop": true,
19-
"useDefineForClassFields": false,
20-
"paths": {
21-
"node-fetch/externals": ["./node_modules/@types/node-fetch/externals.d.ts"]
22-
}
19+
"useDefineForClassFields": false
2320
// enable this in the future
2421
// "declarationMap": true
2522
},

0 commit comments

Comments
 (0)