🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@furystack/logging

Package Overview
Dependencies
Maintainers
1
Versions
158
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@furystack/logging - npm Package Compare versions

Comparing version

to
2.0.25

14

dist/abstract-logger.d.ts

@@ -71,3 +71,3 @@ import { LeveledLogEntry, LogEntry } from './log-entries';

*/
addEntry: <T>(entry: LeveledLogEntry<T>) => Promise<void>;
addEntry: <T>(entry: Pick<LeveledLogEntry<T>, "message" | "data" | "level">) => Promise<void>;
/**

@@ -79,3 +79,3 @@ * Adds a Verbose log entry. Verbose is the noisiest level, rarely (if ever) enabled for a production app.

*/
verbose: <T_1>(entry: LogEntry<T_1>) => Promise<void>;
verbose: <T_1>(entry: Pick<LogEntry<T_1>, "message" | "data">) => Promise<void>;
/**

@@ -87,3 +87,3 @@ * Adds a debug log entry. Debug is used for internal system events that are not necessarily observable from the outside, but useful when determining how something happened.

*/
debug: <T_2>(entry: LogEntry<T_2>) => Promise<void>;
debug: <T_2>(entry: Pick<LogEntry<T_2>, "message" | "data">) => Promise<void>;
/**

@@ -95,3 +95,3 @@ * Adds an Information log entry. Information events describe things happening in the system that correspond to its responsibilities and functions. Generally these are the observable actions the system can perform.

*/
information: <T_3>(entry: LogEntry<T_3>) => Promise<void>;
information: <T_3>(entry: Pick<LogEntry<T_3>, "message" | "data">) => Promise<void>;
/**

@@ -103,3 +103,3 @@ * Adds a Warning log entry. When service is degraded, endangered, or may be behaving outside of its expected parameters, Warning level events are used.

*/
warning: <T_4>(entry: LogEntry<T_4>) => Promise<void>;
warning: <T_4>(entry: Pick<LogEntry<T_4>, "message" | "data">) => Promise<void>;
/**

@@ -111,3 +111,3 @@ * Adds an Error log entry. When functionality is unavailable or expectations broken, an Error event is used.

*/
error: <T_5>(entry: LogEntry<T_5>) => Promise<void>;
error: <T_5>(entry: Pick<LogEntry<T_5>, "message" | "data">) => Promise<void>;
/**

@@ -119,5 +119,5 @@ * Adds a Fatal log entry. The most critical level, Fatal events demand immediate attention.

*/
fatal: <T_6>(entry: LogEntry<T_6>) => Promise<void>;
fatal: <T_6>(entry: Pick<LogEntry<T_6>, "message" | "data">) => Promise<void>;
};
}
//# sourceMappingURL=abstract-logger.d.ts.map

@@ -48,3 +48,3 @@ import { AbstractLogger } from './abstract-logger';

*/
export declare const defaultFormat: <T>(entry: LeveledLogEntry<T>) => (string | undefined)[];
export declare const defaultFormat: <T>(entry: LeveledLogEntry<T>) => string[];
/**

@@ -54,3 +54,3 @@ * @param entry the log entry

*/
export declare const verboseFormat: <T>(entry: LeveledLogEntry<T>) => (string | T | undefined)[];
export declare const verboseFormat: <T>(entry: LeveledLogEntry<T>) => (string | T)[];
/**

@@ -57,0 +57,0 @@ * A logger implementation that dumps log messages to the console

@@ -37,3 +37,3 @@ /**

*/
scope?: string;
scope: string;
/**

@@ -40,0 +40,0 @@ * The message string

@@ -5,11 +5,7 @@ import { LeveledLogEntry, LogEntry } from './log-entries';

*/
export declare type LogEntryWithoutScope<T> = Exclude<LogEntry<T>, {
scope: string;
}>;
export declare type LogEntryWithoutScope<T> = Omit<LogEntry<T>, 'scope'>;
/**
* Leveled log entry without scope variable
*/
export declare type LeveledLogEntryWithoutScope<T> = Exclude<LeveledLogEntry<T>, {
scope: string;
}>;
export declare type LeveledLogEntryWithoutScope<T> = Omit<LeveledLogEntry<T>, 'scope'>;
/**

@@ -16,0 +12,0 @@ * A logger instance with predefined scopes

{
"name": "@furystack/logging",
"version": "2.0.24",
"version": "2.0.25",
"description": "Logging API for FuryStack package",

@@ -32,8 +32,8 @@ "main": "dist/index.js",

"dependencies": {
"@furystack/inject": "^4.0.17",
"@furystack/utils": "^1.1.10",
"@furystack/inject": "^4.0.18",
"@furystack/utils": "^1.1.11",
"tslib": "^1.11.1"
},
"typings": "./dist/index.d.ts",
"gitHead": "7bc33e6ebee975d23e4e782e37e398472c726b1d"
"gitHead": "da155803c6c0122eb2285825d39d621fda637b28"
}

@@ -42,3 +42,3 @@ /**

*/
scope?: string
scope: string

@@ -45,0 +45,0 @@ /**

@@ -6,3 +6,3 @@ import { LeveledLogEntry, LogEntry } from './log-entries'

*/
export type LogEntryWithoutScope<T> = Exclude<LogEntry<T>, { scope: string }>
export type LogEntryWithoutScope<T> = Omit<LogEntry<T>, 'scope'>

@@ -12,3 +12,3 @@ /**

*/
export type LeveledLogEntryWithoutScope<T> = Exclude<LeveledLogEntry<T>, { scope: string }>
export type LeveledLogEntryWithoutScope<T> = Omit<LeveledLogEntry<T>, 'scope'>

@@ -15,0 +15,0 @@ /**

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