Comparing version 0.6.0 to 0.6.1
{ | ||
"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 @@ } |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
2
41117
9
1
- Removedobject-assign@^4.1.0
- Removedobject-assign@4.1.1(transitive)