@contrail/util 1.1.15-alpha-2 → 1.1.15-alpha-3

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.
@@ -13,5 +13,5 @@ export declare function getDefaultTimingProfile(): TimingProfile;
13
13
  export declare function clearDefaultTimingProfile(): void;
14
14
  export declare function withTimingAsync<T>(label: string, fn: () => Promise<T>): Promise<T>;
15
15
  export declare function withTimingSync<T>(label: string, fn: () => T): T;
16
- export declare function displayTimingTree(nodes: TimingSpans, depth?: number): string;
16
+ export declare function displayTimingTree(nodes?: TimingSpans, depth?: number): string;
17
17
  export {};
@@ -70,7 +70,7 @@ function withTimingSync(label, fn) {
70
70
  getTimingStack().pop();
71
71
  }
72
72
  }
73
- function displayTimingTree(nodes, depth = 0) {
73
+ function displayTimingTree(nodes = DEFAULT_TIMING_PROFILE.timingSpans, depth = 0) {
74
74
  const lines = [];
75
75
  const indent = ' '.repeat(depth);
76
76
  const totalWidth = 80;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/util",
3
- "version": "1.1.15-alpha-2",
3
+ "version": "1.1.15-alpha-3",
4
4
  "description": "General JavaScript utilities",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",