File tree 1 file changed +2
-2
lines changed
packages/@aws-cdk/cloudformation-diff/lib
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import * as table from 'table';
10
10
export function formatTable ( cells : string [ ] [ ] , columns : number | undefined ) : string {
11
11
return table . table ( cells , {
12
12
border : TABLE_BORDER_CHARACTERS ,
13
- columns : buildColumnConfig ( columns !== undefined ? calculcateColumnWidths ( cells , columns ) : undefined ) ,
13
+ columns : buildColumnConfig ( columns !== undefined ? calculateColumnWidths ( cells , columns ) : undefined ) ,
14
14
drawHorizontalLine : ( line ) => {
15
15
// Numbering like this: [line 0] [header = row[0]] [line 1] [row 1] [line 2] [content 2] [line 3]
16
16
return ( line < 2 || line === cells . length ) || lineBetween ( cells [ line - 1 ] , cells [ line ] ) ;
@@ -48,7 +48,7 @@ function buildColumnConfig(widths: number[] | undefined): { [index: number]: tab
48
48
* than the fair share is evenly distributed over all columns that exceed their
49
49
* fair share.
50
50
*/
51
- function calculcateColumnWidths ( rows : string [ ] [ ] , terminalWidth : number ) : number [ ] {
51
+ function calculateColumnWidths ( rows : string [ ] [ ] , terminalWidth : number ) : number [ ] {
52
52
// The terminal is sometimes reported to be 0. Also if the terminal is VERY narrow,
53
53
// just assume a reasonable minimum size.
54
54
terminalWidth = Math . max ( terminalWidth , 40 ) ;
You can’t perform that action at this time.
0 commit comments