Comparing version 7.13.0 to 7.14.0
@@ -37,3 +37,3 @@ 'use strict'; | ||
const value = compare[key]; | ||
if (value === undefined) { // Monitored key not present | ||
if (value === undefined) { // Monitored key not present | ||
if (base[key] !== undefined && | ||
@@ -47,3 +47,23 @@ options.deleted) { | ||
if (typeof value === 'object') { | ||
if (value !== null && | ||
base[key] !== null && | ||
typeof value === 'object' && | ||
typeof base[key] === 'object') { | ||
if (Array.isArray(value) || | ||
Array.isArray(base[key])) { | ||
if (Hoek.deepEqual(base[key], value)) { | ||
return; | ||
} | ||
if (options.arrays === false || // Defaults to true | ||
!Array.isArray(value) || | ||
!Array.isArray(base[key])) { | ||
changes[key] = value; | ||
return; | ||
} | ||
} | ||
const change = exports.diff(base[key], value, { deleted: options.deleted }); | ||
@@ -53,4 +73,7 @@ if (change) { | ||
} | ||
return; | ||
} | ||
else if (value !== base[key]) { | ||
if (value !== base[key]) { | ||
changes[key] = value; | ||
@@ -57,0 +80,0 @@ } |
{ | ||
"name": "penseur", | ||
"description": "Lightweight RethinkDB wrapper", | ||
"version": "7.13.0", | ||
"version": "7.14.0", | ||
"author": "Eran Hammer <eran@hammer.io> (http://hueniverse.com)", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/hueniverse/penseur", |
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
76575
1765