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

winston

Package Overview
Dependencies
Maintainers
8
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

winston - npm Package Compare versions

Comparing version 3.8.0 to 3.8.1

50

index.d.ts

@@ -6,3 +6,3 @@ // Type definitions for winston 3.0

import * as NodeJSStream from "stream";
import * as NodeJSStream from 'stream';

@@ -23,3 +23,4 @@ import * as logform from 'logform';

interface ExceptionHandler {
class ExceptionHandler {
constructor(logger: Logger);
logger: Logger;

@@ -35,7 +36,6 @@ handlers: Map<any, any>;

getTrace(err: Error): object;
}
new(logger: Logger): ExceptionHandler;
}
interface RejectionHandler {
class RejectionHandler {
constructor(logger: Logger);
logger: Logger;

@@ -51,4 +51,2 @@ handlers: Map<any, any>;

getTrace(err: Error): object;
new(logger: Logger): RejectionHandler;
}

@@ -62,7 +60,7 @@

until?: Date;
order?: "asc" | "desc";
order?: 'asc' | 'desc';
fields: any;
}
interface Profiler {
class Profiler {
logger: Logger;

@@ -73,3 +71,8 @@ start: Number;

type LogCallback = (error?: any, level?: string, message?: string, meta?: any) => void;
type LogCallback = (
error?: any,
level?: string,
message?: string,
meta?: any
) => void;

@@ -82,3 +85,3 @@ interface LogEntry {

interface LogMethod {
interface LogMethod {
(level: string, message: string, callback: LogCallback): Logger;

@@ -113,3 +116,5 @@ (level: string, message: string, meta: any, callback: LogCallback): Logger;

interface Logger extends NodeJSStream.Transform {
class Logger extends NodeJSStream.Transform {
constructor(options?: LoggerOptions);
silent: boolean;

@@ -152,3 +157,6 @@ format: logform.Format;

query(options?: QueryOptions, callback?: (err: Error, results: any) => void): any;
query(
options?: QueryOptions,
callback?: (err: Error, results: any) => void
): any;
stream(options?: any): NodeJS.ReadableStream;

@@ -170,7 +178,5 @@

isSillyEnabled(): boolean;
new(options?: LoggerOptions): Logger;
}
interface Container {
class Container {
loggers: Map<string, Logger>;

@@ -184,9 +190,6 @@ options: LoggerOptions;

new(options?: LoggerOptions): Container;
constructor(options?: LoggerOptions);
}
let version: string;
let ExceptionHandler: ExceptionHandler;
let RejectionHandler: RejectionHandler;
let Container: Container;
let loggers: Container;

@@ -208,3 +211,6 @@

let log: LogMethod;
let query: (options?: QueryOptions, callback?: (err: Error, results: any) => void) => any;
let query: (
options?: QueryOptions,
callback?: (err: Error, results: any) => void
) => any;
let stream: (options?: any) => NodeJS.ReadableStream;

@@ -211,0 +217,0 @@ let add: (transport: Transport) => Logger;

{
"name": "winston",
"description": "A logger for just about everything.",
"version": "3.8.0",
"version": "3.8.1",
"author": "Charlie Robbins <charlie.robbins@gmail.com>",

@@ -6,0 +6,0 @@ "maintainers": [

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