@npmcli/agent
Advanced tools
+10
-0
@@ -164,2 +164,12 @@ 'use strict' | ||
| keepSocketAlive (socket) { | ||
| const keepAlive = super.keepSocketAlive(socket) | ||
| if (keepAlive && this.#timeouts.idle) { | ||
| socket.setTimeout(this.#timeouts.idle) | ||
| } | ||
| return keepAlive | ||
| } | ||
| addRequest (request, options) { | ||
@@ -166,0 +176,0 @@ const proxy = this.#getProxy(options) |
+3
-3
| { | ||
| "name": "@npmcli/agent", | ||
| "version": "5.0.1", | ||
| "version": "5.0.2", | ||
| "description": "the http/https agent used by the npm cli", | ||
@@ -32,3 +32,3 @@ "main": "lib/index.js", | ||
| "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", | ||
| "version": "5.1.0", | ||
| "version": "5.1.1", | ||
| "publish": "true", | ||
@@ -46,3 +46,3 @@ "updateNpm": false | ||
| "@npmcli/eslint-config": "^7.0.0", | ||
| "@npmcli/template-oss": "5.1.0", | ||
| "@npmcli/template-oss": "5.1.1", | ||
| "ip-address": "^10.1.0", | ||
@@ -49,0 +49,0 @@ "minipass-fetch": "^6.0.0", |
19985
1.03%522
1.36%