From f3792d3a5c186b94b465fedf0a9ad57c27dd19ec Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Tue, 25 Jul 2017 17:46:52 +0200 Subject: [PATCH] Use more accurate names for some of the interpreted fields --- src/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index f881e07..f2ff6ea 100644 --- a/src/index.js +++ b/src/index.js @@ -54,12 +54,12 @@ function parseDerivation(text) { return { outputs: mapArray(root.items[0], (item) => { - return mapTuple(item, ["name", "path", "hashAlgorithm", "hash"]); + return mapTuple(item, ["name", "path", "expectedHashAlgorithm", "expectedHash"]); }), inputDerivations: mapArray(root.items[1], (item) => { - return mapTuple(item, ["path", "inputDerivations"], (value, i) => { + return mapTuple(item, ["path", "wantedOutputs"], (value, i) => { if (i === 1) { - /* An `array` of inputDerivations */ + /* An `array` of outputs */ return value.items; } else { return value;