Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@seek/logger

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@seek/logger - npm Package Compare versions

Comparing version 6.2.2 to 7.0.0

8

lib-commonjs/redact/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc