@dra2020/baseclient 1.0.20 → 1.0.21

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.
@@ -72,6 +72,7 @@ export declare class BinTrie {
72
72
  }
73
73
  export interface BinTrieOptions {
74
74
  dedup?: boolean;
75
+ verbose?: boolean;
75
76
  }
76
77
  export declare class BinTrieBuilder {
77
78
  options: BinTrieOptions;
@@ -348,8 +348,9 @@ export class BinTrie
348
348
  export interface BinTrieOptions
349
349
  {
350
350
  dedup?: boolean,
351
+ verbose?: boolean,
351
352
  }
352
- let DefaultOptions: BinTrieOptions = { dedup: true };
353
+ let DefaultOptions: BinTrieOptions = { dedup: true, verbose: false };
353
354
 
354
355
  export class BinTrieBuilder
355
356
  {
@@ -607,7 +608,8 @@ export class BinTrieBuilder
607
608
  }
608
609
  });
609
610
 
610
- console.log(`bintrie: total size: ${btb.u8.length}, value table size: ${btb.vtb.u8.length}`);
611
+ if (btb.options.verbose)
612
+ console.log(`bintrie: total size: ${btb.u8.length}, value table size: ${btb.vtb.u8.length}`);
611
613
 
612
614
  return bt;
613
615
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dra2020/baseclient",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "Utility functions for Javascript projects.",
5
5
  "main": "dist/baseclient.js",
6
6
  "types": "./dist/all/all.d.ts",