Comparing version 3.4.0 to 3.4.1
@@ -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 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2
119229
9
796