@dra2020/baseclient 1.0.144 → 1.0.146

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3287,6 +3287,15 @@ class MultiBlockMapping {
3287
3287
  if (this.entries.length)
3288
3288
  Object.keys(this.entries[0].bm).forEach(blockid => cb(blockid));
3289
3289
  }
3290
+ // Just walks first map
3291
+ forEachRev(cb) {
3292
+ for (let i = 0; i < this.entries.length; i++) {
3293
+ let e = this.entries[i];
3294
+ if (!e.rbm)
3295
+ e.rbm = reverseBlockMapping(e.bm);
3296
+ Object.keys(e.rbm).forEach(geoid => cb(geoid, e.rbm[geoid]));
3297
+ }
3298
+ }
3290
3299
  }
3291
3300
  exports.MultiBlockMapping = MultiBlockMapping;
3292
3301
 
@@ -12035,7 +12044,7 @@ function deepEqual(o1, o2, options) {
12035
12044
  if (o1.hasOwnProperty(p)) {
12036
12045
  if (options && options.omitKey && options.omitKey[p])
12037
12046
  continue;
12038
- if (o2[p] === undefined)
12047
+ if (o2[p] === undefined && o1[p] !== undefined)
12039
12048
  return false;
12040
12049
  if (!deepEqual(o1[p], o2[p], options))
12041
12050
  return false;
@@ -12045,7 +12054,7 @@ function deepEqual(o1, o2, options) {
12045
12054
  if (o2.hasOwnProperty(p)) {
12046
12055
  if (options && options.omitKey && options.omitKey[p])
12047
12056
  continue;
12048
- if (o1[p] === undefined)
12057
+ if (o1[p] === undefined && o2[p] !== undefined)
12049
12058
  return false;
12050
12059
  }
12051
12060
  return true;