diesis-electrician
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "diesis-electrician", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Adapter to use electrician components in diesis", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -63,4 +63,6 @@ const { promisify } = require('util') | ||
.map((name) => startRegistry[name]) | ||
startRegistry[name] = dependency(dependencies, decorateComp(comp.start)) | ||
stopRegistry[name] = dependency(decorateComp(comp.stop)) | ||
const startFunc = comp.start || function (cb) {cb()} | ||
const stopFunc = comp.stop || function (cb) {cb()} | ||
startRegistry[name] = dependency(dependencies, decorateComp(startFunc.bind(comp))) | ||
stopRegistry[name] = dependency(decorateComp(stopFunc.bind(comp))) | ||
}) | ||
@@ -67,0 +69,0 @@ |
7991
176