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.0 to 0.6.1

9

package.json
{
"name": "cli-table3",
"version": "0.6.0",
"version": "0.6.1",
"description": "Pretty unicode tables for the command line. Based on the original cli-table.",

@@ -16,3 +16,2 @@ "main": "index.js",

"dependencies": {
"object-assign": "^4.1.0",
"string-width": "^4.2.0"

@@ -25,9 +24,9 @@ },

"eslint-plugin-prettier": "^3.0.0",
"jest": "^24.0.0",
"jest": "^25.2.4",
"jest-runner-eslint": "^0.7.0",
"lerna-changelog": "^1.0.1",
"prettier": "2.0.2"
"prettier": "2.3.2"
},
"optionalDependencies": {
"colors": "^1.1.2"
"colors": "1.4.0"
},

@@ -34,0 +33,0 @@ "scripts": {

@@ -191,3 +191,3 @@ cli-table3

- James Talmage - author <james.talmage@jrtechnical.com> ([jamestalmage](https://github.com/jamestalmage))
- Guillermo Rauch - author of the original cli-table <guillermo@learnboost.com> ([Guille](https://github.com/guille))
- Guillermo Rauch - author of the original cli-table <guillermo@learnboost.com> ([Rauchg](https://github.com/rauchg))

@@ -194,0 +194,0 @@ ## License

@@ -1,2 +0,1 @@

const objectAssign = require('object-assign');
const Cell = require('./cell');

@@ -8,5 +7,6 @@ const { ColSpanCell, RowSpanCell } = Cell;

table.forEach(function (row, rowIndex) {
let prevCell = null;
row.forEach(function (cell, columnIndex) {
cell.y = rowIndex;
cell.x = columnIndex;
cell.x = prevCell ? prevCell.x + 1 : columnIndex;
for (let y = rowIndex; y >= 0; y--) {

@@ -21,2 +21,3 @@ let row2 = table[y];

}
prevCell = cell;
}

@@ -229,3 +230,3 @@ });

objectAssign(vals, result);
Object.assign(vals, result);
for (let j = 0; j < vals.length; j++) {

@@ -232,0 +233,0 @@ vals[j] = Math.max(forcedMin, vals[j] || 0);

@@ -1,2 +0,1 @@

const objectAssign = require('object-assign');
const stringWidth = require('string-width');

@@ -238,5 +237,5 @@

defaults = defaults || defaultOptions();
let ret = objectAssign({}, defaults, options);
ret.chars = objectAssign({}, defaults.chars, options.chars);
ret.style = objectAssign({}, defaults.style, options.style);
let ret = Object.assign({}, defaults, options);
ret.chars = Object.assign({}, defaults.chars, options.chars);
ret.style = Object.assign({}, defaults.style, options.style);
return ret;

@@ -290,3 +289,3 @@ }

state = readState(line);
let temp = objectAssign({}, state);
let temp = Object.assign({}, state);
output.push(unwindState(temp, line));

@@ -293,0 +292,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