Skip to content

Commit 53ca965

Browse files
committed
update dev deps
1 parent 5a687dd commit 53ca965

9 files changed

Lines changed: 185 additions & 207 deletions

File tree

package-lock.json

Lines changed: 162 additions & 162 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,17 +87,17 @@
8787
"@eslint/js": "^10.0.1",
8888
"@types/jest": "^30.0.0",
8989
"@types/sdp-transform": "^3.0.0",
90-
"eslint": "^10.5.0",
90+
"eslint": "^10.6.0",
9191
"eslint-config-prettier": "^10.1.8",
92-
"eslint-plugin-jest": "^29.15.3",
92+
"eslint-plugin-jest": "^29.15.4",
9393
"eslint-plugin-prettier": "^5.5.6",
9494
"globals": "^17.7.0",
9595
"jest": "^30.4.2",
96-
"knip": "^6.21.0",
96+
"knip": "^6.24.0",
9797
"open-cli": "^9.0.0",
98-
"prettier": "^3.8.5",
98+
"prettier": "^3.9.4",
9999
"ts-jest": "^29.4.11",
100100
"typescript": "^6.0.3",
101-
"typescript-eslint": "^8.62.0"
101+
"typescript-eslint": "^8.62.1"
102102
}
103103
}

src/Device.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@ import type { AppData } from './types';
2424
const logger = new Logger('Device');
2525

2626
export type BuiltinHandlerName =
27-
| 'Chrome111'
28-
| 'Chrome74'
29-
| 'Firefox120'
30-
| 'Safari12'
31-
| 'ReactNative106';
27+
'Chrome111' | 'Chrome74' | 'Firefox120' | 'Safari12' | 'ReactNative106';
3228

3329
export type DeviceOptions = {
3430
/**

src/RtpParameters.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,7 @@ export type RtpCodecCapability = {
7070
* Direction of RTP header extension.
7171
*/
7272
export type RtpHeaderExtensionDirection =
73-
| 'sendrecv'
74-
| 'sendonly'
75-
| 'recvonly'
76-
| 'inactive';
73+
'sendrecv' | 'sendonly' | 'recvonly' | 'inactive';
7774

7875
/**
7976
* Provides information relating to supported header extensions. The list of

src/Transport.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,7 @@ export type DtlsParameters = {
111111
* registry initially specified in RFC 4572 Section 8).
112112
*/
113113
export type FingerprintAlgorithm =
114-
| 'sha-1'
115-
| 'sha-224'
116-
| 'sha-256'
117-
| 'sha-384'
118-
| 'sha-512';
114+
'sha-1' | 'sha-224' | 'sha-256' | 'sha-384' | 'sha-512';
119115

120116
/**
121117
* The hash function algorithm (as defined in the "Hash function Textual Names"
@@ -133,12 +129,7 @@ export type DtlsRole = 'auto' | 'client' | 'server';
133129
export type IceGatheringState = 'new' | 'gathering' | 'complete';
134130

135131
export type ConnectionState =
136-
| 'new'
137-
| 'connecting'
138-
| 'connected'
139-
| 'failed'
140-
| 'disconnected'
141-
| 'closed';
132+
'new' | 'connecting' | 'connected' | 'failed' | 'disconnected' | 'closed';
142133

143134
export type PlainRtpParameters = {
144135
ip: string;

src/handlers/FakeHandler.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -522,8 +522,7 @@ class FakeRTCDataChannel extends FakeEventTarget implements RTCDataChannel {
522522
private _onmessage: ((this: RTCDataChannel, ev: FakeEvent) => void) | null =
523523
null;
524524
private _onbufferedamountlow:
525-
| ((this: RTCDataChannel, ev: FakeEvent) => void)
526-
| null = null;
525+
((this: RTCDataChannel, ev: FakeEvent) => void) | null = null;
527526
private _onerror: ((this: RTCDataChannel, ev: FakeEvent) => void) | null =
528527
null;
529528

@@ -670,8 +669,7 @@ class FakeRTCDataChannel extends FakeEventTarget implements RTCDataChannel {
670669
}
671670

672671
get onbufferedamountlow():
673-
| ((this: RTCDataChannel, ev: FakeEvent) => void)
674-
| null {
672+
((this: RTCDataChannel, ev: FakeEvent) => void) | null {
675673
return this._onbufferedamountlow;
676674
}
677675

src/handlers/fakeEvents/FakeEventListener.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { FakeEvent } from './FakeEvent';
22

33
export type FakeEventListenerOrEventListenerObject =
4-
| FakeEventListener
5-
| FakeEventListenerObject;
4+
FakeEventListener | FakeEventListenerObject;
65

76
export interface FakeEventListener {
87
(evt: FakeEvent): void;

src/handlers/sdp/unifiedPlanUtils.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,9 @@ export function addLegacySimulcast({
8787

8888
// Get the SSRC.
8989
const ssrcMsidLine:
90-
| NonNullable<SdpTransform.MediaAttributes['ssrcs']>[number]
91-
| undefined = (offerMediaObject.ssrcs ?? []).find(
92-
line => line.attribute === 'msid'
93-
);
90+
NonNullable<SdpTransform.MediaAttributes['ssrcs']>[number] | undefined = (
91+
offerMediaObject.ssrcs ?? []
92+
).find(line => line.attribute === 'msid');
9493

9594
if (!ssrcMsidLine) {
9695
throw new Error('a=ssrc line with msid information not found');
@@ -118,10 +117,9 @@ export function addLegacySimulcast({
118117
});
119118

120119
const ssrcCnameLine:
121-
| NonNullable<SdpTransform.MediaAttributes['ssrcs']>[number]
122-
| undefined = (offerMediaObject.ssrcs ?? []).find(
123-
line => line.attribute === 'cname'
124-
);
120+
NonNullable<SdpTransform.MediaAttributes['ssrcs']>[number] | undefined = (
121+
offerMediaObject.ssrcs ?? []
122+
).find(line => line.attribute === 'cname');
125123

126124
if (!ssrcCnameLine) {
127125
throw new Error('a=ssrc line with cname information not found');

src/test/test.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1545,12 +1545,11 @@ test('transport.updateIceServers() rejects with InvalidStateError if closed', as
15451545
test('connection state change does not fire "connectionstatechange" in closed Transport', () => {
15461546
let connectionStateChangeEventNumTimesCalled = 0;
15471547

1548-
ctx.connectedSendTransport!.on(
1549-
'connectionstatechange',
1550-
(/* connectionState */) => {
1551-
connectionStateChangeEventNumTimesCalled++;
1552-
}
1553-
);
1548+
ctx.connectedSendTransport!.on('connectionstatechange', (
1549+
/* connectionState */
1550+
) => {
1551+
connectionStateChangeEventNumTimesCalled++;
1552+
});
15541553

15551554
// @ts-expect-error --- On purpose.
15561555
ctx.connectedSendTransport!.handler.setConnectionState('disconnected');

0 commit comments

Comments
 (0)