File: 0006-ts-expect-error-changed.patch

package info (click to toggle)
node-proxy-agents 0~2025070717-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,932 kB
  • sloc: javascript: 5,805; makefile: 39
file content (17 lines) | stat: -rw-r--r-- 665 bytes parent folder | download | duplicates (3)
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);
 	}