File tree Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 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"  ,
Original file line number Diff line number Diff 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' ) ) ; 
Original file line number Diff line number Diff line change 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"  ,
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      },
Original file line number Diff line number Diff line change 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"  ,
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments