agent-base
Advanced tools
Comparing version 6.0.1 to 6.0.2
@@ -45,2 +45,3 @@ /// <reference types="node" /> | ||
maxFreeSockets: number; | ||
maxTotalSockets: number; | ||
maxSockets: number; | ||
@@ -50,2 +51,5 @@ sockets: { | ||
}; | ||
freeSockets: { | ||
[key: string]: net.Socket[]; | ||
}; | ||
requests: { | ||
@@ -52,0 +56,0 @@ [key: string]: http.IncomingMessage[]; |
@@ -16,3 +16,3 @@ "use strict"; | ||
return false; | ||
return stack.split('\n').some(l => l.indexOf('(https.js:') !== -1); | ||
return stack.split('\n').some(l => l.indexOf('(https.js:') !== -1 || l.indexOf('node:https:') !== -1); | ||
} | ||
@@ -49,3 +49,5 @@ function createAgent(callback, opts) { | ||
this.maxSockets = 1; | ||
this.maxTotalSockets = Infinity; | ||
this.sockets = {}; | ||
this.freeSockets = {}; | ||
this.requests = {}; | ||
@@ -52,0 +54,0 @@ this.options = {}; |
{ | ||
"name": "agent-base", | ||
"version": "6.0.1", | ||
"version": "6.0.2", | ||
"description": "Turn a function into an `http.Agent` instance", | ||
@@ -41,3 +41,3 @@ "main": "dist/src/index", | ||
"@types/mocha": "^5.2.7", | ||
"@types/node": "^12.12.17", | ||
"@types/node": "^14.0.20", | ||
"@types/semver": "^7.1.0", | ||
@@ -44,0 +44,0 @@ "@types/ws": "^6.0.3", |
@@ -18,3 +18,3 @@ agent-base | ||
* [`pac-proxy-agent`][pac-proxy-agent]: A PAC file proxy `http.Agent` implementation for HTTP and HTTPS | ||
* [`socks-proxy-agent`][socks-proxy-agent]: A SOCKS (v4a) proxy `http.Agent` implementation for HTTP and HTTPS | ||
* [`socks-proxy-agent`][socks-proxy-agent]: A SOCKS proxy `http.Agent` implementation for HTTP and HTTPS | ||
@@ -21,0 +21,0 @@ |
@@ -18,3 +18,3 @@ import net from 'net'; | ||
if (typeof stack !== 'string') return false; | ||
return stack.split('\n').some(l => l.indexOf('(https.js:') !== -1); | ||
return stack.split('\n').some(l => l.indexOf('(https.js:') !== -1 || l.indexOf('node:https:') !== -1); | ||
} | ||
@@ -95,2 +95,3 @@ | ||
public maxFreeSockets: number; | ||
public maxTotalSockets: number; | ||
public maxSockets: number; | ||
@@ -100,2 +101,5 @@ public sockets: { | ||
}; | ||
public freeSockets: { | ||
[key: string]: net.Socket[]; | ||
}; | ||
public requests: { | ||
@@ -132,3 +136,5 @@ [key: string]: http.IncomingMessage[]; | ||
this.maxSockets = 1; | ||
this.maxTotalSockets = Infinity; | ||
this.sockets = {}; | ||
this.freeSockets = {}; | ||
this.requests = {}; | ||
@@ -135,0 +141,0 @@ this.options = {}; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34582
627