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

purdy

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

purdy - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

8

lib/index.js

@@ -10,3 +10,4 @@ // Load modules

var internals = {
indentLevel: 0
indentLevel: 0,
seen: []
};

@@ -37,2 +38,7 @@

if (internals.seen.indexOf(object) !== -1) {
return '[Circular]'.grey.bold;
}
internals.seen.push(object);
var keys = Object.keys(object);

@@ -39,0 +45,0 @@ var out = '{\n';

2

package.json
{
"name": "purdy",
"version": "0.0.5",
"version": "0.0.6",
"description": "print objects real purdy",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -24,2 +24,8 @@ var Lab = require('lab');

Purdy([1,2,'foo', it, Array.isArray, new Date,1,1,1,1,12,[1,2]]);
var circularObj = {
a: {
b: {}
}
};
circularObj.a.b = circularObj.a;
Purdy({

@@ -35,3 +41,4 @@ a: 3,

trueBool: true,
emptyArr: []
emptyArr: [],
circular: circularObj
});

@@ -38,0 +45,0 @@ done();

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