@oclif/table
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -343,7 +343,6 @@ /* eslint-disable react/prop-types */ | ||
padding, | ||
value: column.column, | ||
value: headings[column.column] ?? column.column, | ||
width, | ||
}); | ||
const columnHeader = headings[text] ?? text; | ||
return `${acc}${' '.repeat(marginLeft)}${columnHeader}${' '.repeat(marginRight)}`; | ||
return `${acc}${' '.repeat(marginLeft)}${text}${' '.repeat(marginRight)}`; | ||
}, ''); | ||
@@ -416,3 +415,3 @@ console.log(headerString); | ||
export function printTables(tables, options) { | ||
if (tables.reduce((acc, table) => acc + table.data.length, 0) > 30_000) { | ||
if (tables.reduce((acc, table) => acc + table.data.length, 0) > 10_000) { | ||
throw new Error('The data is too large to print multiple tables. Please use `printTable` instead.'); | ||
@@ -419,0 +418,0 @@ } |
{ | ||
"name": "@oclif/table", | ||
"description": "Display table in terminal", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"author": "Salesforce", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/oclif/table/issues", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48562
1312