chore(package): update xo to version 0.23.0

This commit is contained in:
greenkeeper[bot]
2018-09-03 16:54:31 -04:00
committed by Pierre Vanduynslager
parent 42e9d1192f
commit fa62d427b6
11 changed files with 52 additions and 52 deletions
+4 -4
View File
@@ -36,12 +36,12 @@ module.exports = (steps, {settleAll = false, getNextInput = identity, transform
// Call the step with the input computed at the end of the previous iteration and save intermediary result
result = await transform(await step(lastInput), step, lastInput);
results.push(result);
} catch (err) {
} catch (error) {
if (settleAll) {
errors.push(...extractErrors(err));
result = err;
errors.push(...extractErrors(error));
result = error;
} else {
throw err;
throw error;
}
}
// Prepare input for the next step, passing the input of the last iteration (or initial parameter for the first iteration) and the result of the current one