@dra2020/baseclient 1.0.88 → 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.
@@ -16,6 +16,7 @@ export declare class MultiBlockMapping {
16
16
  add(tag: string, bm: BlockMapping): void;
17
17
  remove(tag: string): void;
18
18
  map(blockid: string): string;
19
+ bmOf(tag: string): BlockMapping;
19
20
  mapmain(blockid: string): string;
20
21
  rev(geoid: string): string[];
21
22
  forEach(cb: (blockid: string) => void): void;
@@ -58,6 +58,12 @@ export class MultiBlockMapping
58
58
  return undefined;
59
59
  }
60
60
 
61
+ bmOf(tag: string): BlockMapping
62
+ {
63
+ let e = this.entries.find(e => e.tag === tag);
64
+ return e ? e.bm : null;
65
+ }
66
+
61
67
  mapmain(blockid: string): string
62
68
  {
63
69
  return this.entries.length ? this.entries[0].bm[blockid] : undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dra2020/baseclient",
3
- "version": "1.0.88",
3
+ "version": "1.0.89",
4
4
  "description": "Utility functions for Javascript projects.",
5
5
  "main": "dist/baseclient.js",
6
6
  "types": "./dist/all/all.d.ts",