Comparing version 7.0.0-alpha.5 to 7.0.0-alpha.6
@@ -39,3 +39,3 @@ "use strict"; | ||
return !_.isEqual(original, modified) && this.set(changePath, modified); | ||
_.each(modified, function (value, key) { | ||
_.forOwn(modified, function (value, key) { | ||
// Handle array diffs in their own special way | ||
@@ -48,3 +48,3 @@ if (Array.isArray(value) && Array.isArray(original[key])) | ||
// Unset removed properties | ||
_.each(original, function (value, key) { | ||
_.forOwn(original, function (value, key) { | ||
if (modified[key] === undefined) | ||
@@ -51,0 +51,0 @@ return _this.unset(_this.resolve(changePath, key)); |
@@ -79,3 +79,3 @@ import * as _ from "lodash"; | ||
_.each(modified, (value, key) => { | ||
_.forOwn(modified, (value, key) => { | ||
// Handle array diffs in their own special way | ||
@@ -89,3 +89,3 @@ if (Array.isArray(value) && Array.isArray(original[key])) this.onArray(original[key], value, this.resolve(changePath, key)); | ||
// Unset removed properties | ||
_.each(original, (value, key) => { | ||
_.forOwn(original, (value, key) => { | ||
if (modified[key] === undefined) return this.unset(this.resolve(changePath, key)); | ||
@@ -92,0 +92,0 @@ }, this); |
{ | ||
"name": "iridium", | ||
"version": "7.0.0-alpha.5", | ||
"version": "7.0.0-alpha.6", | ||
"author": "Benjamin Pannell <admin@sierrasoftworks.com>", | ||
@@ -5,0 +5,0 @@ "description": "A custom lightweight ORM for MongoDB designed for power-users", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
709410