-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change introduces an ESM build which will allow tree shaking. A CJS build is also provided for backward compatibility.
- Loading branch information
1 parent
c7e27b0
commit 7245b80
Showing
34 changed files
with
603 additions
and
1,042 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export default global; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Socket } from "./socket.js"; | ||
|
||
export default (uri, opts) => new Socket(uri, opts); | ||
|
||
/** | ||
* Expose deps for legacy compatibility | ||
* and standalone browser access. | ||
*/ | ||
export { Socket }; | ||
export { SocketOptions } from "./socket.js"; | ||
export const protocol = Socket.protocol; | ||
export { Transport } from "./transport.js"; | ||
export { transports } from "./transports/index.js"; | ||
export { installTimerFunctions } from "./util.js"; |
Oops, something went wrong.