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

@dxos/log

Package Overview
Dependencies
Maintainers
7
Versions
2279
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dxos/log - npm Package Compare versions

Comparing version 0.1.32 to 0.1.33

2

dist/lib/browser/meta.json

@@ -1,1 +0,1 @@

{"inputs":{"packages/common/log/src/config.ts":{"bytes":3477,"imports":[]},"packages/common/log/src/scope.ts":{"bytes":3793,"imports":[]},"packages/common/log/src/context.ts":{"bytes":6783,"imports":[{"path":"packages/common/log/src/scope.ts","kind":"import-statement","original":"./scope"}]},"packages/common/log/src/platform/browser/index.ts":{"bytes":1225,"imports":[]},"packages/common/log/src/platform/index.ts":{"bytes":368,"imports":[{"path":"packages/common/log/src/platform/browser/index.ts","kind":"import-statement","original":"./node"}]},"packages/common/log/src/processors/console-processor.ts":{"bytes":10898,"imports":[{"path":"chalk","kind":"import-statement","external":true},{"path":"lodash.pickby","kind":"import-statement","external":true},{"path":"@dxos/node-std/util","kind":"import-statement","external":true},{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"../config"},{"path":"packages/common/log/src/context.ts","kind":"import-statement","original":"../context"}]},"packages/common/log/src/processors/debug-processor.ts":{"bytes":986,"imports":[{"path":"@dxos/node-std/util","kind":"import-statement","external":true}]},"packages/common/log/src/processors/browser-processor.ts":{"bytes":12988,"imports":[{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"../config"},{"path":"packages/common/log/src/context.ts","kind":"import-statement","original":"../context"}]},"packages/common/log/src/processors/index.ts":{"bytes":617,"imports":[{"path":"packages/common/log/src/processors/console-processor.ts","kind":"import-statement","original":"./console-processor"},{"path":"packages/common/log/src/processors/debug-processor.ts","kind":"import-statement","original":"./debug-processor"},{"path":"packages/common/log/src/processors/browser-processor.ts","kind":"import-statement","original":"./browser-processor"}]},"packages/common/log/src/options.ts":{"bytes":7216,"imports":[{"path":"lodash.defaultsdeep","kind":"import-statement","external":true},{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"./config"},{"path":"packages/common/log/src/platform/index.ts","kind":"import-statement","original":"./platform"},{"path":"packages/common/log/src/processors/index.ts","kind":"import-statement","original":"./processors"}]},"packages/common/log/src/log.ts":{"bytes":6323,"imports":[{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"./config"},{"path":"packages/common/log/src/options.ts","kind":"import-statement","original":"./options"}]},"packages/common/log/src/experimental/ownership.ts":{"bytes":9152,"imports":[{"path":"@dxos/node-std/util","kind":"import-statement","external":true}]},"packages/common/log/src/index.ts":{"bytes":948,"imports":[{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"./config"},{"path":"packages/common/log/src/context.ts","kind":"import-statement","original":"./context"},{"path":"packages/common/log/src/log.ts","kind":"import-statement","original":"./log"},{"path":"packages/common/log/src/processors/index.ts","kind":"import-statement","original":"./processors"},{"path":"packages/common/log/src/scope.ts","kind":"import-statement","original":"./scope"},{"path":"packages/common/log/src/experimental/ownership.ts","kind":"import-statement","original":"./experimental/ownership"}]}},"outputs":{"packages/common/log/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":31614},"packages/common/log/dist/lib/browser/index.mjs":{"imports":[{"path":"lodash.defaultsdeep","kind":"import-statement","external":true},{"path":"chalk","kind":"import-statement","external":true},{"path":"lodash.pickby","kind":"import-statement","external":true},{"path":"@dxos/node-std/util","kind":"import-statement","external":true},{"path":"@dxos/node-std/util","kind":"import-statement","external":true},{"path":"@dxos/node-std/util","kind":"import-statement","external":true}],"exports":["BROWSER_PROCESSOR","CONSOLE_PROCESSOR","DEBUG_PROCESSOR","DEFAULT_FORMATTER","LogLevel","LogProcessorType","SHORT_FORMATTER","gatherLogInfoFromScope","getContextFromEntry","getCurrentOwnershipScope","levels","log","logInfo","shortLevelName","shouldLog","truncate"],"entryPoint":"packages/common/log/src/index.ts","inputs":{"packages/common/log/src/config.ts":{"bytesInOutput":720},"packages/common/log/src/index.ts":{"bytesInOutput":0},"packages/common/log/src/scope.ts":{"bytesInOutput":662},"packages/common/log/src/context.ts":{"bytesInOutput":1034},"packages/common/log/src/options.ts":{"bytesInOutput":1603},"packages/common/log/src/platform/browser/index.ts":{"bytesInOutput":140},"packages/common/log/src/platform/index.ts":{"bytesInOutput":0},"packages/common/log/src/processors/console-processor.ts":{"bytesInOutput":2235},"packages/common/log/src/processors/index.ts":{"bytesInOutput":0},"packages/common/log/src/processors/debug-processor.ts":{"bytesInOutput":156},"packages/common/log/src/processors/browser-processor.ts":{"bytesInOutput":2704},"packages/common/log/src/log.ts":{"bytesInOutput":1200},"packages/common/log/src/experimental/ownership.ts":{"bytesInOutput":826}},"bytes":12119}}}
{"inputs":{"packages/common/log/src/config.ts":{"bytes":3811,"imports":[]},"packages/common/log/src/scope.ts":{"bytes":3793,"imports":[]},"packages/common/log/src/context.ts":{"bytes":6783,"imports":[{"path":"packages/common/log/src/scope.ts","kind":"import-statement","original":"./scope"}]},"packages/common/log/src/platform/browser/index.ts":{"bytes":1225,"imports":[]},"packages/common/log/src/platform/index.ts":{"bytes":368,"imports":[{"path":"packages/common/log/src/platform/browser/index.ts","kind":"import-statement","original":"./node"}]},"packages/common/log/src/processors/console-processor.ts":{"bytes":11024,"imports":[{"path":"chalk","kind":"import-statement","external":true},{"path":"lodash.pickby","kind":"import-statement","external":true},{"path":"@dxos/node-std/util","kind":"import-statement","external":true},{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"../config"},{"path":"packages/common/log/src/context.ts","kind":"import-statement","original":"../context"}]},"packages/common/log/src/processors/debug-processor.ts":{"bytes":986,"imports":[{"path":"@dxos/node-std/util","kind":"import-statement","external":true}]},"packages/common/log/src/processors/browser-processor.ts":{"bytes":12988,"imports":[{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"../config"},{"path":"packages/common/log/src/context.ts","kind":"import-statement","original":"../context"}]},"packages/common/log/src/processors/index.ts":{"bytes":617,"imports":[{"path":"packages/common/log/src/processors/console-processor.ts","kind":"import-statement","original":"./console-processor"},{"path":"packages/common/log/src/processors/debug-processor.ts","kind":"import-statement","original":"./debug-processor"},{"path":"packages/common/log/src/processors/browser-processor.ts","kind":"import-statement","original":"./browser-processor"}]},"packages/common/log/src/options.ts":{"bytes":7261,"imports":[{"path":"lodash.defaultsdeep","kind":"import-statement","external":true},{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"./config"},{"path":"packages/common/log/src/platform/index.ts","kind":"import-statement","original":"./platform"},{"path":"packages/common/log/src/processors/index.ts","kind":"import-statement","original":"./processors"}]},"packages/common/log/src/log.ts":{"bytes":7187,"imports":[{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"./config"},{"path":"packages/common/log/src/options.ts","kind":"import-statement","original":"./options"}]},"packages/common/log/src/experimental/ownership.ts":{"bytes":9152,"imports":[{"path":"@dxos/node-std/util","kind":"import-statement","external":true}]},"packages/common/log/src/index.ts":{"bytes":948,"imports":[{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"./config"},{"path":"packages/common/log/src/context.ts","kind":"import-statement","original":"./context"},{"path":"packages/common/log/src/log.ts","kind":"import-statement","original":"./log"},{"path":"packages/common/log/src/processors/index.ts","kind":"import-statement","original":"./processors"},{"path":"packages/common/log/src/scope.ts","kind":"import-statement","original":"./scope"},{"path":"packages/common/log/src/experimental/ownership.ts","kind":"import-statement","original":"./experimental/ownership"}]}},"outputs":{"packages/common/log/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":32363},"packages/common/log/dist/lib/browser/index.mjs":{"imports":[{"path":"lodash.defaultsdeep","kind":"import-statement","external":true},{"path":"chalk","kind":"import-statement","external":true},{"path":"lodash.pickby","kind":"import-statement","external":true},{"path":"@dxos/node-std/util","kind":"import-statement","external":true},{"path":"@dxos/node-std/util","kind":"import-statement","external":true},{"path":"@dxos/node-std/util","kind":"import-statement","external":true}],"exports":["BROWSER_PROCESSOR","CONSOLE_PROCESSOR","DEBUG_PROCESSOR","DEFAULT_FORMATTER","LogLevel","LogProcessorType","SHORT_FORMATTER","gatherLogInfoFromScope","getContextFromEntry","getCurrentOwnershipScope","levels","log","logInfo","shortLevelName","shouldLog","truncate"],"entryPoint":"packages/common/log/src/index.ts","inputs":{"packages/common/log/src/config.ts":{"bytesInOutput":818},"packages/common/log/src/index.ts":{"bytesInOutput":0},"packages/common/log/src/scope.ts":{"bytesInOutput":662},"packages/common/log/src/context.ts":{"bytesInOutput":1034},"packages/common/log/src/options.ts":{"bytesInOutput":1618},"packages/common/log/src/platform/browser/index.ts":{"bytesInOutput":140},"packages/common/log/src/platform/index.ts":{"bytesInOutput":0},"packages/common/log/src/processors/console-processor.ts":{"bytesInOutput":2263},"packages/common/log/src/processors/index.ts":{"bytesInOutput":0},"packages/common/log/src/processors/debug-processor.ts":{"bytesInOutput":156},"packages/common/log/src/processors/browser-processor.ts":{"bytesInOutput":2704},"packages/common/log/src/log.ts":{"bytesInOutput":1387},"packages/common/log/src/experimental/ownership.ts":{"bytesInOutput":826}},"bytes":12447}}}

@@ -1,1 +0,1 @@

{"inputs":{"packages/common/log/src/config.ts":{"bytes":3477,"imports":[]},"packages/common/log/src/scope.ts":{"bytes":3793,"imports":[]},"packages/common/log/src/context.ts":{"bytes":6783,"imports":[{"path":"packages/common/log/src/scope.ts","kind":"import-statement","original":"./scope"}]},"packages/common/log/src/platform/node/index.ts":{"bytes":2356,"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"js-yaml","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true}]},"packages/common/log/src/platform/index.ts":{"bytes":368,"imports":[{"path":"packages/common/log/src/platform/node/index.ts","kind":"import-statement","original":"./node"}]},"packages/common/log/src/processors/console-processor.ts":{"bytes":10898,"imports":[{"path":"chalk","kind":"import-statement","external":true},{"path":"lodash.pickby","kind":"import-statement","external":true},{"path":"node:util","kind":"import-statement","external":true},{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"../config"},{"path":"packages/common/log/src/context.ts","kind":"import-statement","original":"../context"}]},"packages/common/log/src/processors/debug-processor.ts":{"bytes":986,"imports":[{"path":"node:util","kind":"import-statement","external":true}]},"packages/common/log/src/processors/browser-processor.ts":{"bytes":12988,"imports":[{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"../config"},{"path":"packages/common/log/src/context.ts","kind":"import-statement","original":"../context"}]},"packages/common/log/src/processors/index.ts":{"bytes":617,"imports":[{"path":"packages/common/log/src/processors/console-processor.ts","kind":"import-statement","original":"./console-processor"},{"path":"packages/common/log/src/processors/debug-processor.ts","kind":"import-statement","original":"./debug-processor"},{"path":"packages/common/log/src/processors/browser-processor.ts","kind":"import-statement","original":"./browser-processor"}]},"packages/common/log/src/options.ts":{"bytes":7216,"imports":[{"path":"lodash.defaultsdeep","kind":"import-statement","external":true},{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"./config"},{"path":"packages/common/log/src/platform/index.ts","kind":"import-statement","original":"./platform"},{"path":"packages/common/log/src/processors/index.ts","kind":"import-statement","original":"./processors"}]},"packages/common/log/src/log.ts":{"bytes":6323,"imports":[{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"./config"},{"path":"packages/common/log/src/options.ts","kind":"import-statement","original":"./options"}]},"packages/common/log/src/experimental/ownership.ts":{"bytes":9152,"imports":[{"path":"node:util","kind":"import-statement","external":true}]},"packages/common/log/src/index.ts":{"bytes":948,"imports":[{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"./config"},{"path":"packages/common/log/src/context.ts","kind":"import-statement","original":"./context"},{"path":"packages/common/log/src/log.ts","kind":"import-statement","original":"./log"},{"path":"packages/common/log/src/processors/index.ts","kind":"import-statement","original":"./processors"},{"path":"packages/common/log/src/scope.ts","kind":"import-statement","original":"./scope"},{"path":"packages/common/log/src/experimental/ownership.ts","kind":"import-statement","original":"./experimental/ownership"}]}},"outputs":{"packages/common/log/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":32566},"packages/common/log/dist/lib/node/index.cjs":{"imports":[{"path":"lodash.defaultsdeep","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"js-yaml","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"chalk","kind":"require-call","external":true},{"path":"lodash.pickby","kind":"require-call","external":true},{"path":"node:util","kind":"require-call","external":true},{"path":"node:util","kind":"require-call","external":true},{"path":"node:util","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/common/log/src/index.ts","inputs":{"packages/common/log/src/index.ts":{"bytesInOutput":719},"packages/common/log/src/config.ts":{"bytesInOutput":720},"packages/common/log/src/scope.ts":{"bytesInOutput":662},"packages/common/log/src/context.ts":{"bytesInOutput":1038},"packages/common/log/src/options.ts":{"bytesInOutput":1647},"packages/common/log/src/platform/node/index.ts":{"bytesInOutput":542},"packages/common/log/src/platform/index.ts":{"bytesInOutput":0},"packages/common/log/src/processors/console-processor.ts":{"bytesInOutput":2390},"packages/common/log/src/processors/index.ts":{"bytesInOutput":0},"packages/common/log/src/processors/debug-processor.ts":{"bytesInOutput":165},"packages/common/log/src/processors/browser-processor.ts":{"bytesInOutput":2707},"packages/common/log/src/log.ts":{"bytesInOutput":1200},"packages/common/log/src/experimental/ownership.ts":{"bytesInOutput":830}},"bytes":14969}}}
{"inputs":{"packages/common/log/src/config.ts":{"bytes":3811,"imports":[]},"packages/common/log/src/scope.ts":{"bytes":3793,"imports":[]},"packages/common/log/src/context.ts":{"bytes":6783,"imports":[{"path":"packages/common/log/src/scope.ts","kind":"import-statement","original":"./scope"}]},"packages/common/log/src/platform/node/index.ts":{"bytes":2356,"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"js-yaml","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true}]},"packages/common/log/src/platform/index.ts":{"bytes":368,"imports":[{"path":"packages/common/log/src/platform/node/index.ts","kind":"import-statement","original":"./node"}]},"packages/common/log/src/processors/console-processor.ts":{"bytes":11024,"imports":[{"path":"chalk","kind":"import-statement","external":true},{"path":"lodash.pickby","kind":"import-statement","external":true},{"path":"node:util","kind":"import-statement","external":true},{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"../config"},{"path":"packages/common/log/src/context.ts","kind":"import-statement","original":"../context"}]},"packages/common/log/src/processors/debug-processor.ts":{"bytes":986,"imports":[{"path":"node:util","kind":"import-statement","external":true}]},"packages/common/log/src/processors/browser-processor.ts":{"bytes":12988,"imports":[{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"../config"},{"path":"packages/common/log/src/context.ts","kind":"import-statement","original":"../context"}]},"packages/common/log/src/processors/index.ts":{"bytes":617,"imports":[{"path":"packages/common/log/src/processors/console-processor.ts","kind":"import-statement","original":"./console-processor"},{"path":"packages/common/log/src/processors/debug-processor.ts","kind":"import-statement","original":"./debug-processor"},{"path":"packages/common/log/src/processors/browser-processor.ts","kind":"import-statement","original":"./browser-processor"}]},"packages/common/log/src/options.ts":{"bytes":7261,"imports":[{"path":"lodash.defaultsdeep","kind":"import-statement","external":true},{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"./config"},{"path":"packages/common/log/src/platform/index.ts","kind":"import-statement","original":"./platform"},{"path":"packages/common/log/src/processors/index.ts","kind":"import-statement","original":"./processors"}]},"packages/common/log/src/log.ts":{"bytes":7187,"imports":[{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"./config"},{"path":"packages/common/log/src/options.ts","kind":"import-statement","original":"./options"}]},"packages/common/log/src/experimental/ownership.ts":{"bytes":9152,"imports":[{"path":"node:util","kind":"import-statement","external":true}]},"packages/common/log/src/index.ts":{"bytes":948,"imports":[{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"./config"},{"path":"packages/common/log/src/context.ts","kind":"import-statement","original":"./context"},{"path":"packages/common/log/src/log.ts","kind":"import-statement","original":"./log"},{"path":"packages/common/log/src/processors/index.ts","kind":"import-statement","original":"./processors"},{"path":"packages/common/log/src/scope.ts","kind":"import-statement","original":"./scope"},{"path":"packages/common/log/src/experimental/ownership.ts","kind":"import-statement","original":"./experimental/ownership"}]}},"outputs":{"packages/common/log/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":33315},"packages/common/log/dist/lib/node/index.cjs":{"imports":[{"path":"lodash.defaultsdeep","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"js-yaml","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"chalk","kind":"require-call","external":true},{"path":"lodash.pickby","kind":"require-call","external":true},{"path":"node:util","kind":"require-call","external":true},{"path":"node:util","kind":"require-call","external":true},{"path":"node:util","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/common/log/src/index.ts","inputs":{"packages/common/log/src/index.ts":{"bytesInOutput":719},"packages/common/log/src/config.ts":{"bytesInOutput":818},"packages/common/log/src/scope.ts":{"bytesInOutput":662},"packages/common/log/src/context.ts":{"bytesInOutput":1038},"packages/common/log/src/options.ts":{"bytesInOutput":1662},"packages/common/log/src/platform/node/index.ts":{"bytesInOutput":542},"packages/common/log/src/platform/index.ts":{"bytesInOutput":0},"packages/common/log/src/processors/console-processor.ts":{"bytesInOutput":2418},"packages/common/log/src/processors/index.ts":{"bytesInOutput":0},"packages/common/log/src/processors/debug-processor.ts":{"bytesInOutput":165},"packages/common/log/src/processors/browser-processor.ts":{"bytesInOutput":2707},"packages/common/log/src/log.ts":{"bytesInOutput":1387},"packages/common/log/src/experimental/ownership.ts":{"bytesInOutput":830}},"bytes":15297}}}

@@ -6,2 +6,3 @@ import { LogProcessor } from './context';

export declare enum LogLevel {
TRACE = -1,
DEBUG = 0,

@@ -16,2 +17,3 @@ INFO = 1,

export declare const shortLevelName: {
[-1]: string;
0: string;

@@ -53,5 +55,5 @@ 1: string;

filters?: LogFilter[];
processor: LogProcessor;
processors: LogProcessor[];
prefix?: string;
}
//# sourceMappingURL=config.d.ts.map

@@ -1,2 +0,2 @@

import { LogOptions } from './config';
import { LogConfig, LogOptions } from './config';
import { LogContext, LogMetadata } from './context';

@@ -11,2 +11,3 @@ /**

interface LogMethods {
trace: LogFunction;
debug: LogFunction;

@@ -24,2 +25,3 @@ info: LogFunction;

config: (options: LogOptions) => void;
runtimeConfig: LogConfig;
}

@@ -26,0 +28,0 @@ /**

{
"name": "@dxos/log",
"version": "0.1.32",
"version": "0.1.33",
"description": "Logger",

@@ -24,3 +24,3 @@ "homepage": "https://dxos.org",

"lodash.pickby": "^4.6.0",
"@dxos/node-std": "0.1.32"
"@dxos/node-std": "0.1.33"
},

@@ -27,0 +27,0 @@ "devDependencies": {

@@ -11,2 +11,3 @@ //

export enum LogLevel {
TRACE = -1,
DEBUG = 0,

@@ -19,2 +20,3 @@ INFO = 1,

export const levels: { [index: string]: LogLevel } = {
trace: LogLevel.TRACE,
debug: LogLevel.DEBUG,

@@ -27,2 +29,3 @@ info: LogLevel.INFO,

export const shortLevelName = {
[LogLevel.TRACE]: 'T',
[LogLevel.DEBUG]: 'D',

@@ -68,4 +71,4 @@ [LogLevel.INFO]: 'I',

filters?: LogFilter[];
processor: LogProcessor;
processors: LogProcessor[];
prefix?: string;
}

@@ -18,2 +18,3 @@ //

interface LogMethods {
trace: LogFunction;
debug: LogFunction;

@@ -32,2 +33,3 @@ info: LogFunction;

config: (options: LogOptions) => void;
runtimeConfig: LogConfig;
}

@@ -40,5 +42,6 @@

const createLog = (): LogImp => {
const log: LogImp = (...params) => processLog(LogLevel.DEBUG, ...params);
const log: LogImp = ((...params) => processLog(LogLevel.DEBUG, ...params)) as LogImp;
log._config = getConfig();
Object.defineProperty(log, 'runtimeConfig', { get: () => log._config });

@@ -53,2 +56,3 @@ // Set config.

log.trace = (...params) => processLog(LogLevel.TRACE, ...params);
log.debug = (...params) => processLog(LogLevel.DEBUG, ...params);

@@ -69,3 +73,3 @@ log.info = (...params) => processLog(LogLevel.INFO, ...params);

const processLog = (level: LogLevel, message: string, context?: LogContext, meta?: LogMetadata, error?: Error) => {
log._config.processor(log._config, { level, message, context, meta, error });
log._config.processors.forEach((processor) => processor(log._config, { level, message, context, meta, error }));
};

@@ -72,0 +76,0 @@

@@ -58,5 +58,5 @@ //

filters: parseFilter(options.filter ?? LogLevel.INFO),
processor: options.processor ? processors[options.processor] : defaultProcessor,
processors: [options.processor ? processors[options.processor] : defaultProcessor],
prefix: options.prefix
};
};

@@ -13,2 +13,3 @@ //

const LEVEL_COLORS: Record<LogLevel, typeof chalk.ForegroundColor> = {
[LogLevel.TRACE]: 'gray',
[LogLevel.DEBUG]: 'gray',

@@ -15,0 +16,0 @@ [LogLevel.INFO]: 'white',

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