(scopeId: string)
| 78 | const sanitizeHostForPath = (hostname: string): string => |
| 79 | hostname.replaceAll(/[^a-z0-9.-]+/gi, "_"); |
| 80 | const scopeKeyForPath = (scopeId: string): string => |
| 81 | createHash("sha256").update(scopeId).digest("hex").slice(0, 24); |
| 82 | |
| 83 | const daemonRecordPath = (path: Path.Path, input: { hostname: string; port: number }): string => { |
| 84 | const host = sanitizeHostForPath(canonicalDaemonHost(input.hostname)); |
no test coverage detected