Showing 1 of 6 files from the diff.
Newly tracked file
src/request-id.ts created.
Other files ignored by Codecov

@@ -0,0 +1,34 @@
Loading
1 +
import * as uuid from 'uuid'
2 +
3 +
export const requestIdHeader = 'Request-Id'
4 +
5 +
// tslint:disable-next-line: no-unnecessary-class
6 +
export class RequestId {
7 +
  static ids: string[] = []
8 +
9 +
  static track(...ids: string[]) {
10 +
    const tracked = RequestId.ids
11 +
    ids = ids.filter(id => !(tracked.includes(id)))
12 +
    RequestId.ids = [...ids, ...tracked]
13 +
    return RequestId.ids
14 +
  }
15 +
16 +
  static create(): string[] {
17 +
    const tracked = RequestId.ids
18 +
    const generatedId = RequestId._generate()
19 +
    RequestId.ids = [generatedId, ...tracked]
20 +
    return RequestId.ids
21 +
  }
22 +
23 +
  static empty(): void {
24 +
    RequestId.ids = []
25 +
  }
26 +
27 +
  static get headerValue() {
28 +
    return RequestId.ids.join(',')
29 +
  }
30 +
31 +
  static _generate() {
32 +
    return uuid.v4()
33 +
  }
34 +
}
Files Coverage
src 0.00%
Project Totals (8 files) 0.00%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading