@broofa/jsondiff
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -25,3 +25,3 @@ // Reserved values | ||
if (after === undefined) return DROP; | ||
if (after == null) return null; | ||
if (after === null) return before === null ? KEEP : null; | ||
if (before == null) return after; | ||
@@ -28,0 +28,0 @@ |
{ | ||
"name": "@broofa/jsondiff", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Pragmatic, intuitive diffing and patching of JSON objects", | ||
@@ -9,3 +9,3 @@ "main": "index.js", | ||
"mocha": "^5.2.0", | ||
"runmd": "^1.0.1" | ||
"runmd": "1.2.1" | ||
}, | ||
@@ -12,0 +12,0 @@ "scripts": { |
@@ -11,2 +11,3 @@ var assert = require('assert'); | ||
it('Null', async () => { | ||
assert.equal(KEEP, diff(null, null)); | ||
assert.equal(123, diff(null, 123)); | ||
@@ -13,0 +14,0 @@ assert.equal(null, diff(123, null)); |
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
21179
335