@composite-fetcher/with-logging
Advanced tools
Comparing version 0.2.2 to 0.3.0
@@ -0,1 +1,6 @@ | ||
// src/withLogging.ts | ||
import { | ||
BasePlugin | ||
} from "@composite-fetcher/core"; | ||
// src/ConsoleLogger.ts | ||
@@ -30,5 +35,6 @@ var ConsoleLogger = class { | ||
// src/withLogging.ts | ||
var withLoggingPlugin = class { | ||
var withLoggingPlugin = class extends BasePlugin { | ||
logger; | ||
constructor(logger) { | ||
super(); | ||
this.logger = logger || new ConsoleLogger(); | ||
@@ -35,0 +41,0 @@ } |
@@ -1,2 +0,2 @@ | ||
import { PluginHandlerContext, PluginLifecycleHook } from '@composite-fetcher/core'; | ||
import { BasePlugin, PluginHandlerContext, PluginLifecycleHook } from '@composite-fetcher/core'; | ||
@@ -14,3 +14,3 @@ interface Logger { | ||
declare class withLoggingPlugin { | ||
declare class withLoggingPlugin extends BasePlugin { | ||
private logger; | ||
@@ -17,0 +17,0 @@ constructor(logger?: Logger); |
@@ -0,1 +1,6 @@ | ||
// src/withLogging.ts | ||
import { | ||
BasePlugin | ||
} from "@composite-fetcher/core"; | ||
// src/ConsoleLogger.ts | ||
@@ -30,5 +35,6 @@ var ConsoleLogger = class { | ||
// src/withLogging.ts | ||
var withLoggingPlugin = class { | ||
var withLoggingPlugin = class extends BasePlugin { | ||
logger; | ||
constructor(logger) { | ||
super(); | ||
this.logger = logger || new ConsoleLogger(); | ||
@@ -35,0 +41,0 @@ } |
{ | ||
"name": "@composite-fetcher/with-logging", | ||
"description": "A simple logging plugin for composite fetcher", | ||
"version": "0.2.2", | ||
"version": "0.3.0", | ||
"author": "Teofanis Papadopulos", | ||
@@ -6,0 +6,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
11391
269