Skip to content

Commit 2e980c0

Browse files
thisisamir98V-Gira
authored andcommitted
chore: Use @roamhq/wrtc instead of @koush/wrtc (#17819)
1 parent 3c9372d commit 2e980c0

File tree

3 files changed

+83
-478
lines changed

3 files changed

+83
-478
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"@emotion/eslint-plugin": "11.11.0",
6868
"@faker-js/faker": "8.4.1",
6969
"@formatjs/cli": "6.2.12",
70-
"@koush/wrtc": "0.5.3",
70+
"@roamhq/wrtc": "0.8.0",
7171
"@testing-library/dom": "^10.3.2",
7272
"@testing-library/react": "16.0.0",
7373
"@types/dexie-batch": "0.4.7",

src/script/util/test/mock/WebRTCMock.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@
1717
*
1818
*/
1919

20-
import wrtc from '@koush/wrtc';
20+
import {nonstandard, RTCRtpSender, MediaStream} from '@roamhq/wrtc';
2121

22-
const {RTCAudioSource, RTCRtpSender} = wrtc.nonstandard;
22+
const {RTCAudioSource} = nonstandard;
2323

2424
declare global {
2525
interface Window {
26-
MediaStream: typeof wrtc.MediaStream;
26+
MediaStream: typeof MediaStream;
2727
RTCAudioSource: typeof RTCAudioSource;
2828
RTCRtpSender: typeof RTCRtpSender;
2929
}
3030
}
31-
const RTCRtpSenderMock: Window['RTCRtpSender'] = {
31+
const RTCRtpSenderMock = {
3232
prototype: {createEncodedVideoStreams: {}, createEncodedStreams: {}, transform: {}},
3333
};
3434

3535
Object.defineProperty(window, 'MediaStream', {
36-
value: wrtc.MediaStream,
36+
value: MediaStream,
3737
writable: true,
3838
});
3939

0 commit comments

Comments
 (0)