@comunica/core
Advanced tools
Comparing version 1.9.2 to 1.13.0
@@ -39,5 +39,5 @@ import { Map } from "immutable"; | ||
* @param {ActionContext} context An optional context. | ||
* @return {Logger} The logger or null. | ||
* @return {Logger} The logger or undefined. | ||
*/ | ||
static getContextLogger(context: ActionContext): Logger; | ||
static getContextLogger(context?: ActionContext): Logger | undefined; | ||
/** | ||
@@ -85,9 +85,9 @@ * Check if this actor can run the given action, | ||
deinitialize(): Promise<any>; | ||
protected getDefaultLogData(context: ActionContext, data?: any): any; | ||
protected logTrace(context: ActionContext, message: string, data?: any): void; | ||
protected logDebug(context: ActionContext, message: string, data?: any): void; | ||
protected logInfo(context: ActionContext, message: string, data?: any): void; | ||
protected logWarn(context: ActionContext, message: string, data?: any): void; | ||
protected logError(context: ActionContext, message: string, data?: any): void; | ||
protected logFatal(context: ActionContext, message: string, data?: any): void; | ||
protected getDefaultLogData(context: ActionContext | undefined, data?: any): any; | ||
protected logTrace(context: ActionContext | undefined, message: string, data?: any): void; | ||
protected logDebug(context: ActionContext | undefined, message: string, data?: any): void; | ||
protected logInfo(context: ActionContext | undefined, message: string, data?: any): void; | ||
protected logWarn(context: ActionContext | undefined, message: string, data?: any): void; | ||
protected logError(context: ActionContext | undefined, message: string, data?: any): void; | ||
protected logFatal(context: ActionContext | undefined, message: string, data?: any): void; | ||
} | ||
@@ -94,0 +94,0 @@ export interface IActorArgs<I extends IAction, T extends IActorTest, O extends IActorOutput> { |
@@ -44,6 +44,6 @@ "use strict"; | ||
* @param {ActionContext} context An optional context. | ||
* @return {Logger} The logger or null. | ||
* @return {Logger} The logger or undefined. | ||
*/ | ||
static getContextLogger(context) { | ||
return context ? context.get(Logger_1.KEY_CONTEXT_LOG) : null; | ||
return context && context.get(Logger_1.KEY_CONTEXT_LOG); | ||
} | ||
@@ -50,0 +50,0 @@ /** |
@@ -17,2 +17,3 @@ "use strict"; | ||
} | ||
exports.Logger = Logger; | ||
/** | ||
@@ -31,3 +32,2 @@ * All available logging levels. | ||
}; | ||
exports.Logger = Logger; | ||
/** | ||
@@ -34,0 +34,0 @@ * @type {string} Context entry for a logger instance. |
{ | ||
"name": "@comunica/core", | ||
"version": "1.9.2", | ||
"version": "1.13.0", | ||
"description": "Lightweight, semantic and modular actor framework", | ||
@@ -68,3 +68,3 @@ "lsd:module": "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/core", | ||
}, | ||
"gitHead": "bb6eef43498d23416b4e063d93e73c49f5575ff4" | ||
"gitHead": "cd8df73fe091e3d7413147ec5301b47be2de392a" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49712