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 authored and kellertk committed 2026-01-27 15:45:43 -08:00
1 parent 45e9b2361a
commit 569add8750
6 files changed
+36 -48

No files matched your search

+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;