Browse Source

fix export - only Peer and util should be exported

afrokick 6 năm trước cách đây
mục cha
commit
d4d5e2537f
3 tập tin đã thay đổi với 2 bổ sung4 xóa
  1. 0 0
      dist/peerjs.min.js
  2. 0 0
      dist/peerjs.min.js.map
  3. 2 4
      lib/exports.ts

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/peerjs.min.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 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;

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác