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 errors

errors: Array<[]> = []

Private forgettableBufferSize

forgettableBufferSize: number

Private forgettableLines

forgettableLines: Array<string> = []

Private forgettableNames

forgettableNames: Set<MessageName | null>

Private includeFooter

includeFooter: boolean

Private includeInfos

includeInfos: boolean

Private includePrefix

includePrefix: boolean

Private includeWarnings

includeWarnings: boolean

Private indent

indent: number = 0

Private json

json: boolean

Private lastCacheMiss

lastCacheMiss: Locator | null = null

Private progress

progress: Map<ProgressIterable, object> = new Map()

Private progressFrame

progressFrame: number = 0

Private progressMaxScaledSize

progressMaxScaledSize: number | null = null

Private progressStyle

progressStyle: object | null = null

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

Private formatPrefix

  • formatPrefix(prefix: string, caretColor: string): string

hasErrors

  • hasErrors(): boolean

Private refreshProgress

  • refreshProgress(__namedParameters?: object): void

Private reportCacheChanges

  • reportCacheChanges(__namedParameters: object): void

reportCacheHit

  • reportCacheHit(locator: Locator): void

reportCacheMiss

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

reportError

reportErrorImpl

  • reportErrorImpl(name: MessageName, text: string): void

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

reportSeparator

  • reportSeparator(): void

reportWarning

reportWarningOnce

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

startCacheReport

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

startProgressPromise

  • startProgressPromise<T, P>(progressIt: P, cb: function): Promise<T>

startProgressSync

  • startProgressSync<T, P>(progressIt: P, cb: function): T

startSectionPromise

  • startSectionPromise<T>(__namedParameters: object, cb: function): Promise<T>

startSectionSync

  • startSectionSync<T>(__namedParameters: object, cb: function): T

Private startTimerImpl

  • startTimerImpl<Callback>(what: string, opts: TimerOptions | Callback, cb?: Callback): object & object

startTimerPromise

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

startTimerSync

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

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 progressViaTitle

  • progressViaTitle(): object

Static start

Generated using TypeDoc