(root: string, path: string, getHash?: (p: string) => string)
| 57 | * transitive imports or files that are invalid or do not exist. |
| 58 | */ |
| 59 | export function getModuleHash(root: string, path: string, getHash?: (p: string) => string): string { |
| 60 | return getModuleHashInternal(root, path, getHash).digest("hex"); |
| 61 | } |
| 62 | |
| 63 | function getModuleHashInternal(root: string, path: string, getHash = (p: string) => getFileHash(root, p)): Hash { |
| 64 | const hash = createHash("sha256"); |
no test coverage detected