@dra2020/baseclient 1.0.87 → 1.0.89

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.
@@ -2878,6 +2878,10 @@ class MultiBlockMapping {
2878
2878
  }
2879
2879
  return undefined;
2880
2880
  }
2881
+ bmOf(tag) {
2882
+ let e = this.entries.find(e => e.tag === tag);
2883
+ return e ? e.bm : null;
2884
+ }
2881
2885
  mapmain(blockid) {
2882
2886
  return this.entries.length ? this.entries[0].bm[blockid] : undefined;
2883
2887
  }
@@ -2891,6 +2895,11 @@ class MultiBlockMapping {
2891
2895
  }
2892
2896
  return undefined;
2893
2897
  }
2898
+ // Just walks first map
2899
+ forEach(cb) {
2900
+ if (this.entries.length)
2901
+ Object.keys(this.entries[0].bm).forEach(blockid => cb(blockid));
2902
+ }
2894
2903
  }
2895
2904
  exports.MultiBlockMapping = MultiBlockMapping;
2896
2905