Skip to content

Commit

Permalink
fix(deps): update dependency eventemitter3 to v5
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored and jonasgloning committed Feb 26, 2023
1 parent 1f4c70d commit 84b6626
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
4 changes: 2 additions & 2 deletions lib/baseconnection.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { EventEmitter, ValidEventTypes } from "eventemitter3";
import { EventEmitter } from "eventemitter3";
import { Peer } from "./peer";
import { ServerMessage } from "./servermessage";
import { ConnectionType } from "./enums";
Expand All @@ -22,7 +22,7 @@ export type BaseConnectionEvents = {
};

export abstract class BaseConnection<
T extends ValidEventTypes,
T extends object,
> extends EventEmitter<T & BaseConnectionEvents> {
protected _open = false;

Expand Down
3 changes: 1 addition & 2 deletions lib/negotiator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ import { MediaConnection } from "./mediaconnection";
import { DataConnection } from "./dataconnection";
import { ConnectionType, PeerErrorType, ServerMessageType } from "./enums";
import { BaseConnection, BaseConnectionEvents } from "./baseconnection";
import { ValidEventTypes } from "eventemitter3";

/**
* Manages all negotiations between Peers.
*/
export class Negotiator<
A extends ValidEventTypes,
A extends object,
T extends BaseConnection<A | BaseConnectionEvents>,
> {
constructor(readonly connection: T) {}
Expand Down
14 changes: 7 additions & 7 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
},
"dependencies": {
"@swc/helpers": "^0.4.0",
"eventemitter3": "^4.0.7",
"eventemitter3": "^5.0.0",
"peerjs-js-binarypack": "1.0.2",
"webrtc-adapter": "^8.0.0"
}
Expand Down

0 comments on commit 84b6626

Please sign in to comment.