Replace flatten (#4371)
This commit is contained in:
parent
e027097429
commit
015e58a001
|
|
@ -1,5 +1,4 @@
|
|||
import table from 'text-table';
|
||||
import flatten from 'lodash.flatten';
|
||||
import clic from 'cli-color';
|
||||
import chunk from 'lodash.chunk';
|
||||
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -33,7 +33,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",
|
||||
|
|
@ -7809,12 +7808,7 @@
|
|||
"node_modules/lodash.clonedeep": {
|
||||
"version": "4.5.0",
|
||||
"resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz",
|
||||
"integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8="
|
||||
},
|
||||
"node_modules/lodash.flatten": {
|
||||
"version": "4.4.0",
|
||||
"resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz",
|
||||
"integrity": "sha1-8xwiIlqWMtK7+OSt2+8kCqdlph8="
|
||||
"integrity": "sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ=="
|
||||
},
|
||||
"node_modules/lodash.foreach": {
|
||||
"version": "4.5.0",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue