From df80d0d3acfe5376f24453a874941ad48b2293a5 Mon Sep 17 00:00:00 2001 From: njl07 Date: Tue, 20 Mar 2018 12:44:47 +0100 Subject: [PATCH] release(version): v5.4.0 --- src/module/interfaces/options.ts | 4 ++-- src/module/services/engine/ng.service.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/module/interfaces/options.ts b/src/module/interfaces/options.ts index ef0b8e6..df61c8f 100644 --- a/src/module/interfaces/options.ts +++ b/src/module/interfaces/options.ts @@ -1,12 +1,12 @@ import { NgModuleFactory, StaticProvider, Type } from '@angular/core'; -import { ɵa } from '@nguniversal/module-map-ngfactory-loader'; +import { ɵa as ModuleMap } from '@nguniversal/module-map-ngfactory-loader'; /** * These are the allowed options for the module */ export interface NgSetupOptions { bootstrap: Type<{}> | NgModuleFactory<{}>; - lazyModuleMap: ɵa; + lazyModuleMap: ModuleMap; staticContent: StaticContent; providers?: StaticProvider[]; } diff --git a/src/module/services/engine/ng.service.ts b/src/module/services/engine/ng.service.ts index f44a4b4..8f1b143 100755 --- a/src/module/services/engine/ng.service.ts +++ b/src/module/services/engine/ng.service.ts @@ -2,7 +2,7 @@ import { HttpServerService, Inject, Injectable, Request, HTTPHandlerResponse, Re import { Compiler, CompilerFactory, NgModuleFactory, StaticProvider, Type } from '@angular/core'; import { INITIAL_CONFIG, platformDynamicServer, renderModuleFactory } from '@angular/platform-server'; import { ResourceLoader } from '@angular/compiler'; -import { ɵa, provideModuleMap } from '@nguniversal/module-map-ngfactory-loader'; +import { ɵa as ModuleMap, provideModuleMap } from '@nguniversal/module-map-ngfactory-loader'; import { Observable } from 'rxjs/Observable'; import { toArray, filter, flatMap, map, tap } from 'rxjs/operators'; @@ -56,7 +56,7 @@ export class NgEngineService { * * store original function to stub it in tests */ - private _provideModuleMap: (moduleMap: ɵa) => StaticProvider; + private _provideModuleMap: (moduleMap: ModuleMap) => StaticProvider; /** * Service constructor @@ -246,7 +246,7 @@ export class NgEngineService { * @private */ private _extraProviders(request: Request, reply: ReplyNoContinue, providers: StaticProvider[], - lazyModuleMap: ɵa, filePath: string): StaticProvider[] { + lazyModuleMap: ModuleMap, filePath: string): StaticProvider[] { return providers!.concat( providers!, this._provideModuleMap(lazyModuleMap),