@memberjunction/core
Advanced tools
Comparing version 0.9.28 to 0.9.29
@@ -50,4 +50,15 @@ "use strict"; | ||
return false; // BOTH are null or undefined, not dirty | ||
else | ||
return this._OldValue !== this.Value; | ||
else { | ||
let oldCompare = this._OldValue; | ||
let newCompare = this.Value; | ||
if (this._OldValue instanceof Date) { | ||
// sometimes we have old values that are date objects, convert to UTC timestamp for comparison | ||
oldCompare = this._OldValue.getTime(); | ||
} | ||
if (this.Value instanceof Date) { | ||
// and sometimes the new values are date objects, convert to UTC timestamp for comparison | ||
newCompare = this.Value.getTime(); | ||
} | ||
return oldCompare !== newCompare; | ||
} | ||
} | ||
@@ -54,0 +65,0 @@ } |
{ | ||
"name": "@memberjunction/core", | ||
"version": "0.9.28", | ||
"version": "0.9.29", | ||
"description": "MemberJunction: Core Library including Metadata, Application, Entity Retrieval and Manipulation, and Utilities", | ||
@@ -22,4 +22,4 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@memberjunction/global": "^0.9.27" | ||
"@memberjunction/global": "^0.9.28" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
320656
5026