Comparing version 0.6.2 to 0.6.3
@@ -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 @@ } |
@@ -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. |
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
32076
283
480