pino-pretty
Advanced tools
Comparing version 9.0.0 to 9.0.1
@@ -18,2 +18,22 @@ // Type definitions for pino-pretty 7.0 | ||
declare function colorizerFactory( | ||
useColors?: boolean, | ||
customColors?: [number, string][], | ||
useOnlyCustomProps?: boolean, | ||
): { | ||
( | ||
level?: number | string, | ||
opts?: { | ||
customLevels?: { [level: number]: string }; | ||
customLevelNames?: { [name: string]: number }; | ||
}, | ||
): string, | ||
message: (input: string | number) => string, | ||
greyMessage: (input: string | number) => string, | ||
} | ||
declare function prettyFactory( | ||
options: PrettyOptions_, | ||
): (inputData: any) => string | ||
interface PrettyOptions_ { | ||
@@ -160,5 +180,7 @@ /** | ||
type PrettyStream = Transform & OnUnknown; | ||
type ColorizerFactory = typeof colorizerFactory; | ||
type PrettyFactory = typeof prettyFactory; | ||
} | ||
export default PinoPretty; | ||
export { PinoPretty, PrettyOptions_ as PrettyOptions }; | ||
export { PinoPretty, PrettyOptions_ as PrettyOptions, colorizerFactory, prettyFactory }; |
{ | ||
"name": "pino-pretty", | ||
"version": "9.0.0", | ||
"version": "9.0.1", | ||
"description": "Prettifier for Pino log lines", | ||
@@ -5,0 +5,0 @@ "type": "commonjs", |
import { expectType } from "tsd"; | ||
import pretty from "../../"; | ||
import PinoPretty, { PinoPretty as PinoPrettyNamed, PrettyOptions } from "../../"; | ||
import PinoPretty, { | ||
PinoPretty as PinoPrettyNamed, | ||
PrettyOptions, | ||
colorizerFactory, | ||
prettyFactory | ||
} from "../../"; | ||
import PinoPrettyDefault from "../../"; | ||
@@ -74,1 +79,3 @@ import * as PinoPrettyStar from "../../"; | ||
expectType<any>(PinoPrettyCjs(options)); | ||
expectType<PinoPretty.ColorizerFactory>(colorizerFactory) | ||
expectType<PinoPretty.PrettyFactory>(prettyFactory) |
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
340320
3842