Skip to content

Commit

Permalink
fix: use lodash's _.values() to drop the dependency on object.values (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
realityking authored and gajus committed Sep 4, 2018
1 parent 32db001 commit 83b3b84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"dependencies": {
"ajv": "^6.5.3",
"lodash": "^4.17.10",
"object.values": "^1.0.4",
"slice-ansi": "1.0.0",
"string-width": "^2.1.1"
},
Expand Down
5 changes: 2 additions & 3 deletions src/createStream.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import _ from 'lodash';
import values from 'object.values';
import makeStreamConfig from './makeStreamConfig';
import drawRow from './drawRow';
import {
Expand Down Expand Up @@ -94,8 +93,8 @@ const append = (row, columnWidthIndex, config) => {
export default (userConfig = {}) => {
const config = makeStreamConfig(userConfig);

// @todo Drop 'object.values' dependency when Node.js v6 support is dropped.
const columnWidthIndex = values(_.mapValues(config.columns, (column) => {
// @todo Use 'Object.values' when Node.js v6 support is dropped.
const columnWidthIndex = _.values(_.mapValues(config.columns, (column) => {
return column.width + column.paddingLeft + column.paddingRight;
}));

Expand Down

0 comments on commit 83b3b84

Please sign in to comment.