Comparing version 0.7.2 to 0.7.3
@@ -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. |
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
35445
536
291