Socket
Socket
Sign inDemoInstall

columnify

Package Overview
Dependencies
5
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.5.1 to 1.5.2

26

columnify.js

@@ -1,5 +0,3 @@

'use strict';
"use strict";
var _toConsumableArray = function (arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; return arr2; } else { return Array.from(arr); } };
var wcwidth = require('./width');

@@ -38,3 +36,3 @@

module.exports = function (items) {
var options = arguments[1] === undefined ? {} : arguments[1];
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];

@@ -221,2 +219,3 @@ var columnConfigs = options.config || {};

});
// combine matching lines of each rows

@@ -232,3 +231,2 @@ var _loop = function (i) {

// combine matching lines of each rows
for (var i = 0; i < numLines; i++) {

@@ -248,14 +246,9 @@ _loop(i);

function mixin() {
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
if (Object.assign) {
return Object.assign.apply(Object, _toConsumableArray(args));
}return ObjectAssign.apply(undefined, _toConsumableArray(args));
if (Object.assign) return Object.assign.apply(Object, arguments);
return ObjectAssign.apply(undefined, arguments);
}
function ObjectAssign(target, firstSource) {
'use strict';
if (target === undefined || target === null) throw new TypeError('Cannot convert first argument to object');
"use strict";
if (target === undefined || target === null) throw new TypeError("Cannot convert first argument to object");

@@ -302,5 +295,4 @@ var to = Object(target);

function toArray(items, columnNames) {
if (Array.isArray(items)) {
return items;
}var rows = [];
if (Array.isArray(items)) return items;
var rows = [];
for (var key in items) {

@@ -307,0 +299,0 @@ var item = {};

{
"name": "columnify",
"version": "1.5.1",
"description": "Render data in text columns. supports in-column text-wrap.",
"version": "1.5.2",
"description": "Render data in text columns. Supports in-column text-wrap.",
"main": "columnify.js",

@@ -15,6 +15,6 @@ "scripts": {

"devDependencies": {
"babel": "^5.0.10",
"chalk": "^1.0.0",
"tap-spec": "^3.0.0",
"tape": "^4.0.0"
"babel": "^5.8.21",
"chalk": "^1.1.0",
"tap-spec": "^4.0.2",
"tape": "^4.0.3"
},

@@ -39,3 +39,3 @@ "repository": {

"dependencies": {
"strip-ansi": "^2.0.1",
"strip-ansi": "^3.0.0",
"wcwidth": "^1.0.0"

@@ -42,0 +42,0 @@ },

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc