Comparing version 8.15.1 to 8.15.2
@@ -449,1 +449,4 @@ 'use strict' | ||
/* eslint-enable */ | ||
module.exports.default = pino | ||
module.exports.pino = pino |
@@ -61,3 +61,3 @@ # API | ||
One of `'fatal'`, `'error'`, `'warn'`, `'info`', `'debug'`, `'trace'` or `'silent'`. | ||
One of `'fatal'`, `'error'`, `'warn'`, `'info'`, `'debug'`, `'trace'` or `'silent'`. | ||
@@ -64,0 +64,0 @@ Additional levels can be added to the instance via the `customLevels` option. |
'use strict' | ||
module.exports = { version: '8.15.1' } | ||
module.exports = { version: '8.15.2' } |
{ | ||
"name": "pino", | ||
"version": "8.15.1", | ||
"version": "8.15.2", | ||
"description": "super fast, all natural json logger", | ||
@@ -5,0 +5,0 @@ "main": "pino.js", |
@@ -48,3 +48,3 @@ // Project: https://github.com/pinojs/pino.git, http://getpino.io | ||
interface LoggerExtras<Options = LoggerOptions> extends EventEmitter { | ||
export interface LoggerExtras<Options = LoggerOptions> extends EventEmitter { | ||
/** | ||
@@ -51,0 +51,0 @@ * Exposes the Pino package version. Also available on the exported pino function. |
import { expectAssignable, expectType } from "tsd"; | ||
import pino from "../../"; | ||
import type {LevelWithSilent, Logger, LogFn, P, DestinationStreamWithMetadata } from "../../pino"; | ||
import type {LevelWithSilent, Logger, LogFn, P, DestinationStreamWithMetadata, LoggerExtras } from "../../pino"; | ||
@@ -9,2 +9,3 @@ // NB: can also use `import * as pino`, but that form is callable as `pino()` | ||
const log = pino(); | ||
expectAssignable<LoggerExtras>(log); | ||
expectType<Logger>(log); | ||
@@ -11,0 +12,0 @@ expectType<LogFn>(log.info); |
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
681394
13309