@hive-p2p/browser 1.0.81 → 1.0.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/config.mjs +3 -2
- package/hive-p2p.min.js +2 -13
- package/package.json +1 -1
- package/services/converter.mjs +1 -1
- package/services/cryptos.mjs +1 -1
package/core/config.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const isNode = typeof self === 'undefined';
|
|
2
|
-
if (!isNode) (await import('../libs/simplepeer-9.11.1.min.js')).default;
|
|
2
|
+
//if (!isNode) (await import('../libs/simplepeer-9.11.1.min.js')).default;
|
|
3
3
|
|
|
4
4
|
// HOLD: GLOBAL CONFIG FOR THE LIBRARY
|
|
5
5
|
// AVOID: CIRCULAR DEPENDENCIES AND TOO MANY FUNCTION/CONSTRUCTOR CONFIG
|
|
@@ -108,7 +108,8 @@ export const TRANSPORTS = {
|
|
|
108
108
|
|
|
109
109
|
WS_CLIENT: WebSocket,
|
|
110
110
|
WS_SERVER: isNode ? (await import('ws')).WebSocketServer : null,
|
|
111
|
-
PEER: isNode ? (await import('simple-peer')).default : window.SimplePeer
|
|
111
|
+
//PEER: isNode ? (await import('simple-peer')).default : window.SimplePeer
|
|
112
|
+
PEER: (await import('simple-peer')).default,
|
|
112
113
|
}
|
|
113
114
|
|
|
114
115
|
export const DISCOVERY = {
|