Commit 0ef4960 1 parent ad8626e commit 0ef4960 Copy full SHA for 0ef4960
File tree 4 files changed +11
-7
lines changed
4 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " cli-table3" ,
3
- "version" : " 0.6.2 " ,
3
+ "version" : " 0.6.3 " ,
4
4
"description" : " Pretty unicode tables for the command line. Based on the original cli-table." ,
5
5
"main" : " index.js" ,
6
6
"types" : " index.d.ts" ,
Original file line number Diff line number Diff line change @@ -73,7 +73,9 @@ class Cell {
73
73
}
74
74
75
75
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 ) {
77
79
this . fixedWidth -= this . paddingLeft + this . paddingRight ;
78
80
if ( this . colSpan ) {
79
81
let i = 1 ;
@@ -82,7 +84,8 @@ class Cell {
82
84
i ++ ;
83
85
}
84
86
}
85
- const { wrapOnWordBoundary = true } = tableOptions ;
87
+ const { wrapOnWordBoundary : tableWrapOnWordBoundary = true } = tableOptions ;
88
+ const { wrapOnWordBoundary = tableWrapOnWordBoundary } = this . options ;
86
89
return this . wrapLines ( utils . wordWrap ( this . fixedWidth , this . content , wrapOnWordBoundary ) ) ;
87
90
}
88
91
return this . wrapLines ( this . content . split ( '\n' ) ) ;
Original file line number Diff line number Diff line change 97
97
"cacache" : " ^17.0.1" ,
98
98
"chalk" : " ^4.1.2" ,
99
99
"cli-columns" : " ^4.0.0" ,
100
- "cli-table3" : " ^0.6.2 " ,
100
+ "cli-table3" : " ^0.6.3 " ,
101
101
"columnify" : " ^1.6.0" ,
102
102
"fastest-levenshtein" : " ^1.0.16" ,
103
103
"fs-minipass" : " ^2.1.0" ,
3310
3310
}
3311
3311
},
3312
3312
"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==" ,
3314
3316
"inBundle" : true ,
3315
- "license" : " MIT" ,
3316
3317
"dependencies" : {
3317
3318
"string-width" : " ^4.2.0"
3318
3319
},
Original file line number Diff line number Diff line change 67
67
"cacache" : " ^17.0.1" ,
68
68
"chalk" : " ^4.1.2" ,
69
69
"cli-columns" : " ^4.0.0" ,
70
- "cli-table3" : " ^0.6.2 " ,
70
+ "cli-table3" : " ^0.6.3 " ,
71
71
"columnify" : " ^1.6.0" ,
72
72
"fastest-levenshtein" : " ^1.0.16" ,
73
73
"fs-minipass" : " ^2.1.0" ,
You can’t perform that action at this time.
0 commit comments