Skip to content

Commit

Permalink
Replace flatten (#4371)
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore authored Dec 29, 2024
1 parent e027097 commit 015e58a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
3 changes: 1 addition & 2 deletions lib/plugins/text/textBuilder.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import table from 'text-table';
import flatten from 'lodash.flatten';
import clic from 'cli-color';
import chunk from 'lodash.chunk';

Expand Down Expand Up @@ -37,7 +36,7 @@ function getHeader(context, options) {
}

function getBoxes(metrics, html) {
return flatten(chunk(summaryBoxesSetup(metrics, html).filter(Boolean), 3));
return chunk(summaryBoxesSetup(metrics, html).filter(Boolean), 3).flat();
}

// foo bar -> fb
Expand Down
8 changes: 1 addition & 7 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@
"junit-report-builder": "3.2.1",
"lodash.chunk": "4.2.0",
"lodash.clonedeep": "4.5.0",
"lodash.flatten": "4.4.0",
"lodash.foreach": "4.5.0",
"lodash.get": "4.4.2",
"lodash.isempty": "4.4.0",
Expand Down

0 comments on commit 015e58a

Please sign in to comment.