fix: properly expose getProxyForUrl (introduced in #1482) (#1486)

* chore: use stricter typescript config

* fix: properly expose getProxyForUrl (in #1482)
This commit is contained in:
Tom Keller
2025-09-11 12:35:26 -07:00
committed by GitHub
parent 6b19f7ffe6
commit cea42985ac
6 changed files with 36 additions and 48 deletions
+3 -2
View File
@@ -18,9 +18,10 @@ export class ProxyResolver {
this.options = options;
}
getProxyForUrl(url: string, _req: http.ClientRequest): string {
// This method matches the interface expected by 'proxy-agent'. It is an arrow function to bind 'this'.
public readonly getProxyForUrl = (url: string, _req: http.ClientRequest): string => {
return this.getProxyForUrlOptions(url, this.options);
}
};
private getProxyForUrlOptions(url: string | URL, options?: ProxyOptions): string {
let parsedUrl: URL;