Comparing version 0.6.4 to 0.6.5
@@ -49,3 +49,3 @@ declare namespace CliTable3 { | ||
type CellValue = boolean | number | string | null | undefined; | ||
type CellValue = boolean | number | bigint | string | null | undefined; | ||
@@ -60,2 +60,4 @@ interface CellOptions { | ||
vAlign?: VerticalAlignment; | ||
wordWrap?: boolean; | ||
wrapOnWordBoundary?: boolean; | ||
href?: string; | ||
@@ -62,0 +64,0 @@ style?: { |
{ | ||
"name": "cli-table3", | ||
"version": "0.6.4", | ||
"version": "0.6.5", | ||
"description": "Pretty unicode tables for the command line. Based on the original cli-table.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -25,3 +25,3 @@ const { info, debug } = require('./debug'); | ||
setOptions(options) { | ||
if (['boolean', 'number', 'string'].indexOf(typeof options) !== -1) { | ||
if (['boolean', 'number', 'bigint', 'string'].indexOf(typeof options) !== -1) { | ||
options = { content: '' + options }; | ||
@@ -32,3 +32,3 @@ } | ||
let content = options.content; | ||
if (['boolean', 'number', 'string'].indexOf(typeof content) !== -1) { | ||
if (['boolean', 'number', 'bigint', 'string'].indexOf(typeof content) !== -1) { | ||
this.content = String(content); | ||
@@ -35,0 +35,0 @@ } else if (!content) { |
@@ -196,3 +196,11 @@ const stringWidth = require('string-width'); | ||
return ret + truncateChar; | ||
ret += truncateChar; | ||
const hrefTag = '\x1B]8;;\x07'; | ||
if (str.includes(hrefTag) && !ret.includes(hrefTag)) { | ||
ret += hrefTag; | ||
} | ||
return ret; | ||
} | ||
@@ -199,0 +207,0 @@ |
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
46198
1100