File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ ' agent-base ' : patch
3+ ---
4+
5+ Fix compatibility with ` @types/node@20.19.2 ` .
Original file line number Diff line number Diff line change @@ -124,11 +124,8 @@ export abstract class Agent extends http.Agent {
124124
125125 // In order to properly update the socket pool, we need to call `getName()` on
126126 // the core `https.Agent` if it is a secureEndpoint.
127- getName ( options : AgentConnectOpts ) : string {
128- const secureEndpoint =
129- typeof options . secureEndpoint === 'boolean'
130- ? options . secureEndpoint
131- : this . isSecureEndpoint ( options ) ;
127+ getName ( options ?: AgentConnectOpts ) : string {
128+ const secureEndpoint = this . isSecureEndpoint ( options ) ;
132129 if ( secureEndpoint ) {
133130 // @ts -expect-error `getName()` isn't defined in `@types/node`
134131 return HttpsAgent . prototype . getName . call ( this , options ) ;
You can’t perform that action at this time.
0 commit comments