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

@pnp/logging

Package Overview
Dependencies
Maintainers
7
Versions
1079
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnp/logging - npm Package Compare versions

Comparing version 2.0.0-11 to 2.0.0-12

5

index.d.ts

@@ -1,4 +0,3 @@

export { Logger } from "./logger";
export { ConsoleListener, FunctionListener } from "./listeners";
export * from "./types";
export * from "./logger";
export * from "./listeners";
//# sourceMappingURL=index.d.ts.map

@@ -1,4 +0,3 @@

export { Logger } from "./logger";
export { ConsoleListener, FunctionListener } from "./listeners";
export * from "./types";
export * from "./logger";
export * from "./listeners";
//# sourceMappingURL=index.js.map

2

listeners.d.ts

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

import { ILogEntry, ILogListener } from "./types";
import { ILogEntry, ILogListener } from "./logger";
/**

@@ -3,0 +3,0 @@ * Implementation of LogListener which logs to the console

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

import { ILogListener, ILogEntry, LogLevel } from "./types";
/**

@@ -54,2 +53,42 @@ * Class used to subscribe ILogListener and log messages throughout an application

}
/**
* A set of logging levels
*/
export declare const enum LogLevel {
Verbose = 0,
Info = 1,
Warning = 2,
Error = 3,
Off = 99
}
/**
* Interface that defines a log entry
*
*/
export interface ILogEntry {
/**
* The main message to be logged
*/
message: string;
/**
* The level of information this message represents
*/
level: LogLevel;
/**
* Any associated data that a given logging listener may choose to log or ignore
*/
data?: any;
}
/**
* Interface that defines a log listner
*
*/
export interface ILogListener {
/**
* Any associated data that a given logging listener may choose to log or ignore
*
* @param entry The information to be logged
*/
log(entry: ILogEntry): void;
}
//# sourceMappingURL=logger.d.ts.map

@@ -131,2 +131,13 @@ /**

}());
/**
* A set of logging levels
*/
export var LogLevel;
(function (LogLevel) {
LogLevel[LogLevel["Verbose"] = 0] = "Verbose";
LogLevel[LogLevel["Info"] = 1] = "Info";
LogLevel[LogLevel["Warning"] = 2] = "Warning";
LogLevel[LogLevel["Error"] = 3] = "Error";
LogLevel[LogLevel["Off"] = 99] = "Off";
})(LogLevel || (LogLevel = {}));
//# sourceMappingURL=logger.js.map
{
"name": "@pnp/logging",
"version": "2.0.0-11",
"version": "2.0.0-12",
"description": "pnp - light-weight, subscribable logging framework",

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

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