Skip to content

Commit d5bd85c

Browse files
Add globalAgentOptions property to IRequestOptions to mirror typed-rest-client (#610)
* Add globalAgentOptions property to IRequestOptions to mirror typed-rest-client * Bump versions --------- Co-authored-by: v-levockina <undefined>
1 parent efcb995 commit d5bd85c

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

api/interfaces/common/VsoBaseInterfaces.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ export interface IHttpClientResponse {
8484
readBody(): Promise<string>;
8585
}
8686

87+
export interface IHttpGlobalAgentOptions {
88+
keepAlive?: boolean;
89+
timeout?: number;
90+
}
91+
8792
export interface IRequestOptions {
8893
headers?: IHeaders;
8994
socketTimeout?: number;
@@ -99,6 +104,7 @@ export interface IRequestOptions {
99104
// Allows retries only on Read operations (since writes may not be idempotent)
100105
allowRetries?: boolean;
101106
maxRetries?: number;
107+
globalAgentOptions?: IHttpGlobalAgentOptions;
102108
}
103109

104110
export interface IProxyConfiguration {

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "azure-devops-node-api",
33
"description": "Node client for Azure DevOps and TFS REST APIs",
4-
"version": "14.0.2",
4+
"version": "14.1.0",
55
"main": "./WebApi.js",
66
"types": "./WebApi.d.ts",
77
"scripts": {
@@ -28,7 +28,7 @@
2828
},
2929
"dependencies": {
3030
"tunnel": "0.0.6",
31-
"typed-rest-client": "^2.0.1"
31+
"typed-rest-client": "2.1.0"
3232
},
3333
"devDependencies": {
3434
"@types/glob": "5.0.35",

0 commit comments

Comments
 (0)