Skip to content

Commit c88845e

Browse files
jsfix-updaterjsfix.live analysis
jsfix-updater
and
jsfix.live analysis
authoredJun 13, 2022
deps: update rxjs to version 7.0.0 (#326)
Co-authored-by: jsfix.live analysis <info@coana.tech>
1 parent 74412ba commit c88845e

File tree

4 files changed

+30
-21
lines changed

4 files changed

+30
-21
lines changed
 

‎package-lock.json

+25-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"chalk": "^4.1.0",
4444
"date-fns": "^2.16.1",
4545
"lodash": "^4.17.21",
46-
"rxjs": "^6.6.3",
46+
"rxjs": "^7.0.0",
4747
"shell-quote": "^1.7.3",
4848
"spawn-command": "^0.0.2-1",
4949
"supports-color": "^8.1.0",

‎src/completion-listener.ts

+3-5
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,14 @@ export class CompletionListener {
7878
*/
7979
listen(commands: Command[]): Promise<CloseEvent[]> {
8080
const closeStreams = commands.map(command => command.close);
81-
return Rx.merge(...closeStreams)
81+
return Rx.lastValueFrom(Rx.merge(...closeStreams)
8282
.pipe(
8383
bufferCount(closeStreams.length),
8484
switchMap(exitInfos =>
8585
this.isSuccess(exitInfos)
8686
? Rx.of(exitInfos, this.scheduler)
87-
: Rx.throwError(exitInfos, this.scheduler),
88-
),
87+
: Rx.throwError(exitInfos, this.scheduler)),
8988
take(1),
90-
)
91-
.toPromise();
89+
));
9290
}
9391
};

‎src/flow-control/log-timings.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ it('does not log timings summary if there was an error', () => {
9999
controller.handle(commands);
100100

101101
commands[0].close.next(command0ExitInfo);
102-
commands[1].error.next();
102+
commands[1].error.next(undefined);
103103

104104
expect(logger.logTable).toHaveBeenCalledTimes(0);
105105

0 commit comments

Comments
 (0)
Please sign in to comment.