node-pluginsmanager-plugin 5.0.8 → 5.0.9
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,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import
|
|
2
|
+
import { EventEmitter } from "events";
|
|
3
3
|
import { OpenApiDocument } from "express-openapi-validate";
|
|
4
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;
|
|
@@ -8,7 +8,7 @@ export interface iDescriptorUserOptions {
|
|
|
8
8
|
"descriptor"?: OpenApiDocument;
|
|
9
9
|
"logger"?: tLogger;
|
|
10
10
|
}
|
|
11
|
-
export default class DescriptorUser extends
|
|
11
|
+
export default class DescriptorUser extends EventEmitter {
|
|
12
12
|
initialized: boolean;
|
|
13
13
|
protected _descriptorValidated: boolean;
|
|
14
14
|
protected _externalRessourcesDirectory: string;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
// deps
|
|
7
4
|
// natives
|
|
8
|
-
const events_1 =
|
|
5
|
+
const events_1 = require("events");
|
|
9
6
|
// locals
|
|
10
7
|
const checkObject_1 = require("../checkers/TypeError/checkObject");
|
|
11
8
|
const checkNonEmptyObject_1 = require("../checkers/RangeError/checkNonEmptyObject");
|
|
@@ -16,7 +13,7 @@ const LOG_TYPES_ALLOWED = ["log", "info", "success", "warning", "error"];
|
|
|
16
13
|
// module
|
|
17
14
|
// Please note the fact that "_initWorkSpace" and "_releaseWorkSpace" method MUST be re-writted in Mediator class, and not in MediatorUser childs.
|
|
18
15
|
// Please note the fact that "init" and "release" method MUST NOT be re-writted. Each child has is own init logic.
|
|
19
|
-
class DescriptorUser extends events_1.
|
|
16
|
+
class DescriptorUser extends events_1.EventEmitter {
|
|
20
17
|
// constructor
|
|
21
18
|
constructor(options) {
|
|
22
19
|
super();
|