diff --git a/lib/hash.js b/lib/hash.js index 1249420..8d7d3fd 100644 --- a/lib/hash.js +++ b/lib/hash.js @@ -9,9 +9,9 @@ import { readFile } from 'fs-promise'; */ export default async function hashes (files) { - const entries = await Promise.all(files.map(async (file) => { - const data = await readFile(file); - return [hash(data), file]; + const entries = await Promise.all(files.map(async (name) => { + const data = await readFile(name); + return [hash(data), { name, data }]; })); return new Map(entries); }