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

@pnpm/logger

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/logger - npm Package Compare versions

Comparing version 5.0.0 to 5.1.0

2

lib/index.d.ts
export { logger, globalInfo, globalWarn, Logger, } from './logger';
export { createStreamParser, streamParser, LogBase, LogLevel, } from './streamParser';
export { createStreamParser, streamParser, LogBaseDebug, LogBaseError, LogBaseInfo, LogBaseWarn, LogBase, LogLevel, } from './streamParser';
export { writeToConsole } from './writeToConsole';

@@ -1,12 +0,25 @@

export declare type LogLevel = 'error' | 'warn' | 'info' | 'debug';
export declare type LogBase = ({
level: 'debug' | 'error';
} | {
level: 'info' | 'warn';
export type LogLevel = 'error' | 'warn' | 'info' | 'debug';
export interface LogBaseTemplate {
level?: LogLevel;
prefix?: string;
message?: string;
}
export interface LogBaseDebug extends LogBaseTemplate {
level: 'debug';
}
export interface LogBaseError extends LogBaseTemplate {
level: 'error';
}
export interface LogBaseInfo extends LogBaseTemplate {
level: 'info';
prefix: string;
message: string;
}) & {
level: LogLevel;
};
export declare type Reporter = (logObj: LogBase) => void;
}
export interface LogBaseWarn extends LogBaseTemplate {
level: 'warn';
prefix: string;
message: string;
}
export type LogBase = LogBaseDebug | LogBaseError | LogBaseInfo | LogBaseWarn;
export type Reporter = (logObj: LogBase) => void;
export interface StreamParser {

@@ -13,0 +26,0 @@ on: (event: 'data', reporter: Reporter) => void;

{
"name": "@pnpm/logger",
"version": "5.0.0",
"version": "5.1.0",
"description": "Logger for pnpm",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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