@dra2020/baseclient 1.0.144 → 1.0.145

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