Skip to content

Commit

Permalink
refactor: export TransportError (#709)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaldassari authored Nov 6, 2023
1 parent 46ef851 commit c1795ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Socket } from "./socket.js";
export { Socket };
export { SocketOptions } from "./socket.js";
export const protocol = Socket.protocol;
export { Transport } from "./transport.js";
export { Transport, TransportError } from "./transport.js";
export { transports } from "./transports/index.js";
export { installTimerFunctions } from "./util.js";
export { parse } from "./contrib/parseuri.js";
Expand Down
2 changes: 1 addition & 1 deletion lib/transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { encode } from "./contrib/parseqs.js";

const debug = debugModule("engine.io-client:transport"); // debug()

class TransportError extends Error {
export class TransportError extends Error {
public readonly type = "TransportError";

constructor(
Expand Down

0 comments on commit c1795ef

Please # to comment.