Socket
Socket
Sign inDemoInstall

console.table

Package Overview
Dependencies
4
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.9.0 to 0.9.1

2

dist/console.table.js

@@ -10,3 +10,3 @@ (function () {

// if it is not OUR function, overwrite it
if (console.tabke === consoleTable) {
if (console.table === consoleTable) {
return;

@@ -13,0 +13,0 @@ }

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

!function(){"use strict";function a(){function a(a,b){return typeof b===a}function b(a,b){return Array.isArray(b)&&b.every(a)}function c(a){var b=new l;return a.forEach(function(a){"string"==typeof a||"number"==typeof a?b.cell("item",a):Object.keys(a).forEach(function(c){b.cell(c,a[c])}),b.newRow()}),b.toString()}function d(a,b){var c=new l;b.forEach(function(b){b.forEach(function(b,d){c.cell(a[d],b)}),c.newRow()});var d=c.toString();console.log(d)}function e(a,b){var d=c(b),e=d.indexOf("\n");if(e>0){a.length>e&&(e=a.length),console.log(a);var f,g="-",h="";for(f=0;f<e;f+=1)h+=g;console.log(h)}console.log(d)}function f(a){return Object.keys(a).map(function(b){return{key:b,value:a[b]}})}function g(a){return c(f(a))}function h(){var a=Array.prototype.slice.call(arguments);return 2===a.length&&"string"==typeof a[0]&&Array.isArray(a[1])?e(a[0],a[1]):2===a.length&&j(a[0])&&k(a[1])?d(a[0],a[1]):void a.forEach(function(a){if("string"==typeof a)return console.log(a);Array.isArray(a)?console.log(c(a)):"object"==typeof a&&console.log(g(a))})}if("undefined"==typeof console)throw new Error("Weird, console object is undefined");if("function"!=typeof console.table||console.tabke!==h){var i=a.bind(null,"string"),j=b.bind(null,i),k=b.bind(null,Array.isArray),l=require("easy-table");console.table=h}}a()}();
!function(){"use strict";function a(){function a(a,b){return typeof b===a}function b(a,b){return Array.isArray(b)&&b.every(a)}function c(a){var b=new l;return a.forEach(function(a){"string"==typeof a||"number"==typeof a?b.cell("item",a):Object.keys(a).forEach(function(c){b.cell(c,a[c])}),b.newRow()}),b.toString()}function d(a,b){var c=new l;b.forEach(function(b){b.forEach(function(b,d){c.cell(a[d],b)}),c.newRow()});var d=c.toString();console.log(d)}function e(a,b){var d=c(b),e=d.indexOf("\n");if(e>0){a.length>e&&(e=a.length),console.log(a);var f,g="-",h="";for(f=0;f<e;f+=1)h+=g;console.log(h)}console.log(d)}function f(a){return Object.keys(a).map(function(b){return{key:b,value:a[b]}})}function g(a){return c(f(a))}function h(){var a=Array.prototype.slice.call(arguments);return 2===a.length&&"string"==typeof a[0]&&Array.isArray(a[1])?e(a[0],a[1]):2===a.length&&j(a[0])&&k(a[1])?d(a[0],a[1]):void a.forEach(function(a){if("string"==typeof a)return console.log(a);Array.isArray(a)?console.log(c(a)):"object"==typeof a&&console.log(g(a))})}if("undefined"==typeof console)throw new Error("Weird, console object is undefined");if("function"!=typeof console.table||console.table!==h){var i=a.bind(null,"string"),j=b.bind(null,i),k=b.bind(null,Array.isArray),l=require("easy-table");console.table=h}}a()}();

@@ -10,3 +10,3 @@ (function () {

// if it is not OUR function, overwrite it
if (console.tabke === consoleTable) {
if (console.table === consoleTable) {
return;

@@ -13,0 +13,0 @@ }

{
"name": "console.table",
"description": "Adds console.table method that prints an array of objects as a table in console",
"version": "0.9.0",
"version": "0.9.1",
"author": "Gleb Bahmutov <gleb.bahmutov@gmail.com>",

@@ -6,0 +6,0 @@ "bugs": {

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