Эх сурвалжийг харах

fix export - only Peer and util should be exported

afrokick 6 жил өмнө
parent
commit
d4d5e2537f

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
dist/peerjs.min.js


Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 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;

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно