Socket
Socket
Sign inDemoInstall

json-diff

Package Overview
Dependencies
Maintainers
2
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-diff - npm Package Compare versions

Comparing version 0.6.1 to 0.6.2

2

package.json

@@ -9,3 +9,3 @@ {

"description": "JSON diff",
"version": "0.6.1",
"version": "0.6.2",
"homepage": "https://github.com/andreyvit/json-diff",

@@ -12,0 +12,0 @@ "license": "MIT",

@@ -55,3 +55,2 @@ JSON structural diff

console.log(jsonDiff.diffString({ foo: 'bar' }, { foo: 'baz' }));
// Output:

@@ -63,9 +62,14 @@ // {

// without console colors
// As above, but without console colors
console.log(jsonDiff.diffString({ foo: 'bar' }, { foo: 'baz' }, {color:false}));
console.log(jsonDiff.diff({ foo: 'bar' }, { foo: 'baz' }));
// Raw output:
console.log(jsonDiff.diff({ foo: 'bar', b:3}, { foo: 'baz', b:3}));
// Output:
// { foo: { __old: 'bar', __new: 'baz' } }
// Passing in the "full" option:
console.log(jsonDiff.diff({ foo: 'bar', b:3}, { foo: 'baz', b:3}, {full:true}));
// Output:
// { foo: { __old: 'bar', __new: 'baz' }, b: 3 }

@@ -270,2 +274,4 @@

----------
* 0.6.2 Provide examples of setting mode from code.
* 0.6.1 Return exit code 0. Update cli-color to the latest version.
* 0.6.0 Convert project code to ES6

@@ -272,0 +278,0 @@ * 0.5.5 Fix bug in scalarize fuzzy compare logic

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