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.2 to 0.6.3

5

lib/index.js

@@ -102,6 +102,3 @@ const { SequenceMatcher } = require('difflib')

const bestMatch = this.findMatchingObject(item, index, fuzzyOriginals)
if (
!keyScores[bestMatch.key] ||
bestMatch.score > keyScores[bestMatch.key].score
) {
if (bestMatch && (!keyScores[bestMatch.key] || bestMatch.score > keyScores[bestMatch.key].score)) {
keyScores[bestMatch.key] = { score: bestMatch.score, index }

@@ -108,0 +105,0 @@ }

2

package.json

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

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

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

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

----------
* 0.6.3 Fix ticket #68
* 0.6.2 Provide examples of setting mode from code.

@@ -274,0 +275,0 @@ * 0.6.1 Return exit code 0. Update cli-color to the latest version.

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