Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
shinyoshiaki committed Dec 22, 2024
1 parent b8346a2 commit 51e5da2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
8 changes: 5 additions & 3 deletions packages/dtls/src/flight/server/flight2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,11 @@ export const flight2 =
dtls.remoteExtendedMasterSecret = true;
}
break;
case RenegotiationIndication.type: {
log(dtls.sessionId, "RenegotiationIndication", extension.data);
}
case RenegotiationIndication.type:
{
log(dtls.sessionId, "RenegotiationIndication", extension.data);
}
break;
case 43:
{
// todo dtls1.3
Expand Down
2 changes: 1 addition & 1 deletion packages/dtls/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export { DtlsClient } from "./client";
export { DtlsServer } from "./server";
export { DtlsSocket } from "./socket";
export { createUdpTransport, Transport, UdpTransport } from "./transport";
export { createUdpTransport, type Transport, UdpTransport } from "./transport";

/* Client Server
------ ------
Expand Down
2 changes: 1 addition & 1 deletion packages/dtls/src/record/receive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ export const parsePlainText =
if (alert.level > 1) {
throw new Error("alert fatal error");
}
return { type: ContentType.alert, data: undefined };
}
// eslint-disable-next-line no-fallthrough
default: {
return { type: ContentType.alert, data: undefined };
}
Expand Down
2 changes: 1 addition & 1 deletion packages/sctp/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { SCTP_STATE, WEBRTC_PPID } from "./const";
export { SCTP } from "./sctp";
export { Transport } from "./transport";
export type { Transport } from "./transport";
4 changes: 2 additions & 2 deletions packages/webrtc/src/const.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {
HashAlgorithms,
type HashAlgorithms,
SignatureAlgorithm,
} from "../../dtls/src/cipher/const";
import {
Expand Down Expand Up @@ -63,4 +63,4 @@ export const SRTP_PROFILE = {
export const SenderDirections = ["sendonly", "sendrecv"];
export const ReceiverDirection = ["sendrecv", "recvonly"];

export { HashAlgorithms, SignatureAlgorithm };
export { type HashAlgorithms, SignatureAlgorithm };

0 comments on commit 51e5da2

Please sign in to comment.