mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-11-29 19:34:21 +01:00
* chore: use stricter typescript config * fix: properly expose getProxyForUrl (in #1482)
This commit is contained in:
1 parent
45e9b2361a
commit
569add8750
6 files changed
+36
-48
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user