Key Comparison Utilities
Provides functions for comparing objects and detecting changes, with special handling
for encrypted fields like accounts.
- Source:
Members
(static, constant) keysCompare
Compares two objects and returns the differences
Compares all keys in newData with oldData and identifies:
- Modified values (different in newData vs oldData)
- Deleted keys (present in oldData but undefined in newData)
- Source:
(static, constant) keysEqual
Compares two objects for equality and returns detailed change information
Performs deep comparison with special handling for encrypted accounts field.
Returns a tuple containing:
1. Boolean indicating if objects are equal
2. Object containing all differences
3. Object containing only filter-relevant differences (or null if none)
Special handling:
- Accounts are compared using accountsEqual (decrypted comparison)
- Only changes to filterKeys properties are included in filterDiff
- Source: