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 3.4.0 to 3.4.1

2

lib/index.js

@@ -84,3 +84,3 @@ 'use strict';

result = Object.assign(result, prot);
result = Object.assign(prot, result);
obj = prot;

@@ -87,0 +87,0 @@ }

{
"name": "purdy",
"version": "3.4.0",
"version": "3.4.1",
"description": "Pretty print objects in real purdy colors. Allows clearer visualization of objects than you get from most pretty printers due to colors. It will also print out the complete path to an object, something that's extremely useful for debugging. Purdy will also print out the path to access a variable using Hoek format making it useful on accessing values.",

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

@@ -30,4 +30,6 @@ 'use strict';

withYear.year = 1999;
withYear.firstName = 'Billy';
withYear.lastName = 'Bob';
const out = Purdy.stringify(withYear, { plain: true, proto: true });
expect(out).to.equal('{\n year: 1999,\n age: 24,\n firstName: \'billy\',\n lastName: \'bob\'\n}');
expect(out).to.equal('{\n firstName: \'Billy\',\n lastName: \'Bob\',\n age: 24,\n year: 1999\n}');
done();

@@ -34,0 +36,0 @@ });

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