Function
getReqOptionsNoProxyPatterns
(
options: RequestOptions | undefined,
)
Source from the content-addressed store, hash-verified
| 42 | } |
| 43 | |
| 44 | export function getReqOptionsNoProxyPatterns( |
| 45 | options: RequestOptions | undefined, |
| 46 | ): string[] { |
| 47 | return ( |
| 48 | options?.noProxy?.map((i) => i.trim().toLowerCase()).filter((i) => !!i) ?? |
| 49 | [] |
| 50 | ); |
| 51 | } |
| 52 | |
| 53 | export function patternMatchesHostname(hostname: string, pattern: string) { |
| 54 | // Split hostname and pattern to separate hostname and port |
Tested by
no test coverage detected