Function: hashFiles()
hashFiles(
files,hashContent):Record<string,string>
Defined in: packages/core/src/domain/services/hash-files.ts:11
Hashes file contents using the supplied hash function.
Returns a map of path to hash string for each input file. An empty input object produces an empty result object.
Parameters
files
Record<string, string>
A map of file path to file content (UTF-8 string)
hashContent
(content) => string
Function that computes a content hash string (e.g. sha256:…)
Returns
Record<string, string>
A map of file path to hash string for each entry