@dra2020/baseclient 1.0.87 → 1.0.88

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.
@@ -18,5 +18,6 @@ export declare class MultiBlockMapping {
18
18
  map(blockid: string): string;
19
19
  mapmain(blockid: string): string;
20
20
  rev(geoid: string): string[];
21
+ forEach(cb: (blockid: string) => void): void;
21
22
  }
22
23
  export {};
@@ -75,4 +75,11 @@ export class MultiBlockMapping
75
75
  }
76
76
  return undefined;
77
77
  }
78
+
79
+ // Just walks first map
80
+ forEach(cb: (blockid: string) => void): void
81
+ {
82
+ if (this.entries.length)
83
+ Object.keys(this.entries[0].bm).forEach(blockid => cb(blockid));
84
+ }
78
85
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dra2020/baseclient",
3
- "version": "1.0.87",
3
+ "version": "1.0.88",
4
4
  "description": "Utility functions for Javascript projects.",
5
5
  "main": "dist/baseclient.js",
6
6
  "types": "./dist/all/all.d.ts",