Browse Source

fix export - only Peer and util should be exported

afrokick 6 years ago
parent
commit
d4d5e2537f
3 changed files with 2 additions and 4 deletions
  1. 0 0
      dist/peerjs.min.js
  2. 0 0
      dist/peerjs.min.js.map
  3. 2 4
      lib/exports.ts

File diff suppressed because it is too large
+ 0 - 0
dist/peerjs.min.js


File diff suppressed because it is too large
+ 0 - 0
dist/peerjs.min.js.map


+ 2 - 4
lib/exports.ts

@@ -1,11 +1,7 @@
 import { util } from "./util";
-import { MediaConnection } from "./mediaconnection";
-import { DataConnection } from "./dataconnection";
 import { Peer } from "./peer";
 
 export const peerjs = {
-  MediaConnection,
-  DataConnection,
   Peer,
   util
 };
@@ -13,3 +9,5 @@ export const peerjs = {
 export default Peer;
 
 (<any>window).peerjs = peerjs;
+/** @deprecated Should use peerjs namespace */
+(<any>window).Peer = Peer;

Some files were not shown because too many files changed in this diff