Comparing version 0.4.1 to 0.4.2
@@ -1,3 +0,9 @@ | ||
# [Unreleased](https://github.com/G-Rath/audit-app/compare/v0.4.1...HEAD) (YYYY-MM-DD) | ||
# [Unreleased](https://github.com/G-Rath/audit-app/compare/v0.4.2...HEAD) (YYYY-MM-DD) | ||
# [0.4.2](https://github.com/G-Rath/audit-app/compare/v0.4.1...v0.4.2) (2020-09-26) | ||
### Bug fixes | ||
- replace use of `flatMap` to support lower versions of node ([86083810][]) | ||
# [0.4.1](https://github.com/G-Rath/audit-app/compare/v0.4.0...v0.4.1) (2020-09-20) | ||
@@ -50,2 +56,3 @@ | ||
[86083810]: https://github.com/G-Rath/audit-app/commit/86083810 | ||
[90ae6214]: https://github.com/G-Rath/audit-app/commit/90ae6214 | ||
@@ -52,0 +59,0 @@ [9a143e24]: https://github.com/G-Rath/audit-app/commit/9a143e24 |
@@ -74,9 +74,9 @@ "use strict"; | ||
const rowSpacer = buildTableSpacer(BoxChar.LightVerticalAndRight, maxLabelWidth, BoxChar.LightVerticalAndHorizontal, maxValueWidth, BoxChar.LightVerticalAndLeft); | ||
return warpInTopAndBottomBorders(maxLabelWidth, maxValueWidth, contents.flatMap(([label, value], index) => { | ||
return warpInTopAndBottomBorders(maxLabelWidth, maxValueWidth, contents.reduce((acc, [label, value], index) => { | ||
const lines = wrap(pad(value), maxValueWidth); | ||
return [ | ||
return acc.concat([ | ||
index && rowSpacer, | ||
...lines.map((v, i) => createRow([maxLabelWidth, i === 0 ? pad(label) : ''], [maxValueWidth, pad(v)]).join('')) | ||
].filter((s) => typeof s === 'string'); | ||
})); | ||
].filter((s) => typeof s === 'string')); | ||
}, [])); | ||
}; | ||
@@ -83,0 +83,0 @@ const severityColors = { |
@@ -38,3 +38,3 @@ "use strict"; | ||
ignored, missing] = Object.entries(results.advisories) | ||
.flatMap(([, advisory]) => advisory.findings.flatMap(finding => finding.paths.map(path => `${advisory.id}|${path}`))) | ||
.reduce((paths, [, advisory]) => paths.concat(advisory.findings.reduce((acc, finding) => acc.concat(finding.paths.map(path => `${advisory.id}|${path}`)), [])), []) | ||
.reduce((sorts, path) => { | ||
@@ -41,0 +41,0 @@ const ignoreIndex = sorts[2].indexOf(path); |
{ | ||
"name": "audit-app", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "A cli tool for auditing apps & packages using their respective package managers.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
38960