Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
deps: cli-table3@0.6.3
  • Loading branch information
wraithgar committed Nov 2, 2022
1 parent 6b6dfca commit b89c19e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion node_modules/cli-table3/package.json
@@ -1,6 +1,6 @@
{
"name": "cli-table3",
"version": "0.6.2",
"version": "0.6.3",
"description": "Pretty unicode tables for the command line. Based on the original cli-table.",
"main": "index.js",
"types": "index.d.ts",
Expand Down
7 changes: 5 additions & 2 deletions node_modules/cli-table3/src/cell.js
Expand Up @@ -73,7 +73,9 @@ class Cell {
}

computeLines(tableOptions) {
if (this.fixedWidth && (tableOptions.wordWrap || tableOptions.textWrap)) {
const tableWordWrap = tableOptions.wordWrap || tableOptions.textWrap;
const { wordWrap = tableWordWrap } = this.options;
if (this.fixedWidth && wordWrap) {
this.fixedWidth -= this.paddingLeft + this.paddingRight;
if (this.colSpan) {
let i = 1;
Expand All @@ -82,7 +84,8 @@ class Cell {
i++;
}
}
const { wrapOnWordBoundary = true } = tableOptions;
const { wrapOnWordBoundary: tableWrapOnWordBoundary = true } = tableOptions;
const { wrapOnWordBoundary = tableWrapOnWordBoundary } = this.options;
return this.wrapLines(utils.wordWrap(this.fixedWidth, this.content, wrapOnWordBoundary));
}
return this.wrapLines(this.content.split('\n'));
Expand Down
7 changes: 4 additions & 3 deletions package-lock.json
Expand Up @@ -97,7 +97,7 @@
"cacache": "^17.0.1",
"chalk": "^4.1.2",
"cli-columns": "^4.0.0",
"cli-table3": "^0.6.2",
"cli-table3": "^0.6.3",
"columnify": "^1.6.0",
"fastest-levenshtein": "^1.0.16",
"fs-minipass": "^2.1.0",
Expand Down Expand Up @@ -3310,9 +3310,10 @@
}
},
"node_modules/cli-table3": {
"version": "0.6.2",
"version": "0.6.3",
"resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.3.tgz",
"integrity": "sha512-w5Jac5SykAeZJKntOxJCrm63Eg5/4dhMWIcuTbo9rpE+brgaSZo0RuNJZeOyMgsUdhDeojvgyQLmjI+K50ZGyg==",
"inBundle": true,
"license": "MIT",
"dependencies": {
"string-width": "^4.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -67,7 +67,7 @@
"cacache": "^17.0.1",
"chalk": "^4.1.2",
"cli-columns": "^4.0.0",
"cli-table3": "^0.6.2",
"cli-table3": "^0.6.3",
"columnify": "^1.6.0",
"fastest-levenshtein": "^1.0.16",
"fs-minipass": "^2.1.0",
Expand Down

0 comments on commit b89c19e

Please sign in to comment.