@pnpm/logger
Advanced tools
Comparing version 5.0.0 to 5.1.0
export { logger, globalInfo, globalWarn, Logger, } from './logger'; | ||
export { createStreamParser, streamParser, LogBase, LogLevel, } from './streamParser'; | ||
export { createStreamParser, streamParser, LogBaseDebug, LogBaseError, LogBaseInfo, LogBaseWarn, LogBase, LogLevel, } from './streamParser'; | ||
export { writeToConsole } from './writeToConsole'; |
@@ -1,12 +0,25 @@ | ||
export declare type LogLevel = 'error' | 'warn' | 'info' | 'debug'; | ||
export declare type LogBase = ({ | ||
level: 'debug' | 'error'; | ||
} | { | ||
level: 'info' | 'warn'; | ||
export type LogLevel = 'error' | 'warn' | 'info' | 'debug'; | ||
export interface LogBaseTemplate { | ||
level?: LogLevel; | ||
prefix?: string; | ||
message?: string; | ||
} | ||
export interface LogBaseDebug extends LogBaseTemplate { | ||
level: 'debug'; | ||
} | ||
export interface LogBaseError extends LogBaseTemplate { | ||
level: 'error'; | ||
} | ||
export interface LogBaseInfo extends LogBaseTemplate { | ||
level: 'info'; | ||
prefix: string; | ||
message: string; | ||
}) & { | ||
level: LogLevel; | ||
}; | ||
export declare type Reporter = (logObj: LogBase) => void; | ||
} | ||
export interface LogBaseWarn extends LogBaseTemplate { | ||
level: 'warn'; | ||
prefix: string; | ||
message: string; | ||
} | ||
export type LogBase = LogBaseDebug | LogBaseError | LogBaseInfo | LogBaseWarn; | ||
export type Reporter = (logObj: LogBase) => void; | ||
export interface StreamParser { | ||
@@ -13,0 +26,0 @@ on: (event: 'data', reporter: Reporter) => void; |
{ | ||
"name": "@pnpm/logger", | ||
"version": "5.0.0", | ||
"version": "5.1.0", | ||
"description": "Logger for pnpm", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8762
106