Skip to content

Commit

Permalink
Add globalAgentOptions property to IRequestOptions to mirror `typ…
Browse files Browse the repository at this point in the history
…ed-rest-client` (#610)

* Add globalAgentOptions property to IRequestOptions to mirror typed-rest-client

* Bump versions

---------

Co-authored-by: v-levockina <undefined>
  • Loading branch information
aleksandrlevochkin authored Sep 27, 2024
1 parent efcb995 commit d5bd85c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
6 changes: 6 additions & 0 deletions api/interfaces/common/VsoBaseInterfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ export interface IHttpClientResponse {
readBody(): Promise<string>;
}

export interface IHttpGlobalAgentOptions {
keepAlive?: boolean;
timeout?: number;
}

export interface IRequestOptions {
headers?: IHeaders;
socketTimeout?: number;
Expand All @@ -99,6 +104,7 @@ export interface IRequestOptions {
// Allows retries only on Read operations (since writes may not be idempotent)
allowRetries?: boolean;
maxRetries?: number;
globalAgentOptions?: IHttpGlobalAgentOptions;
}

export interface IProxyConfiguration {
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "azure-devops-node-api",
"description": "Node client for Azure DevOps and TFS REST APIs",
"version": "14.0.2",
"version": "14.1.0",
"main": "./WebApi.js",
"types": "./WebApi.d.ts",
"scripts": {
Expand All @@ -28,7 +28,7 @@
},
"dependencies": {
"tunnel": "0.0.6",
"typed-rest-client": "^2.0.1"
"typed-rest-client": "2.1.0"
},
"devDependencies": {
"@types/glob": "5.0.35",
Expand Down

0 comments on commit d5bd85c

Please sign in to comment.