Socket
Socket
Sign inDemoInstall

cli-table3

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-table3 - npm Package Compare versions

Comparing version 0.6.4 to 0.6.5

4

index.d.ts

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc