Skip to content

Commit

Permalink
deps: cli-table3@0.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Feb 1, 2022
1 parent 1cb107d commit e198ac0
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 27 deletions.
9 changes: 4 additions & 5 deletions node_modules/cli-table3/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cli-table3",
"version": "0.6.0",
"version": "0.6.1",
"description": "Pretty unicode tables for the command line. Based on the original cli-table.",
"main": "index.js",
"types": "index.d.ts",
Expand All @@ -13,21 +13,20 @@
"test": "test"
},
"dependencies": {
"object-assign": "^4.1.0",
"string-width": "^4.2.0"
},
"devDependencies": {
"ansi-256-colors": "^1.1.0",
"cli-table": "^0.3.1",
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-prettier": "^3.0.0",
"jest": "^24.0.0",
"jest": "^25.2.4",
"jest-runner-eslint": "^0.7.0",
"lerna-changelog": "^1.0.1",
"prettier": "2.0.2"
"prettier": "2.3.2"
},
"optionalDependencies": {
"colors": "^1.1.2"
"colors": "1.4.0"
},
"scripts": {
"changelog": "lerna-changelog",
Expand Down
7 changes: 4 additions & 3 deletions node_modules/cli-table3/src/layout-manager.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const objectAssign = require('object-assign');
const Cell = require('./cell');
const { ColSpanCell, RowSpanCell } = Cell;

(function () {
function layoutTable(table) {
table.forEach(function (row, rowIndex) {
let prevCell = null;
row.forEach(function (cell, columnIndex) {
cell.y = rowIndex;
cell.x = columnIndex;
cell.x = prevCell ? prevCell.x + 1 : columnIndex;
for (let y = rowIndex; y >= 0; y--) {
let row2 = table[y];
let xMax = y === rowIndex ? columnIndex : row2.length;
Expand All @@ -17,6 +17,7 @@ const { ColSpanCell, RowSpanCell } = Cell;
cell.x++;
}
}
prevCell = cell;
}
});
});
Expand Down Expand Up @@ -224,7 +225,7 @@ function makeComputeWidths(colSpan, desiredWidth, x, forcedMin) {
}
}

objectAssign(vals, result);
Object.assign(vals, result);
for (let j = 0; j < vals.length; j++) {
vals[j] = Math.max(forcedMin, vals[j] || 0);
}
Expand Down
9 changes: 4 additions & 5 deletions node_modules/cli-table3/src/utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const objectAssign = require('object-assign');
const stringWidth = require('string-width');

function codeRegex(capture) {
Expand Down Expand Up @@ -235,9 +234,9 @@ function defaultOptions() {
function mergeOptions(options, defaults) {
options = options || {};
defaults = defaults || defaultOptions();
let ret = objectAssign({}, defaults, options);
ret.chars = objectAssign({}, defaults.chars, options.chars);
ret.style = objectAssign({}, defaults.style, options.style);
let ret = Object.assign({}, defaults, options);
ret.chars = Object.assign({}, defaults.chars, options.chars);
ret.style = Object.assign({}, defaults.style, options.style);
return ret;
}

Expand Down Expand Up @@ -286,7 +285,7 @@ function colorizeLines(input) {
for (let i = 0; i < input.length; i++) {
let line = rewindState(state, input[i]);
state = readState(line);
let temp = objectAssign({}, state);
let temp = Object.assign({}, state);
output.push(unwindState(temp, line));
}
return output;
Expand Down
25 changes: 12 additions & 13 deletions package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"chalk": "^4.1.2",
"chownr": "^2.0.0",
"cli-columns": "^4.0.0",
"cli-table3": "^0.6.0",
"cli-table3": "^0.6.1",
"columnify": "~1.5.4",
"fastest-levenshtein": "^1.0.12",
"glob": "^7.2.0",
Expand Down Expand Up @@ -1862,19 +1862,18 @@
}
},
"node_modules/cli-table3": {
"version": "0.6.0",
"resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.0.tgz",
"integrity": "sha512-gnB85c3MGC7Nm9I/FkiasNBOKjOiO1RNuXXarQms37q4QMpWdlbBgD/VnOStA2faG1dpXMv31RFApjX1/QdgWQ==",
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.1.tgz",
"integrity": "sha512-w0q/enDHhPLq44ovMGdQeeDLvwxwavsJX7oQGYt/LrBlYsyaxyDnp6z3QzFut/6kLLKnlcUVJLrpB7KBfgG/RA==",
"inBundle": true,
"dependencies": {
"object-assign": "^4.1.0",
"string-width": "^4.2.0"
},
"engines": {
"node": "10.* || >= 12.*"
},
"optionalDependencies": {
"colors": "^1.1.2"
"colors": "1.4.0"
}
},
"node_modules/cli-table3/node_modules/ansi-regex": {
Expand Down Expand Up @@ -5843,7 +5842,7 @@
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
"integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=",
"inBundle": true,
"dev": true,
"engines": {
"node": ">=0.10.0"
}
Expand Down Expand Up @@ -12270,12 +12269,11 @@
}
},
"cli-table3": {
"version": "0.6.0",
"resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.0.tgz",
"integrity": "sha512-gnB85c3MGC7Nm9I/FkiasNBOKjOiO1RNuXXarQms37q4QMpWdlbBgD/VnOStA2faG1dpXMv31RFApjX1/QdgWQ==",
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.1.tgz",
"integrity": "sha512-w0q/enDHhPLq44ovMGdQeeDLvwxwavsJX7oQGYt/LrBlYsyaxyDnp6z3QzFut/6kLLKnlcUVJLrpB7KBfgG/RA==",
"requires": {
"colors": "^1.1.2",
"object-assign": "^4.1.0",
"colors": "1.4.0",
"string-width": "^4.2.0"
},
"dependencies": {
Expand Down Expand Up @@ -15415,7 +15413,8 @@
"object-assign": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
"integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM="
"integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=",
"dev": true
},
"object-inspect": {
"version": "1.11.1",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"chalk": "^4.1.2",
"chownr": "^2.0.0",
"cli-columns": "^4.0.0",
"cli-table3": "^0.6.0",
"cli-table3": "^0.6.1",
"columnify": "~1.5.4",
"fastest-levenshtein": "^1.0.12",
"glob": "^7.2.0",
Expand Down

0 comments on commit e198ac0

Please sign in to comment.