Skip to content

Commit 0ef4960

Browse files
committed
1 parent ad8626e commit 0ef4960

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

node_modules/cli-table3/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cli-table3",
3-
"version": "0.6.2",
3+
"version": "0.6.3",
44
"description": "Pretty unicode tables for the command line. Based on the original cli-table.",
55
"main": "index.js",
66
"types": "index.d.ts",

node_modules/cli-table3/src/cell.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ class Cell {
7373
}
7474

7575
computeLines(tableOptions) {
76-
if (this.fixedWidth && (tableOptions.wordWrap || tableOptions.textWrap)) {
76+
const tableWordWrap = tableOptions.wordWrap || tableOptions.textWrap;
77+
const { wordWrap = tableWordWrap } = this.options;
78+
if (this.fixedWidth && wordWrap) {
7779
this.fixedWidth -= this.paddingLeft + this.paddingRight;
7880
if (this.colSpan) {
7981
let i = 1;
@@ -82,7 +84,8 @@ class Cell {
8284
i++;
8385
}
8486
}
85-
const { wrapOnWordBoundary = true } = tableOptions;
87+
const { wrapOnWordBoundary: tableWrapOnWordBoundary = true } = tableOptions;
88+
const { wrapOnWordBoundary = tableWrapOnWordBoundary } = this.options;
8689
return this.wrapLines(utils.wordWrap(this.fixedWidth, this.content, wrapOnWordBoundary));
8790
}
8891
return this.wrapLines(this.content.split('\n'));

package-lock.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
"cacache": "^17.0.1",
9898
"chalk": "^4.1.2",
9999
"cli-columns": "^4.0.0",
100-
"cli-table3": "^0.6.2",
100+
"cli-table3": "^0.6.3",
101101
"columnify": "^1.6.0",
102102
"fastest-levenshtein": "^1.0.16",
103103
"fs-minipass": "^2.1.0",
@@ -3310,9 +3310,10 @@
33103310
}
33113311
},
33123312
"node_modules/cli-table3": {
3313-
"version": "0.6.2",
3313+
"version": "0.6.3",
3314+
"resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.3.tgz",
3315+
"integrity": "sha512-w5Jac5SykAeZJKntOxJCrm63Eg5/4dhMWIcuTbo9rpE+brgaSZo0RuNJZeOyMgsUdhDeojvgyQLmjI+K50ZGyg==",
33143316
"inBundle": true,
3315-
"license": "MIT",
33163317
"dependencies": {
33173318
"string-width": "^4.2.0"
33183319
},

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"cacache": "^17.0.1",
6868
"chalk": "^4.1.2",
6969
"cli-columns": "^4.0.0",
70-
"cli-table3": "^0.6.2",
70+
"cli-table3": "^0.6.3",
7171
"columnify": "^1.6.0",
7272
"fastest-levenshtein": "^1.0.16",
7373
"fs-minipass": "^2.1.0",

0 commit comments

Comments
 (0)