@neoskop/nem
Advanced tools
Comparing version 0.1.3 to 0.2.0
@@ -41,3 +41,3 @@ /// <reference types="express" /> | ||
constructor(injector: Injector); | ||
getRootProvider(moduleType: Type<any>): Provider[]; | ||
static getRootProvider(moduleType: Type<any>): Provider[]; | ||
createRouterFromModule(moduleType: Type<any>, options?: { | ||
@@ -51,4 +51,4 @@ providers?: Provider[]; | ||
}): IModuleContext; | ||
protected assertModuleAnnotation(moduleType: Type<any>): NemModule; | ||
protected assertNemModuleWithProviders(arg: NemModuleWithProviders | Type<any>): NemModuleWithProviders; | ||
protected static assertModuleAnnotation(moduleType: Type<any>): NemModule; | ||
protected static assertNemModuleWithProviders(arg: NemModuleWithProviders | Type<any>): NemModuleWithProviders; | ||
protected handleImport(module: [string | RegExp, Type<any> | NemModuleWithProviders] | Type<any> | NemModuleWithProviders, router: IRouter<any>): void; | ||
@@ -55,0 +55,0 @@ protected handleMiddleware(middleware: any | any[], router: IRouter<any>): void; |
@@ -25,3 +25,4 @@ "use strict"; | ||
} | ||
ModuleRouterFactory.prototype.getRootProvider = function (moduleType) { | ||
ModuleRouterFactory_1 = ModuleRouterFactory; | ||
ModuleRouterFactory.getRootProvider = function (moduleType) { | ||
var _this = this; | ||
@@ -111,3 +112,3 @@ var metadata = this.assertModuleAnnotation(moduleType); | ||
var ctx = { router: router, moduleType: moduleType }; | ||
ctx.metadata = this.assertModuleAnnotation(moduleType); | ||
ctx.metadata = ModuleRouterFactory_1.assertModuleAnnotation(moduleType); | ||
ctx.injector = injector_1.InjectorFactory.create({ | ||
@@ -122,3 +123,3 @@ parent: this.injector, | ||
}; | ||
ModuleRouterFactory.prototype.assertModuleAnnotation = function (moduleType) { | ||
ModuleRouterFactory.assertModuleAnnotation = function (moduleType) { | ||
var annotations = annotations_1.Annotator.getCtorAnnotations(moduleType); | ||
@@ -143,3 +144,3 @@ try { | ||
}; | ||
ModuleRouterFactory.prototype.assertNemModuleWithProviders = function (arg) { | ||
ModuleRouterFactory.assertNemModuleWithProviders = function (arg) { | ||
if (typeof arg === 'object' && arg.hasOwnProperty('nemModule')) { | ||
@@ -155,3 +156,3 @@ return arg; | ||
var _a = tslib_1.__read(module, 2), path = _a[0], mod = _a[1]; | ||
var nemModule = this.assertNemModuleWithProviders(mod); | ||
var nemModule = ModuleRouterFactory_1.assertNemModuleWithProviders(mod); | ||
debug('handle import', path, nemModule.nemModule.name); | ||
@@ -165,3 +166,3 @@ router.use(path, this.createRouterFromModule(nemModule.nemModule, { | ||
else { | ||
var _b = this.assertNemModuleWithProviders(module), nemModule = _b.nemModule, providers = _b.providers; | ||
var _b = ModuleRouterFactory_1.assertNemModuleWithProviders(module), nemModule = _b.nemModule, providers = _b.providers; | ||
debug('handle import', nemModule.name); | ||
@@ -182,3 +183,3 @@ this.createRouterFromModule(nemModule, { providers: providers, router: router }); | ||
}; | ||
ModuleRouterFactory = tslib_1.__decorate([ | ||
ModuleRouterFactory = ModuleRouterFactory_1 = tslib_1.__decorate([ | ||
injector_1.Injectable(), | ||
@@ -188,4 +189,5 @@ tslib_1.__metadata("design:paramtypes", [injector_1.Injector]) | ||
return ModuleRouterFactory; | ||
var ModuleRouterFactory_1; | ||
}()); | ||
exports.ModuleRouterFactory = ModuleRouterFactory; | ||
//# sourceMappingURL=module-router.js.map |
{ | ||
"name": "@neoskop/nem", | ||
"version": "0.1.3", | ||
"version": "0.2.0", | ||
"description": "Strucktured modules to build express apps", | ||
@@ -5,0 +5,0 @@ "main": "lib/public_api.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
2318270
5
5944