(host)
| 47849 | return host.substring(0, idx); |
| 47850 | } |
| 47851 | function getServerName(host) { |
| 47852 | if (!host) { |
| 47853 | return null; |
| 47854 | } |
| 47855 | assert2.strictEqual(typeof host, "string"); |
| 47856 | const servername = getHostname(host); |
| 47857 | if (net3.isIP(servername)) { |
| 47858 | return ""; |
| 47859 | } |
| 47860 | return servername; |
| 47861 | } |
| 47862 | function deepClone(obj) { |
| 47863 | return JSON.parse(JSON.stringify(obj)); |
| 47864 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…