@loglin/reporter-console
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -0,0 +0,0 @@ # Change Log |
/*! | ||
* @loglin/reporter-console v0.0.4 | ||
* @loglin/reporter-console v0.0.6 | ||
* (c) 2021 Marvin Rudolph | ||
@@ -4,0 +4,0 @@ * @license MIT |
@@ -1,42 +0,49 @@ | ||
import chalk from 'chalk'; | ||
import { CreatedReporter } from 'loglin'; | ||
import { FormatterFunction } from 'loglin'; | ||
import { LogLevels } from 'loglin'; | ||
import chalk from 'chalk' | ||
import { CreatedReporter } from 'loglin' | ||
import { FormatterFunction } from 'loglin' | ||
import { LogLevels } from 'loglin' | ||
export declare const basicFormatter: FormatterFunction; | ||
export declare const basicFormatter: FormatterFunction | ||
export declare function chalkBgColor(name: string): chalk.Chalk; | ||
export declare function chalkBgColor(name: string): chalk.Chalk | ||
export declare function chalkColor(name: string): chalk.Chalk; | ||
export declare function chalkColor(name: string): chalk.Chalk | ||
export declare type ColorsConfig = Partial<Record<LogLevels, Partial<LevelColor>>>; | ||
export declare type ColorsConfig = Partial< | ||
Record<LogLevels, Partial<LevelColor>> | ||
> | ||
export declare const consoleReporter: CreatedReporter; | ||
export declare const consoleReporter: CreatedReporter | ||
export declare const createLabel: (level: LogLevels, colors?: LevelColors) => string; | ||
export declare const createLabel: ( | ||
level: LogLevels, | ||
colors?: LevelColors | ||
) => string | ||
export declare const defaultColors: LevelColors; | ||
export declare const defaultColors: LevelColors | ||
export declare const fancyFormatter: FormatterFunction<FancyFormatterOptions>; | ||
export declare const fancyFormatter: FormatterFunction<FancyFormatterOptions> | ||
export declare interface FancyFormatterOptions { | ||
colors?: ColorsConfig; | ||
colors?: ColorsConfig | ||
} | ||
export declare function formatError(error: Error): string | undefined; | ||
export declare function formatError(error: Error): string | undefined | ||
export declare const isThemeTextColor: (color: string) => boolean; | ||
export declare const isThemeTextColor: (color: string) => boolean | ||
export declare interface LevelColor { | ||
text: string; | ||
labelBackground: string; | ||
labelText: string; | ||
text: string | ||
labelBackground: string | ||
labelText: string | ||
} | ||
export declare type LevelColors = Record<LogLevels, LevelColor>; | ||
export declare type LevelColors = Record<LogLevels, LevelColor> | ||
export declare function mergeColors(colors: ColorsConfig): Record<LogLevels, LevelColor>; | ||
export declare function mergeColors( | ||
colors: ColorsConfig | ||
): Record<LogLevels, LevelColor> | ||
export declare function parseStack(stack: string): string[]; | ||
export declare function parseStack(stack: string): string[] | ||
export { } | ||
export {} |
/*! | ||
* @loglin/reporter-console v0.0.4 | ||
* @loglin/reporter-console v0.0.6 | ||
* (c) 2021 Marvin Rudolph | ||
@@ -4,0 +4,0 @@ * @license MIT |
{ | ||
"name": "@loglin/reporter-console", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "@loglin/reporter-console", | ||
@@ -20,3 +20,3 @@ "repository": { | ||
"chalk": "^4.1.0", | ||
"loglin": "^0.0.5" | ||
"loglin": "^0.0.6" | ||
}, | ||
@@ -26,3 +26,17 @@ "publishConfig": { | ||
}, | ||
"gitHead": "04a9fd64bbdb32751b1bd9460869ea78399557c9" | ||
"keywords": [ | ||
"fast", | ||
"logger", | ||
"node", | ||
"simple", | ||
"typescript", | ||
"types", | ||
"reporter", | ||
"console", | ||
"fancy" | ||
], | ||
"scripts": { | ||
"release": "node updateVersions && node ../../scripts/release.js", | ||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s --commit-path ." | ||
} | ||
} |
339
13998
6
Updatedloglin@^0.0.6