Skip to content

Commit

Permalink
chore(deps): update dependency eventsource to v3 (#3553)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency eventsource to v3

* Update import

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Hugo van Rijswijk <[email protected]>
  • Loading branch information
renovate[bot] and hugo-vrijswijk authored Dec 9, 2024
1 parent fe8e230 commit f84e48e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
23 changes: 18 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/real-time/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"homepage": "https://github.com/stryker-mutator/mutation-testing-elements/tree/master/packages/real-time#readme",
"devDependencies": {
"@types/eventsource": "1.1.15",
"eventsource": "2.0.2",
"eventsource": "3.0.1",
"rxjs": "7.8.1"
}
}
4 changes: 2 additions & 2 deletions packages/real-time/test/integration/mutant-event-source.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import EventSource from 'eventsource';
import { EventSource } from 'eventsource';
import type { MutantResult } from 'mutation-testing-report-schema/api';
import { fromEvent, ReplaySubject, shareReplay, takeUntil } from 'rxjs';

Expand All @@ -8,7 +8,7 @@ export class MutantEventSource extends EventSource {
}

#closedSubject = new ReplaySubject<void>();
mutantResult$ = fromEvent(this, 'mutant-tested', (event) => JSON.parse(event.data as string) as Partial<MutantResult>).pipe(
mutantResult$ = fromEvent(this, 'mutant-tested', (event: { data: string }) => JSON.parse(event.data) as Partial<MutantResult>).pipe(
takeUntil(this.#closedSubject),
shareReplay(),
);
Expand Down

0 comments on commit f84e48e

Please sign in to comment.