@leofcoin/peernet 1.2.7 → 1.2.9
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/exports/browser/{browser-DMVbMScf.js → browser-DapPqCOs.js} +1 -1
- package/exports/browser/{browser-CWWW0kSj.js → browser-Yh0HnjMJ.js} +1 -1
- package/exports/browser/{client-AodRTAgI.js → client-CUUjpp2l.js} +5 -5
- package/exports/browser/{identity-nIyW_Xm8.js → identity-CqSnKXWH.js} +10360 -10230
- package/exports/browser/identity.js +1 -1
- package/exports/browser/{index-ChRjMyiM.js → index-D_MPeSmw.js} +1 -1
- package/exports/browser/{index-BoQ4uWm2.js → index-UBgl-8YH.js} +1 -1
- package/exports/browser/{messages-Dy2W05lC.js → messages-B-ya-QOw.js} +2 -2
- package/exports/browser/{peernet-Cmg8trCq.js → peernet-CP9NJ1mV.js} +171 -82
- package/exports/browser/peernet.js +2 -2
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LittlePubSub, d as deflate_1, i as inflate_1, c as createDebugger } from './peernet-
|
|
2
|
-
import './identity-
|
|
1
|
+
import { L as LittlePubSub, d as deflate_1, i as inflate_1, c as createDebugger } from './peernet-CP9NJ1mV.js';
|
|
2
|
+
import './identity-CqSnKXWH.js';
|
|
3
3
|
import './value-C3vAp-wb.js';
|
|
4
4
|
|
|
5
5
|
class Api {
|
|
@@ -231,7 +231,7 @@ class SocketRequestClient {
|
|
|
231
231
|
const init = async () => {
|
|
232
232
|
// @ts-ignore
|
|
233
233
|
if (!globalThis.WebSocket && !this.#experimentalWebsocket)
|
|
234
|
-
globalThis.WebSocket = (await import('./browser-
|
|
234
|
+
globalThis.WebSocket = (await import('./browser-Yh0HnjMJ.js').then(function (n) { return n.b; })).default.w3cwebsocket;
|
|
235
235
|
const client = new WebSocket(this.#url, this.#protocol);
|
|
236
236
|
if (this.#experimentalWebsocket) {
|
|
237
237
|
client.addEventListener('error', this.onerror);
|
|
@@ -346,7 +346,7 @@ const iceServers = [
|
|
|
346
346
|
credential: 'openrelayproject'
|
|
347
347
|
}
|
|
348
348
|
];
|
|
349
|
-
const SimplePeer = (await import('./index-
|
|
349
|
+
const SimplePeer = (await import('./index-UBgl-8YH.js').then(function (n) { return n.i; })).default;
|
|
350
350
|
class Peer extends SimplePeer {
|
|
351
351
|
peerId;
|
|
352
352
|
channelName;
|
|
@@ -675,7 +675,7 @@ class Client {
|
|
|
675
675
|
}
|
|
676
676
|
async _init() {
|
|
677
677
|
if (!globalThis.RTCPeerConnection)
|
|
678
|
-
globalThis.wrtc = (await import('./browser-
|
|
678
|
+
globalThis.wrtc = (await import('./browser-DapPqCOs.js').then(function (n) { return n.b; })).default;
|
|
679
679
|
for (const star of this.starsConfig) {
|
|
680
680
|
try {
|
|
681
681
|
await this.setupStar(star);
|