From d58021f099c737312f39d30551e8a4dec4dcdcfc Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Wed, 24 Feb 2016 14:52:27 -0800 Subject: [PATCH] hash: return SHA -> file --- lib/hash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hash.js b/lib/hash.js index 7a2c93f..176d104 100644 --- a/lib/hash.js +++ b/lib/hash.js @@ -11,7 +11,7 @@ import { createHash } from 'crypto'; export default async function hashes (files) { const entries = await Promise.all(files.map(async (file) => { const data = await fs.readFile(file); - return [file, hash(data)]; + return [hash(data), file]; })); return new Map(entries); }