| 33 | const pipelineAsync = util.promisify(pipeline); |
| 34 | |
| 35 | class NodeZone implements Zone { |
| 36 | private _zone: ZoneImpl; |
| 37 | |
| 38 | constructor(zone: ZoneImpl) { |
| 39 | this._zone = zone; |
| 40 | } |
| 41 | |
| 42 | push<T>(data: T) { |
| 43 | return new NodeZone(this._zone.with('apiZone', data)); |
| 44 | } |
| 45 | |
| 46 | pop() { |
| 47 | return new NodeZone(this._zone.without('apiZone')); |
| 48 | } |
| 49 | |
| 50 | run<R>(func: () => R): R { |
| 51 | return this._zone.run(func); |
| 52 | } |
| 53 | |
| 54 | data<T>(): T | undefined { |
| 55 | return this._zone.data('apiZone'); |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | let boxedStackPrefixes: string[] = []; |
| 60 | export function setBoxedStackPrefixes(prefixes: string[]) { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…