-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- smaller bundle - better source maps - improved bundler compatibility Closes #845, #859, #552, #585 .
- Loading branch information
1 parent
d466926
commit aae9d1f
Showing
16 changed files
with
11,614 additions
and
16,054 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -20,4 +20,4 @@ jobs: | |
${{ runner.os }}-npm- | ||
- name: Run prettier | ||
run: |- | ||
npx prettier --check . | ||
npx prettier --check . |
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 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 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 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 |
---|---|---|
@@ -1,13 +1,8 @@ | ||
import { util } from "./util"; | ||
import { Peer } from "./peer"; | ||
|
||
export const peerjs = { | ||
Peer, | ||
util, | ||
}; | ||
export type { DataConnection } from "./dataconnection"; | ||
export type { MediaConnection } from "./mediaconnection"; | ||
|
||
export { Peer, util }; | ||
export default Peer; | ||
|
||
(<any>window).peerjs = peerjs; | ||
/** @deprecated Should use peerjs namespace */ | ||
(<any>window).Peer = Peer; |
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,9 @@ | ||
import { util } from "./util"; | ||
import { Peer } from "./peer"; | ||
|
||
(<any>window).peerjs = { | ||
Peer, | ||
util, | ||
}; | ||
/** @deprecated Should use peerjs namespace */ | ||
(<any>window).Peer = Peer; |
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 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,21 @@ | ||
export interface AnswerOption { | ||
sdpTransform?: Function; | ||
} | ||
|
||
export interface PeerJSOption { | ||
key?: string; | ||
host?: string; | ||
port?: number; | ||
path?: string; | ||
secure?: boolean; | ||
token?: string; | ||
config?: RTCConfiguration; | ||
debug?: number; | ||
} | ||
|
||
export interface PeerConnectOption { | ||
label?: string; | ||
metadata?: any; | ||
serialization?: string; | ||
reliable?: boolean; | ||
} |
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 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 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
Oops, something went wrong.