@seek/logger
Advanced tools
Comparing version 6.1.0 to 6.1.1
@@ -5,3 +5,3 @@ "use strict"; | ||
const getHeaders = ({ _header, header, headers }) => _header || header || headers; | ||
const getStatus = ({ statusCode, status }) => statusCode || status; | ||
const getStatus = ({ statusCode, status }) => statusCode ?? status; | ||
const isObject = (value) => { | ||
@@ -8,0 +8,0 @@ const type = typeof value; |
import { err, errWithCause } from 'pino-std-serializers'; | ||
const getHeaders = ({ _header, header, headers }) => _header || header || headers; | ||
const getStatus = ({ statusCode, status }) => statusCode || status; | ||
const getStatus = ({ statusCode, status }) => statusCode ?? status; | ||
const isObject = (value) => { | ||
@@ -5,0 +5,0 @@ const type = typeof value; |
@@ -1,3 +0,3 @@ | ||
import pino from 'pino'; | ||
import { FormatterOptions } from '../formatters'; | ||
import type pino from 'pino'; | ||
import type { FormatterOptions } from '../formatters'; | ||
export declare const withRedaction: (dest: pino.DestinationStream, redactText: FormatterOptions['redactText']) => pino.DestinationStream; |
@@ -1,2 +0,3 @@ | ||
import pino, { LoggerOptions } from 'pino'; | ||
import type { LoggerOptions } from 'pino'; | ||
import type pino from 'pino'; | ||
export interface FormatterOptions { | ||
@@ -3,0 +4,0 @@ /** |
import pino from 'pino'; | ||
import { FormatterOptions } from './formatters'; | ||
import { type FormatterOptions } from './formatters'; | ||
export { pino }; | ||
@@ -4,0 +4,0 @@ export type LoggerOptions = pino.LoggerOptions & FormatterOptions; |
@@ -7,3 +7,3 @@ export declare const defaultRedact: never[]; | ||
paths: string[]; | ||
censor?: string | ((value: any, path: string[]) => any); | ||
censor?: string | ((value: unknown, path: string[]) => unknown); | ||
remove?: boolean; | ||
@@ -10,0 +10,0 @@ } |
{ | ||
"name": "@seek/logger", | ||
"version": "6.1.0", | ||
"version": "6.1.1", | ||
"private": false, | ||
@@ -44,5 +44,5 @@ "description": "Standardized logging", | ||
"devDependencies": { | ||
"@types/split2": "3.2.1", | ||
"skuba": "6.0.2", | ||
"split2": "4.1.0" | ||
"@types/split2": "4.2.0", | ||
"skuba": "7.1.1", | ||
"split2": "4.2.0" | ||
}, | ||
@@ -49,0 +49,0 @@ "engines": { |
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
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
26138
317