@nodeswork/kiws
Advanced tools
Comparing version 0.0.9 to 0.0.10
/** | ||
* Bootstrap series modules. | ||
*/ | ||
export declare function bootstrap(nwModel?: any, options?: { | ||
export declare function bootstrap(modules: any | any[], options?: { | ||
noStart?: boolean; | ||
}): void; |
@@ -10,7 +10,8 @@ "use strict"; | ||
*/ | ||
function bootstrap(nwModel, options = {}) { | ||
function bootstrap(modules, options = {}) { | ||
if (options.noStart) { | ||
process.env[constants_1.constants.env.NO_SERVER] = 'true'; | ||
} | ||
const modules = _.filter([nwModel, modules_1.CoreModule], (x) => x); | ||
modules = _.flatten([modules]); | ||
modules.push(modules_1.CoreModule); | ||
for (const m of modules) { | ||
@@ -17,0 +18,0 @@ m.$register(); |
{ | ||
"name": "@nodeswork/kiws", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "Koa-based Injectable Web Service", | ||
@@ -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
114895
1219