console-table-printer
Advanced tools
Comparing version 1.1.6 to 1.1.8
@@ -1,2 +0,2 @@ | ||
'use strict'; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -3,0 +3,0 @@ var console_table_printer_1 = require("./src/console-table-printer"); |
@@ -14,3 +14,3 @@ "use strict"; | ||
[table_constants_1.COLOR.white_bold]: "\x1b[01m", | ||
[table_constants_1.COLOR.reset]: "\x1b[0m", | ||
[table_constants_1.COLOR.reset]: "\x1b[0m" | ||
}; | ||
@@ -17,0 +17,0 @@ class ColoredConsoleLine { |
@@ -1,3 +0,3 @@ | ||
import { TableInternal } from './internal-table'; | ||
import { RowOptionsRaw } from './table-helpers'; | ||
import { TableInternal } from "./internal-table"; | ||
import { RowOptionsRaw } from "./table-helpers"; | ||
export declare class Table { | ||
@@ -4,0 +4,0 @@ table: TableInternal; |
@@ -1,3 +0,3 @@ | ||
import { TABLE_BORDER_STYLES, TABLE_STYLE_DETAILS } from './table-constants'; | ||
import { Column, Row, RowOptions } from './table-helpers'; | ||
import { TABLE_BORDER_STYLES, TABLE_STYLE_DETAILS } from "./table-constants"; | ||
import { Column, Row, RowOptions } from "./table-helpers"; | ||
export interface ComplexOptions { | ||
@@ -4,0 +4,0 @@ style: string; |
@@ -14,3 +14,3 @@ "use strict"; | ||
} | ||
else if (typeof options === 'object') { | ||
else if (typeof options === "object") { | ||
this.initDetailed(options); | ||
@@ -32,7 +32,12 @@ } | ||
initDetailed(options) { | ||
this.tableStyle = (options.style && table_constants_1.TABLE_STYLE[options.style]) || table_constants_1.TABLE_STYLE.thinBorder; | ||
this.columns = options.columns && options.columns.map(column => ({ | ||
name: column.name, | ||
alignment: (column.alignment && table_constants_1.COLUMN_ALIGNMENT[column.alignment]) || table_constants_1.COLUMN_ALIGNMENT.right | ||
})) || []; | ||
this.tableStyle = | ||
(options.style && table_constants_1.TABLE_STYLE[options.style]) || table_constants_1.TABLE_STYLE.thinBorder; | ||
this.columns = | ||
(options.columns && | ||
options.columns.map(column => ({ | ||
name: column.name, | ||
alignment: (column.alignment && table_constants_1.COLUMN_ALIGNMENT[column.alignment]) || | ||
table_constants_1.COLUMN_ALIGNMENT.right | ||
}))) || | ||
[]; | ||
} | ||
@@ -39,0 +44,0 @@ createColumnFromRow(text) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
; | ||
; | ||
var TABLE_BORDER_STYLES; | ||
@@ -11,3 +9,2 @@ (function (TABLE_BORDER_STYLES) { | ||
})(TABLE_BORDER_STYLES = exports.TABLE_BORDER_STYLES || (exports.TABLE_BORDER_STYLES = {})); | ||
; | ||
exports.TABLE_STYLE = { | ||
@@ -77,3 +74,2 @@ thinBorder: { | ||
})(COLUMN_ALIGNMENT = exports.COLUMN_ALIGNMENT || (exports.COLUMN_ALIGNMENT = {})); | ||
; | ||
var COLOR; | ||
@@ -93,2 +89,1 @@ (function (COLOR) { | ||
})(COLOR = exports.COLOR || (exports.COLOR = {})); | ||
; |
{ | ||
"name": "console-table-printer", | ||
"version": "1.1.6", | ||
"version": "1.1.8", | ||
"repository": "github:ayonious/console-table-printer", | ||
@@ -5,0 +5,0 @@ "description": "Printing pretty tables on console log", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
23628
0