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 5.0.0 to 5.0.1

3

lib-commonjs/destination/index.js

@@ -6,3 +6,3 @@ "use strict";

const redactedDummy = '[Redacted]';
exports.withRedaction = (dest) => {
const withRedaction = (dest) => {
const write = dest.write.bind(dest);

@@ -15,2 +15,3 @@ dest.write = (input) => {

};
exports.withRedaction = withRedaction;
//# sourceMappingURL=index.js.map

@@ -5,9 +5,10 @@ "use strict";

const dtrim_1 = require("dtrim");
exports.createFormatters = (opts) => {
const createFormatters = (opts) => {
var _a;
const trim = dtrim_1.trimmer({ depth: (_a = opts.maxObjectDepth) !== null && _a !== void 0 ? _a : 4 });
const trim = (0, dtrim_1.trimmer)({ depth: (_a = opts.maxObjectDepth) !== null && _a !== void 0 ? _a : 4 });
return {
log: (input) => trim(input),
log: (input) => trim(input), // eslint-disable-line @typescript-eslint/ban-types
};
};
exports.createFormatters = createFormatters;
//# sourceMappingURL=index.js.map

@@ -39,3 +39,3 @@ "use strict";

exports.default = (opts = {}, destination = pino_1.default.destination(1)) => {
const formatters = formatters_1.createFormatters(opts);
const formatters = (0, formatters_1.createFormatters)(opts);
opts.redact = redact.addDefaultRedactPathStrings(opts.redact);

@@ -46,4 +46,4 @@ opts.serializers = Object.assign(Object.assign({}, serializers_1.default), opts.serializers);

opts.timestamp = () => `,"timestamp":"${new Date().toISOString()}"`;
return pino_1.default(opts, destination_1.withRedaction(destination));
return (0, pino_1.default)(opts, (0, destination_1.withRedaction)(destination));
};
//# sourceMappingURL=index.js.map

@@ -6,3 +6,3 @@ "use strict";

exports.defaultRedact = [];
exports.addDefaultRedactPathStrings = (redact) => {
const addDefaultRedactPathStrings = (redact) => {
if (!redact) {

@@ -16,2 +16,3 @@ return exports.defaultRedact;

};
exports.addDefaultRedactPathStrings = addDefaultRedactPathStrings;
//# sourceMappingURL=index.js.map

@@ -6,5 +6,5 @@ import { trimmer } from 'dtrim';

return {
log: (input) => trim(input),
log: (input) => trim(input), // eslint-disable-line @typescript-eslint/ban-types
};
};
//# sourceMappingURL=index.js.map

@@ -5,3 +5,4 @@ import pino from 'pino';

export declare type LoggerOptions = pino.LoggerOptions & FormatterOptions;
declare const _default: (opts?: LoggerOptions, destination?: pino.DestinationStream) => pino.Logger;
export declare type Logger = pino.Logger;
declare const _default: (opts?: LoggerOptions, destination?: pino.DestinationStream) => Logger;
/**

@@ -8,0 +9,0 @@ * Creates a logger that can enforce a strict logged object shape.

@@ -17,3 +17,3 @@ {

"@types/split2": "2.1.6",
"skuba": "3.9.2",
"skuba": "3.15.2",
"split2": "3.2.2"

@@ -61,3 +61,3 @@ },

"types": "./lib-types/index.d.ts",
"version": "5.0.0"
"version": "5.0.1"
}

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

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