1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Description: @types/node 20.19.14 changed the type of HttpsAgent
Forwarded: https://github.com/TooTallNate/proxy-agents/issues/379
Last-Update: 2025-08-22
Author: Jérémy Lal <kapouer@melix.org>
--- a/packages/agent-base/src/index.ts
+++ b/packages/agent-base/src/index.ts
@@ -127,10 +127,8 @@
getName(options?: AgentConnectOpts): string {
const secureEndpoint = this.isSecureEndpoint(options);
if (secureEndpoint) {
- // @ts-expect-error `getName()` isn't defined in `@types/node`
return HttpsAgent.prototype.getName.call(this, options);
}
- // @ts-expect-error `getName()` isn't defined in `@types/node`
return super.getName(options);
}
|