(hostname)
| 38 | } |
| 39 | |
| 40 | function normalizeHostname(hostname) { |
| 41 | return String(hostname || "") |
| 42 | .trim() |
| 43 | .replace(/\.$/, "") |
| 44 | .toLowerCase(); |
| 45 | } |
| 46 | |
| 47 | function createLookupError(hostname) { |
| 48 | const error = new Error(`Validated DNS resolution not available for ${hostname}.`); |
no outgoing calls
no test coverage detected