(dir: string)
| 82 | } |
| 83 | |
| 84 | function hashDir(dir: string): string { |
| 85 | return crypto.createHash("md5").update(canonicalizeDir(dir)).digest("hex"); |
| 86 | } |
| 87 | |
| 88 | function getEntryPathForCanonicalDir(dir: string): string { |
| 89 | return path.join(REGISTRY_DIR, `${hashDir(dir)}.json`); |
no test coverage detected