Options
All
  • Public
  • Public/Protected
  • All
Menu

Class StreamReport

Hierarchy

Constructors

constructor

Properties

Private cacheHitCount

cacheHitCount: number = 0

Private cacheMissCount

cacheMissCount: number = 0

Private configuration

configuration: Configuration

Private errorCount

errorCount: number = 0

Private forgettableBufferSize

forgettableBufferSize: number

Private forgettableLines

forgettableLines: Array<string> = []

Private forgettableNames

forgettableNames: Set<MessageName | null>

Private includeFooter

includeFooter: boolean

Private includeInfos

includeInfos: boolean

Private includeWarnings

includeWarnings: boolean

Private indent

indent: number = 0

Private json

json: boolean

Private progress

progress: Map<AsyncIterable<ProgressDefinition>, object> = new Map()

Private progressFrame

progressFrame: number = 0

Private progressMaxScaledSize

progressMaxScaledSize: number

Private progressStyle

progressStyle: object

Type declaration

  • chars: Array<string>
  • Optional date?: Array<number>
  • size: number

Private progressTime

progressTime: number = 0

Private progressTimeout

progressTimeout: ReturnType<typeof setTimeout> | null = null

Private startTime

startTime: number = Date.now()

Private stdout

stdout: Writable

Private uncommitted

uncommitted: Set<object> = new Set<{committed: boolean,action: () => void,}>()

Private warningCount

warningCount: number = 0

Methods

Private clearProgress

  • clearProgress(__namedParameters: object): void

Private commit

  • commit(): void

createStreamReporter

  • createStreamReporter(prefix?: string | null): PassThrough

exitCode

  • exitCode(): 0 | 1

finalize

  • finalize(): Promise<void>

Private formatIndent

  • formatIndent(): string

Private formatName

Private formatNameWithHyperlink

  • formatNameWithHyperlink(name: MessageName | null): string

hasErrors

  • hasErrors(): boolean

Private refreshProgress

  • refreshProgress(delta?: number): void

Private reportCacheChanges

  • reportCacheChanges(__namedParameters: object): void

reportCacheHit

  • reportCacheHit(locator: Locator): void

reportCacheMiss

  • reportCacheMiss(locator: Locator, message?: undefined | string): void

reportError

reportErrorOnce

  • reportErrorOnce(name: MessageName, text: string, opts?: undefined | object): void

reportExceptionOnce

reportInfo

  • reportInfo(name: MessageName | null, text: string): void

reportInfoOnce

  • reportInfoOnce(name: MessageName, text: string, opts?: undefined | object): void

reportJson

  • reportJson(data: any): void

reportProgress

  • reportProgress(progressIt: AsyncIterable<object>): object

reportSeparator

  • reportSeparator(): void

reportWarning

reportWarningOnce

  • reportWarningOnce(name: MessageName, text: string, opts?: undefined | object): void

startCacheReport

  • startCacheReport<T>(cb: function): Promise<T>

startTimerPromise

  • startTimerPromise<T>(what: string, opts: TimerOptions, cb: function): Promise<void>
  • startTimerPromise<T>(what: string, cb: function): Promise<void>

startTimerSync

  • startTimerSync<T>(what: string, opts: TimerOptions, cb: function): void
  • startTimerSync<T>(what: string, cb: function): void

Private truncate

  • truncate(str: string, __namedParameters?: object): string

Private writeLine

  • writeLine(str: string, __namedParameters?: object): void

Private writeLineWithForgettableReset

  • writeLineWithForgettableReset(str: string, __namedParameters?: object): void

Private writeLines

  • writeLines(lines: Array<string>, __namedParameters?: object): void

Private writeProgress

  • writeProgress(): void

Static progressViaCounter

  • progressViaCounter(max: number): object

Static start

Generated using TypeDoc