File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -111,9 +111,7 @@ class Agent extends http.Agent {
111
111
// In order to properly update the socket pool, we need to call `getName()` on
112
112
// the core `https.Agent` if it is a secureEndpoint.
113
113
getName ( options ) {
114
- const secureEndpoint = typeof options . secureEndpoint === 'boolean'
115
- ? options . secureEndpoint
116
- : this . isSecureEndpoint ( options ) ;
114
+ const secureEndpoint = this . isSecureEndpoint ( options ) ;
117
115
if ( secureEndpoint ) {
118
116
// @ts -expect-error `getName()` isn't defined in `@types/node`
119
117
return https_1 . Agent . prototype . getName . call ( this , options ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " agent-base" ,
3
- "version" : " 7.1.3 " ,
3
+ "version" : " 7.1.4 " ,
4
4
"description" : " Turn a function into an `http.Agent` instance" ,
5
5
"main" : " ./dist/index.js" ,
6
6
"types" : " ./dist/index.d.ts" ,
Original file line number Diff line number Diff line change 5171
5171
}
5172
5172
},
5173
5173
"node_modules/agent-base": {
5174
- "version": "7.1.3 ",
5175
- "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.3 .tgz",
5176
- "integrity": "sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw ==",
5174
+ "version": "7.1.4 ",
5175
+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4 .tgz",
5176
+ "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ ==",
5177
5177
"inBundle": true,
5178
5178
"license": "MIT",
5179
5179
"engines": {
You can’t perform that action at this time.
0 commit comments