@seek/logger
Advanced tools
Comparing version 6.2.2 to 7.0.0
@@ -5,3 +5,7 @@ "use strict"; | ||
// TODO: Redact cookies? | ||
exports.defaultRedact = []; | ||
exports.defaultRedact = [ | ||
"header['user-email']", | ||
"headers['user-email']", | ||
"req.headers['user-email']", | ||
]; | ||
const addDefaultRedactPathStrings = (redact) => { | ||
@@ -14,5 +18,5 @@ if (!redact) { | ||
} | ||
return redact; | ||
return { ...redact, paths: [...exports.defaultRedact, ...redact.paths] }; | ||
}; | ||
exports.addDefaultRedactPathStrings = addDefaultRedactPathStrings; | ||
//# sourceMappingURL=index.js.map |
// TODO: Redact cookies? | ||
export const defaultRedact = []; | ||
export const defaultRedact = [ | ||
"header['user-email']", | ||
"headers['user-email']", | ||
"req.headers['user-email']", | ||
]; | ||
export const addDefaultRedactPathStrings = (redact) => { | ||
@@ -10,4 +14,4 @@ if (!redact) { | ||
} | ||
return redact; | ||
return { ...redact, paths: [...defaultRedact, ...redact.paths] }; | ||
}; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
export declare const defaultRedact: never[]; | ||
export declare const defaultRedact: string[]; | ||
/** | ||
@@ -10,3 +10,7 @@ * Private interface vendored from `pino` | ||
} | ||
export declare const addDefaultRedactPathStrings: (redact: string[] | redactOptions | undefined) => string[] | redactOptions; | ||
export declare const addDefaultRedactPathStrings: (redact: string[] | redactOptions | undefined) => string[] | { | ||
paths: string[]; | ||
censor?: string | ((value: unknown, path: string[]) => unknown) | undefined; | ||
remove?: boolean | undefined; | ||
}; | ||
export {}; |
{ | ||
"name": "@seek/logger", | ||
"version": "6.2.2", | ||
"version": "7.0.0", | ||
"private": false, | ||
@@ -49,3 +49,3 @@ "description": "Standardized logging", | ||
"@types/split2": "4.2.3", | ||
"skuba": "7.5.1", | ||
"skuba": "8.0.0", | ||
"split2": "4.2.0" | ||
@@ -52,0 +52,0 @@ }, |
@@ -109,2 +109,5 @@ # @seek/logger | ||
Some property paths are redacted by default. See `defaultRedact` in | ||
[src/redact/index.ts](src/redact/index.ts) for the path list. | ||
Additional property paths can be redacted using the `redact` logger option as per | ||
@@ -111,0 +114,0 @@ [pino redaction]. |
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
37916
456
214