node-pluginsmanager-plugin 5.0.3 → 5.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import Events from "events";
3
3
  import { OpenApiDocument } from "express-openapi-validate";
4
- export declare type tLogType = "log" | "info" | "success" | "warning" | "error";
4
+ export declare type tLogType = "data" | "debug" | "log" | "info" | "success" | "warning" | "error";
5
5
  export declare type tLogger = (type: tLogType, message: string | Error, bold?: boolean, pluginName?: string) => void;
6
6
  export interface iDescriptorUserOptions {
7
7
  "externalRessourcesDirectory": string;
@@ -2,6 +2,7 @@ import MediatorUser from "./MediatorUser";
2
2
  import Server from "./Server";
3
3
  import { Server as WebSocketServer } from "ws";
4
4
  import { Server as SocketIOServer } from "socket.io";
5
+ import { tLogger } from "./DescriptorUser";
5
6
  import { iIncomingMessage, iServerResponse } from "./Server";
6
7
  export interface iOrchestratorOptions {
7
8
  "externalRessourcesDirectory": string;
@@ -9,6 +10,7 @@ export interface iOrchestratorOptions {
9
10
  "descriptorFile": string;
10
11
  "mediatorFile": string;
11
12
  "serverFile": string;
13
+ "logger"?: tLogger;
12
14
  }
13
15
  export default class Orchestrator extends MediatorUser {
14
16
  protected _Server: Server | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-pluginsmanager-plugin",
3
- "version": "5.0.3",
3
+ "version": "5.0.4",
4
4
  "description": "An abstract parent plugin for node-pluginsmanager",
5
5
 
6
6
  "type": "commonjs",