Socket
Socket
Sign inDemoInstall

@pnp/logging

Package Overview
Dependencies
Maintainers
7
Versions
1024
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 1.3.2 to 2.0.0-0

index.js

8

package.json
{
"name": "@pnp/logging",
"version": "1.3.2",
"version": "2.0.0-0",
"description": "pnp - light-weight, subscribable logging framework",
"main": "./dist/logging.es5.umd.js",
"main": "./index.js",
"typings": "./index",

@@ -21,5 +21,3 @@ "dependencies": {

"url": "git:github.com/pnp/pnpjs"
},
"module": "./dist/logging.es5.js",
"es2015": "./dist/logging.js"
}
}

@@ -1,19 +0,7 @@

import { LogEntry } from "./logentry";
import { ILogEntry, ILogListener } from "./types";
/**
* Interface that defines a log listner
*
*/
export interface LogListener {
/**
* Any associated data that a given logging listener may choose to log or ignore
*
* @param entry The information to be logged
*/
log(entry: LogEntry): void;
}
/**
* Implementation of LogListener which logs to the console
*
*/
export declare class ConsoleListener implements LogListener {
export declare class ConsoleListener implements ILogListener {
/**

@@ -24,3 +12,3 @@ * Any associated data that a given logging listener may choose to log or ignore

*/
log(entry: LogEntry): void;
log(entry: ILogEntry): void;
/**

@@ -37,3 +25,3 @@ * Formats the message

*/
export declare class FunctionListener implements LogListener {
export declare class FunctionListener implements ILogListener {
private method;

@@ -46,3 +34,3 @@ /**

*/
constructor(method: (entry: LogEntry) => void);
constructor(method: (entry: ILogEntry) => void);
/**

@@ -53,4 +41,4 @@ * Any associated data that a given logging listener may choose to log or ignore

*/
log(entry: LogEntry): void;
log(entry: ILogEntry): void;
}
//# sourceMappingURL=listeners.d.ts.map

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

import { LogListener } from "./listeners";
import { LogEntry } from "./logentry";
import { LogLevel } from "./loglevel";
import { ILogListener, ILogEntry, LogLevel } from "./types";
/**

@@ -20,7 +18,7 @@ * Class used to subscribe ILogListener and log messages throughout an application

*/
static subscribe(...listeners: LogListener[]): void;
static subscribe(...listeners: ILogListener[]): void;
/**
* Clears the subscribers collection, returning the collection before modifiction
*/
static clearSubscribers(): LogListener[];
static clearSubscribers(): ILogListener[];
/**

@@ -49,3 +47,3 @@ * Gets the current subscriber count

*/
static log(entry: LogEntry): void;
static log(entry: ILogEntry): void;
/**

@@ -52,0 +50,0 @@ * Logs an error object to the subscribed listeners

export { Logger } from "./logger";
export { LogEntry } from "./logentry";
export { LogLevel } from "./loglevel";
export { LogListener, ConsoleListener, FunctionListener } from "./listeners";
export { ConsoleListener, FunctionListener } from "./listeners";
export * from "./types";
//# sourceMappingURL=logging.d.ts.map
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc