@sigodenjs/dee-srv-create
Advanced tools
Comparing version 0.18.1 to 0.18.2
@@ -59,2 +59,10 @@ "use strict"; | ||
})); | ||
yield Promise.all(Object.keys(ctx.srvs).map((srvName) => __awaiter(this, void 0, void 0, function* () { | ||
const srv = ctx.srvs[srvName]; | ||
if (srv[dee_srv_1.INIT_KEY]) { | ||
debug(`running srv ${srvName}'s init`); | ||
yield srv[dee_srv_1.INIT_KEY](); | ||
debug(`done srv ${srvName}'s init`); | ||
} | ||
}))); | ||
event.removeAllListeners(); | ||
@@ -86,5 +94,2 @@ }); | ||
const srv = yield init(ctx, options.args, options.ctor, deps); | ||
if (srv[dee_srv_1.INIT_KEY]) { | ||
yield srv[dee_srv_1.INIT_KEY](); | ||
} | ||
debug(`finish starting srv ${srvName}`); | ||
@@ -91,0 +96,0 @@ ctx.srvs[srvName] = srv; |
{ | ||
"name": "@sigodenjs/dee-srv-create", | ||
"version": "0.18.1", | ||
"version": "0.18.2", | ||
"description": "Utils for creating batch of dee-srvs", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9488
119