Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dumper.js

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dumper.js - npm Package Compare versions

Comparing version 0.0.1 to 0.1.1

.idea/jsLibraryMappings.xml

2

coverage/coverage.json

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

{"/Users/zeeshan/Desktop/dumper.js/src/dumper.js":{"path":"/Users/zeeshan/Desktop/dumper.js/src/dumper.js","s":{"1":1,"2":1,"3":17,"4":18,"5":18,"6":18,"7":18,"8":1,"9":1,"10":1,"11":2,"12":2,"13":2,"14":15,"15":3,"16":16,"17":0,"18":16,"19":16,"20":16,"21":16,"22":3,"23":31,"24":31,"25":31,"26":31,"27":1,"28":1,"29":1,"30":4,"31":4,"32":4,"33":11,"34":11,"35":11,"36":2,"37":2,"38":12,"39":12,"40":12,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":1,"48":1,"49":1,"50":31,"51":16,"52":0,"53":0,"54":0,"55":16,"56":11,"57":5,"58":1},"b":{"1":[1,2,15],"2":[0,16],"3":[0,1,4,11,2,12,0,0,1],"4":[2,2],"5":[7,5],"6":[0,16],"7":[0,0],"8":[11,5]},"f":{"1":17,"2":18,"3":31,"4":16},"fnMap":{"1":{"name":"(anonymous_1)","line":14,"loc":{"start":{"line":14,"column":13},"end":{"line":14,"column":31}}},"2":{"name":"(anonymous_2)","line":25,"loc":{"start":{"line":25,"column":14},"end":{"line":25,"column":36}}},"3":{"name":"(anonymous_3)","line":75,"loc":{"start":{"line":75,"column":18},"end":{"line":75,"column":42}}},"4":{"name":"(anonymous_4)","line":132,"loc":{"start":{"line":132,"column":17},"end":{"line":132,"column":53}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":34}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":66}},"3":{"start":{"line":15,"column":4},"end":{"line":15,"column":42}},"4":{"start":{"line":26,"column":4},"end":{"line":26,"column":18}},"5":{"start":{"line":28,"column":4},"end":{"line":28,"column":23}},"6":{"start":{"line":29,"column":4},"end":{"line":29,"column":21}},"7":{"start":{"line":31,"column":4},"end":{"line":44,"column":5}},"8":{"start":{"line":33,"column":8},"end":{"line":33,"column":73}},"9":{"start":{"line":34,"column":8},"end":{"line":34,"column":31}},"10":{"start":{"line":35,"column":8},"end":{"line":35,"column":14}},"11":{"start":{"line":37,"column":8},"end":{"line":39,"column":16}},"12":{"start":{"line":40,"column":8},"end":{"line":40,"column":31}},"13":{"start":{"line":41,"column":8},"end":{"line":41,"column":14}},"14":{"start":{"line":43,"column":8},"end":{"line":43,"column":53}},"15":{"start":{"line":48,"column":4},"end":{"line":63,"column":5}},"16":{"start":{"line":49,"column":6},"end":{"line":51,"column":7}},"17":{"start":{"line":50,"column":8},"end":{"line":50,"column":17}},"18":{"start":{"line":53,"column":6},"end":{"line":53,"column":44}},"19":{"start":{"line":54,"column":6},"end":{"line":54,"column":54}},"20":{"start":{"line":55,"column":6},"end":{"line":55,"column":69}},"21":{"start":{"line":57,"column":6},"end":{"line":62,"column":8}},"22":{"start":{"line":65,"column":4},"end":{"line":65,"column":38}},"23":{"start":{"line":76,"column":4},"end":{"line":76,"column":25}},"24":{"start":{"line":77,"column":4},"end":{"line":77,"column":26}},"25":{"start":{"line":79,"column":4},"end":{"line":79,"column":44}},"26":{"start":{"line":80,"column":4},"end":{"line":118,"column":5}},"27":{"start":{"line":83,"column":8},"end":{"line":83,"column":25}},"28":{"start":{"line":84,"column":8},"end":{"line":87,"column":10}},"29":{"start":{"line":88,"column":8},"end":{"line":88,"column":14}},"30":{"start":{"line":90,"column":8},"end":{"line":90,"column":32}},"31":{"start":{"line":91,"column":8},"end":{"line":91,"column":74}},"32":{"start":{"line":92,"column":8},"end":{"line":92,"column":14}},"33":{"start":{"line":94,"column":8},"end":{"line":94,"column":31}},"34":{"start":{"line":95,"column":8},"end":{"line":97,"column":12}},"35":{"start":{"line":98,"column":8},"end":{"line":98,"column":14}},"36":{"start":{"line":100,"column":8},"end":{"line":100,"column":41}},"37":{"start":{"line":101,"column":8},"end":{"line":101,"column":14}},"38":{"start":{"line":103,"column":8},"end":{"line":103,"column":72}},"39":{"start":{"line":104,"column":8},"end":{"line":104,"column":44}},"40":{"start":{"line":105,"column":8},"end":{"line":105,"column":14}},"41":{"start":{"line":107,"column":8},"end":{"line":107,"column":25}},"42":{"start":{"line":108,"column":8},"end":{"line":108,"column":40}},"43":{"start":{"line":109,"column":8},"end":{"line":109,"column":14}},"44":{"start":{"line":111,"column":8},"end":{"line":111,"column":25}},"45":{"start":{"line":112,"column":8},"end":{"line":112,"column":48}},"46":{"start":{"line":113,"column":8},"end":{"line":113,"column":14}},"47":{"start":{"line":115,"column":8},"end":{"line":115,"column":25}},"48":{"start":{"line":116,"column":8},"end":{"line":116,"column":37}},"49":{"start":{"line":117,"column":8},"end":{"line":117,"column":14}},"50":{"start":{"line":120,"column":4},"end":{"line":120,"column":50}},"51":{"start":{"line":133,"column":4},"end":{"line":139,"column":5}},"52":{"start":{"line":134,"column":6},"end":{"line":136,"column":7}},"53":{"start":{"line":135,"column":8},"end":{"line":135,"column":68}},"54":{"start":{"line":138,"column":6},"end":{"line":138,"column":66}},"55":{"start":{"line":141,"column":4},"end":{"line":143,"column":5}},"56":{"start":{"line":142,"column":6},"end":{"line":142,"column":66}},"57":{"start":{"line":145,"column":4},"end":{"line":145,"column":64}},"58":{"start":{"line":149,"column":0},"end":{"line":149,"column":24}}},"branchMap":{"1":{"line":31,"type":"switch","locations":[{"start":{"line":32,"column":6},"end":{"line":35,"column":14}},{"start":{"line":36,"column":6},"end":{"line":41,"column":14}},{"start":{"line":42,"column":6},"end":{"line":43,"column":53}}]},"2":{"line":49,"type":"if","locations":[{"start":{"line":49,"column":6},"end":{"line":49,"column":6}},{"start":{"line":49,"column":6},"end":{"line":49,"column":6}}]},"3":{"line":80,"type":"switch","locations":[{"start":{"line":81,"column":6},"end":{"line":81,"column":19}},{"start":{"line":82,"column":6},"end":{"line":88,"column":14}},{"start":{"line":89,"column":6},"end":{"line":92,"column":14}},{"start":{"line":93,"column":6},"end":{"line":98,"column":14}},{"start":{"line":99,"column":6},"end":{"line":101,"column":14}},{"start":{"line":102,"column":6},"end":{"line":105,"column":14}},{"start":{"line":106,"column":6},"end":{"line":109,"column":14}},{"start":{"line":110,"column":6},"end":{"line":113,"column":14}},{"start":{"line":114,"column":6},"end":{"line":117,"column":14}}]},"4":{"line":91,"type":"cond-expr","locations":[{"start":{"line":91,"column":39},"end":{"line":91,"column":54}},{"start":{"line":91,"column":57},"end":{"line":91,"column":73}}]},"5":{"line":103,"type":"cond-expr","locations":[{"start":{"line":103,"column":56},"end":{"line":103,"column":61}},{"start":{"line":103,"column":64},"end":{"line":103,"column":71}}]},"6":{"line":133,"type":"if","locations":[{"start":{"line":133,"column":4},"end":{"line":133,"column":4}},{"start":{"line":133,"column":4},"end":{"line":133,"column":4}}]},"7":{"line":134,"type":"if","locations":[{"start":{"line":134,"column":6},"end":{"line":134,"column":6}},{"start":{"line":134,"column":6},"end":{"line":134,"column":6}}]},"8":{"line":141,"type":"if","locations":[{"start":{"line":141,"column":4},"end":{"line":141,"column":4}},{"start":{"line":141,"column":4},"end":{"line":141,"column":4}}]}}}}
{"/Users/zeeshan/Desktop/dumper.js/src/dumper.js":{"path":"/Users/zeeshan/Desktop/dumper.js/src/dumper.js","s":{"1":1,"2":1,"3":19,"4":23,"5":23,"6":23,"7":23,"8":2,"9":2,"10":2,"11":5,"12":5,"13":5,"14":16,"15":7,"16":31,"17":0,"18":31,"19":31,"20":31,"21":31,"22":7,"23":47,"24":47,"25":47,"26":47,"27":4,"28":4,"29":4,"30":7,"31":7,"32":7,"33":14,"34":14,"35":14,"36":2,"37":2,"38":15,"39":15,"40":15,"41":3,"42":3,"43":3,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":47,"51":31,"52":0,"53":0,"54":0,"55":31,"56":14,"57":17,"58":1},"b":{"1":[2,5,16],"2":[0,31],"3":[0,4,7,14,2,15,3,1,1],"4":[4,3],"5":[10,5],"6":[0,31],"7":[0,0],"8":[14,17]},"f":{"1":19,"2":23,"3":47,"4":31},"fnMap":{"1":{"name":"(anonymous_1)","line":14,"loc":{"start":{"line":14,"column":13},"end":{"line":14,"column":31}}},"2":{"name":"(anonymous_2)","line":25,"loc":{"start":{"line":25,"column":14},"end":{"line":25,"column":36}}},"3":{"name":"(anonymous_3)","line":68,"loc":{"start":{"line":68,"column":18},"end":{"line":68,"column":42}}},"4":{"name":"(anonymous_4)","line":120,"loc":{"start":{"line":120,"column":17},"end":{"line":120,"column":53}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":34}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":66}},"3":{"start":{"line":15,"column":4},"end":{"line":15,"column":42}},"4":{"start":{"line":26,"column":4},"end":{"line":26,"column":18}},"5":{"start":{"line":28,"column":4},"end":{"line":28,"column":23}},"6":{"start":{"line":29,"column":4},"end":{"line":29,"column":21}},"7":{"start":{"line":31,"column":4},"end":{"line":42,"column":5}},"8":{"start":{"line":33,"column":8},"end":{"line":33,"column":73}},"9":{"start":{"line":34,"column":8},"end":{"line":34,"column":31}},"10":{"start":{"line":35,"column":8},"end":{"line":35,"column":14}},"11":{"start":{"line":37,"column":8},"end":{"line":37,"column":87}},"12":{"start":{"line":38,"column":8},"end":{"line":38,"column":31}},"13":{"start":{"line":39,"column":8},"end":{"line":39,"column":14}},"14":{"start":{"line":41,"column":8},"end":{"line":41,"column":53}},"15":{"start":{"line":46,"column":4},"end":{"line":56,"column":5}},"16":{"start":{"line":47,"column":6},"end":{"line":49,"column":7}},"17":{"start":{"line":48,"column":8},"end":{"line":48,"column":17}},"18":{"start":{"line":51,"column":6},"end":{"line":51,"column":44}},"19":{"start":{"line":52,"column":6},"end":{"line":52,"column":54}},"20":{"start":{"line":53,"column":6},"end":{"line":53,"column":69}},"21":{"start":{"line":55,"column":6},"end":{"line":55,"column":82}},"22":{"start":{"line":58,"column":4},"end":{"line":58,"column":38}},"23":{"start":{"line":69,"column":4},"end":{"line":69,"column":25}},"24":{"start":{"line":70,"column":4},"end":{"line":70,"column":26}},"25":{"start":{"line":72,"column":4},"end":{"line":72,"column":44}},"26":{"start":{"line":73,"column":4},"end":{"line":106,"column":5}},"27":{"start":{"line":76,"column":8},"end":{"line":76,"column":25}},"28":{"start":{"line":77,"column":8},"end":{"line":77,"column":83}},"29":{"start":{"line":78,"column":8},"end":{"line":78,"column":14}},"30":{"start":{"line":80,"column":8},"end":{"line":80,"column":32}},"31":{"start":{"line":81,"column":8},"end":{"line":81,"column":74}},"32":{"start":{"line":82,"column":8},"end":{"line":82,"column":14}},"33":{"start":{"line":84,"column":8},"end":{"line":84,"column":31}},"34":{"start":{"line":85,"column":8},"end":{"line":85,"column":87}},"35":{"start":{"line":86,"column":8},"end":{"line":86,"column":14}},"36":{"start":{"line":88,"column":8},"end":{"line":88,"column":41}},"37":{"start":{"line":89,"column":8},"end":{"line":89,"column":14}},"38":{"start":{"line":91,"column":8},"end":{"line":91,"column":72}},"39":{"start":{"line":92,"column":8},"end":{"line":92,"column":44}},"40":{"start":{"line":93,"column":8},"end":{"line":93,"column":14}},"41":{"start":{"line":95,"column":8},"end":{"line":95,"column":25}},"42":{"start":{"line":96,"column":8},"end":{"line":96,"column":40}},"43":{"start":{"line":97,"column":8},"end":{"line":97,"column":14}},"44":{"start":{"line":99,"column":8},"end":{"line":99,"column":25}},"45":{"start":{"line":100,"column":8},"end":{"line":100,"column":48}},"46":{"start":{"line":101,"column":8},"end":{"line":101,"column":14}},"47":{"start":{"line":103,"column":8},"end":{"line":103,"column":25}},"48":{"start":{"line":104,"column":8},"end":{"line":104,"column":37}},"49":{"start":{"line":105,"column":8},"end":{"line":105,"column":14}},"50":{"start":{"line":108,"column":4},"end":{"line":108,"column":50}},"51":{"start":{"line":121,"column":4},"end":{"line":127,"column":5}},"52":{"start":{"line":122,"column":6},"end":{"line":124,"column":7}},"53":{"start":{"line":123,"column":8},"end":{"line":123,"column":68}},"54":{"start":{"line":126,"column":6},"end":{"line":126,"column":66}},"55":{"start":{"line":129,"column":4},"end":{"line":131,"column":5}},"56":{"start":{"line":130,"column":6},"end":{"line":130,"column":66}},"57":{"start":{"line":133,"column":4},"end":{"line":133,"column":64}},"58":{"start":{"line":137,"column":0},"end":{"line":137,"column":24}}},"branchMap":{"1":{"line":31,"type":"switch","locations":[{"start":{"line":32,"column":6},"end":{"line":35,"column":14}},{"start":{"line":36,"column":6},"end":{"line":39,"column":14}},{"start":{"line":40,"column":6},"end":{"line":41,"column":53}}]},"2":{"line":47,"type":"if","locations":[{"start":{"line":47,"column":6},"end":{"line":47,"column":6}},{"start":{"line":47,"column":6},"end":{"line":47,"column":6}}]},"3":{"line":73,"type":"switch","locations":[{"start":{"line":74,"column":6},"end":{"line":74,"column":19}},{"start":{"line":75,"column":6},"end":{"line":78,"column":14}},{"start":{"line":79,"column":6},"end":{"line":82,"column":14}},{"start":{"line":83,"column":6},"end":{"line":86,"column":14}},{"start":{"line":87,"column":6},"end":{"line":89,"column":14}},{"start":{"line":90,"column":6},"end":{"line":93,"column":14}},{"start":{"line":94,"column":6},"end":{"line":97,"column":14}},{"start":{"line":98,"column":6},"end":{"line":101,"column":14}},{"start":{"line":102,"column":6},"end":{"line":105,"column":14}}]},"4":{"line":81,"type":"cond-expr","locations":[{"start":{"line":81,"column":39},"end":{"line":81,"column":54}},{"start":{"line":81,"column":57},"end":{"line":81,"column":73}}]},"5":{"line":91,"type":"cond-expr","locations":[{"start":{"line":91,"column":56},"end":{"line":91,"column":61}},{"start":{"line":91,"column":64},"end":{"line":91,"column":71}}]},"6":{"line":121,"type":"if","locations":[{"start":{"line":121,"column":4},"end":{"line":121,"column":4}},{"start":{"line":121,"column":4},"end":{"line":121,"column":4}}]},"7":{"line":122,"type":"if","locations":[{"start":{"line":122,"column":6},"end":{"line":122,"column":6}},{"start":{"line":122,"column":6},"end":{"line":122,"column":6}}]},"8":{"line":129,"type":"if","locations":[{"start":{"line":129,"column":4},"end":{"line":129,"column":4}},{"start":{"line":129,"column":4},"end":{"line":129,"column":4}}]}}}}

@@ -0,11 +1,4 @@

const dd = require('./src/dd');
const dump = require('./src/dump');
const users = [
{ user: 'barney', age: 36, active: true },
{ user: 'fred', age: 40, active: false },
{ user: 'pebbles', age: 1, active: true }
];
dump(users);
console.log('this will be called');
module.exports = {dd, dump};
{
"name": "dumper.js",
"version": "0.0.1",
"version": "0.1.1",
"description": "A better and pretty variable inspector for your Node.js applications.",
"main": "src/dd.js",
"main": "index.js",
"scripts": {

@@ -7,0 +7,0 @@ "test": "./node_modules/.bin/istanbul cover node_modules/mocha/bin/_mocha && ./node_modules/.bin/codecov",

@@ -57,3 +57,3 @@ <h1 align="center">

```javascript
const dump = require('dumper.js').dump;
const dump = require('dumper.js/src/dump');

@@ -60,0 +60,0 @@ const users = [

@@ -37,5 +37,3 @@ const kindOf = require('kind-of');

case 'object':
startWith = `${black.bold('object')} (size=${
Object.keys(toDump).length
}) {\n`;
startWith = `${black.bold('object')} (size=${Object.keys(toDump).length}) {\n`;
endWith = `${indent}}`;

@@ -58,8 +56,3 @@ break;

dump += this.makeArrowString(
originalParamType,
indent,
itemKey,
valueDump
);
dump += this.makeArrowString(originalParamType, indent, itemKey, valueDump);
}

@@ -86,6 +79,3 @@

displayType = '';
displayValue = this.generateDump(
originalValue,
`${indent}${this.spaces}`
);
displayValue = this.generateDump(originalValue, `${indent}${this.spaces}`);
break;

@@ -98,5 +88,3 @@ case 'boolean':

displayType = 'string';
displayValue = `${red(`"${originalValue}"`)} (length=${
originalValue.length
})`;
displayValue = `${red(`"${originalValue}"`)} (length=${originalValue.length})`;
break;

@@ -103,0 +91,0 @@ case 'null':

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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