Skip to content

Commit 6c05bcc

Browse files
committed
Missing await on variant transition call
1 parent 555933d commit 6c05bcc

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-ssr",
3-
"version": "0.1.52",
3+
"version": "0.1.53",
44
"description": "Angular server-side rendering implementation",
55
"main": "build/index.js",
66
"typings": "build/index.d.ts",

source/exception.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import chalk = require('chalk');
33

44
export class Exception extends Error {
55
constructor(msg: string, public innerException?: Error) {
6-
super(innerException ? `${msg} -> ${innerException.stack}` : chalk.red(msg));
6+
super(innerException ? `${chalk.red(msg)} -> ${chalk.red(innerException.stack)}` : chalk.red(msg));
77
}
88
}
99

1010
export class AggregateException extends Exception {
1111
constructor(public exceptions: Array<Exception | Error>) {
12-
super(chalk.red(`Multiple exceptions occurred (${exceptions.length}) [${exceptions.map(e => e.stack).join(', ')}]`));
12+
super(`Multiple exceptions occurred (${exceptions.length}) ${chalk.red(`[${exceptions.map(e => e.stack).join(', ')}]`)}`);
1313
}
1414

1515
get stack(): string {

source/output/interprocess.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {OutputProducer} from './producer';
33
import {Snapshot} from '../snapshot';
44

55
export class InterprocessOutput implements OutputProducer {
6-
initialize(): Promise<void> {
6+
initialize() {
77
throw new NotImplementedException();
88
}
99

source/output/producer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {Snapshot} from '../snapshot';
22

33
export interface OutputProducer {
4-
initialize(): Promise<void>;
4+
initialize(): void;
55

66
write<V>(snapshot: Snapshot<V>): Promise<void>;
77

source/snapshot/creator/bootstrap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const executeBootstrap = async <M>(moduleRef: NgModuleRef<M>, bootstrappe
1616
await bootstrap(moduleRef.injector);
1717

1818
if (typeof transition === 'function') {
19-
transition(moduleRef.injector);
19+
await Promise.resolve(transition(moduleRef.injector));
2020
}
2121
};
2222

0 commit comments

Comments
 (0)