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.7.2 to 0.7.3

3

lib/colorize.js

@@ -17,3 +17,4 @@ const color = require('cli-color')

const outputElisions = (n) => {
if (n < (options.maxElisions ?? Infinity)) {
let maxElisions = options.maxElisions === undefined ? Infinity : options.maxElisions
if (n < maxElisions) {
for (let i = 0; i < n; i++) {

@@ -20,0 +21,0 @@ output(' ', subindent + '...')

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

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

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

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

----------
* 0.7.3 Revert use of ?? operator in 0.7.2 (which caused a breaking change)
* 0.7.2 Add --maxElisions and --precision options.

@@ -278,0 +279,0 @@ * 0.7.1 Add --output-keys option.

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