File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " angular-ssr" ,
3
- "version" : " 0.10.22 " ,
3
+ "version" : " 0.10.23 " ,
4
4
"description" : " Angular server-side rendering implementation" ,
5
5
"main" : " build/index.js" ,
6
6
"typings" : " build/index.d.ts" ,
68
68
"reflect-metadata" : " >=0.1.10" ,
69
69
"rxjs" : " >=5.0.1" ,
70
70
"zone.js" : " >=0.8" ,
71
- "typescript" : " >=2.1.0 " ,
71
+ "typescript" : " >=2.3.2 " ,
72
72
"webpack" : " >=2.3.0"
73
73
},
74
74
"dependencies" : {
114
114
"reflect-metadata" : " >=0.1.10" ,
115
115
"ts-jest" : " ^20.0.4" ,
116
116
"tslint" : " 4.4.2" ,
117
- "typescript" : " >=2.2.0 " ,
117
+ "typescript" : " >=2.3.2 " ,
118
118
"webpack" : " >=2.4.1" ,
119
119
"zone.js" : " >=0.8.9"
120
120
},
Original file line number Diff line number Diff line change 4
4
CompilerOptions ,
5
5
Injectable ,
6
6
Injector ,
7
- Inject ,
8
7
NgModuleFactory ,
9
8
NgModuleRef ,
10
9
NgZone ,
@@ -25,7 +24,7 @@ export class ServerPlatform implements PlatformRef {
25
24
26
25
private destroyers = new Array < ( ) => void > ( ) ;
27
26
28
- constructor ( @ Inject ( Injector ) public injector : Injector ) { }
27
+ constructor ( public injector : Injector ) { }
29
28
30
29
compileModule < M > ( moduleType : Type < M > , compilerOptions : CompilerOptions | Array < CompilerOptions > = [ ] ) : Promise < NgModuleFactory < M > > {
31
30
const compiler = this . getCompiler ( compilerOptions ) ;
@@ -101,3 +100,8 @@ export class ServerPlatform implements PlatformRef {
101
100
destroyers . forEach ( handler => handler ( ) ) ;
102
101
}
103
102
}
103
+
104
+ Object . assign ( ServerPlatform , {
105
+ decorators : [ { type : Injectable } ] ,
106
+ ctorParameters : ( ) => [ { type : Injector } ]
107
+ } ) ;
You can’t perform that action at this time.
0 commit comments