Skip to content

Commit

Permalink
chore: bump dependencies
Browse files Browse the repository at this point in the history
Production:

- socket.io-parser: ~4.0.4 => ~4.2.0

Development:

- superagent: ^6.1.0 => ^8.0.0
- tsd: ^0.17.0 => ^0.21.0

Related: #3709
  • Loading branch information
darrachequesne committed Jun 27, 2022
1 parent 713a6b4 commit 9890b03
Show file tree
Hide file tree
Showing 5 changed files with 2,645 additions and 2,373 deletions.
2 changes: 1 addition & 1 deletion lib/broadcast-operator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export class BroadcastOperator<EmitEvents extends EventsMap, SocketData>
...args: EventParams<EmitEvents, Ev>
): boolean {
if (RESERVED_EVENTS.has(ev)) {
throw new Error(`"${ev}" is a reserved event name`);
throw new Error(`"${String(ev)}" is a reserved event name`);
}
// set up packet object
const data = [ev, ...args];
Expand Down
2 changes: 1 addition & 1 deletion lib/namespace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ export class Namespace<
...args: EventParams<ServerSideEvents, Ev>
): boolean {
if (RESERVED_EVENTS.has(ev)) {
throw new Error(`"${ev}" is a reserved event name`);
throw new Error(`"${String(ev)}" is a reserved event name`);
}
args.unshift(ev);
this.adapter.serverSideEmit(args);
Expand Down
2 changes: 1 addition & 1 deletion lib/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export class Socket<
...args: EventParams<EmitEvents, Ev>
): boolean {
if (RESERVED_EVENTS.has(ev)) {
throw new Error(`"${ev}" is a reserved event name`);
throw new Error(`"${String(ev)}" is a reserved event name`);
}
const data: any[] = [ev, ...args];
const packet: any = {
Expand Down
Loading

0 comments on commit 9890b03

Please sign in to comment.