node-pluginsmanager 2.4.0 → 2.4.1
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.
|
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
// deps
|
|
7
7
|
// natives
|
|
8
8
|
const path_1 = require("path");
|
|
9
|
-
const node_pluginsmanager_plugin_1 = require("node-pluginsmanager-plugin");
|
|
10
9
|
// locals
|
|
11
|
-
const checkOrchestrator_1 = __importDefault(require("./checkers/checkOrchestrator"));
|
|
12
10
|
const checkAbsoluteDirectory_1 = __importDefault(require("./checkers/checkAbsoluteDirectory"));
|
|
11
|
+
const checkOrchestrator_1 = __importDefault(require("./checkers/checkOrchestrator"));
|
|
12
|
+
const checkFunction_1 = __importDefault(require("./checkers/checkFunction"));
|
|
13
13
|
// module
|
|
14
14
|
function createPluginByDirectory(directory, externalRessourcesDirectory, logger) {
|
|
15
15
|
return (0, checkAbsoluteDirectory_1.default)("createPluginByDirectory/directory", directory).then(() => {
|
|
@@ -33,7 +33,7 @@ function createPluginByDirectory(directory, externalRessourcesDirectory, logger)
|
|
|
33
33
|
return Promise.resolve(Plugin);
|
|
34
34
|
}
|
|
35
35
|
}).then((Plugin) => {
|
|
36
|
-
return (0,
|
|
36
|
+
return (0, checkFunction_1.default)("createPluginByDirectory/function", Plugin).then(() => {
|
|
37
37
|
const pluginBaseNameDirectory = (0, path_1.basename)(directory);
|
|
38
38
|
const plugin = new Plugin({
|
|
39
39
|
// usefull for inherited Orchestrators
|