@leofcoin/peernet 1.1.44 → 1.1.45
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/{client-020c00d8.js → client-6072af1a.js} +3 -2
- package/exports/browser/{index-ed935219.js → index-502d190c.js} +1 -1
- package/exports/browser/{messages-cc3774b5.js → messages-cd01524c.js} +1 -1
- package/exports/browser/{peernet-4fce82bc.js → peernet-bdde86d9.js} +3 -3
- package/exports/browser/peernet.js +1 -1
- package/package.json +1 -1
|
@@ -10614,7 +10614,8 @@ let P2PT$1 = class P2PT extends require$$0$5 {
|
|
|
10614
10614
|
if (!this.peers[peer.id]) {
|
|
10615
10615
|
newpeer = true;
|
|
10616
10616
|
this.peers[peer.id] = {};
|
|
10617
|
-
this.responseWaiting[peer.id]
|
|
10617
|
+
if (!this.responseWaiting[peer.id])
|
|
10618
|
+
this.responseWaiting[peer.id] = {};
|
|
10618
10619
|
}
|
|
10619
10620
|
/**
|
|
10620
10621
|
* Multiple data channels to one peer is possible
|
|
@@ -10645,7 +10646,7 @@ let P2PT$1 = class P2PT extends require$$0$5 {
|
|
|
10645
10646
|
/**
|
|
10646
10647
|
* If there's someone waiting for a response, call them
|
|
10647
10648
|
*/
|
|
10648
|
-
if (this.responseWaiting[peer.id][data.id]) {
|
|
10649
|
+
if (this.responseWaiting[peer.id] && this.responseWaiting[peer.id][data.id]) {
|
|
10649
10650
|
this.responseWaiting[peer.id][data.id]([peer, msg]);
|
|
10650
10651
|
delete this.responseWaiting[peer.id][data.id];
|
|
10651
10652
|
}
|
|
@@ -20174,7 +20174,7 @@ class Identity {
|
|
|
20174
20174
|
globalThis.peernet.selectedAccount = new TextDecoder().decode(selected);
|
|
20175
20175
|
}
|
|
20176
20176
|
else {
|
|
20177
|
-
const importee = await import(/* webpackChunkName: "generate-account" */ './index-
|
|
20177
|
+
const importee = await import(/* webpackChunkName: "generate-account" */ './index-502d190c.js');
|
|
20178
20178
|
const { identity, accounts } = await importee.default(password, this.network);
|
|
20179
20179
|
await globalThis.accountStore.put('public', JSON.stringify({ walletId: identity.walletId }));
|
|
20180
20180
|
await globalThis.walletStore.put('version', String(1));
|
|
@@ -20345,7 +20345,7 @@ class Peernet {
|
|
|
20345
20345
|
this.root = options.root;
|
|
20346
20346
|
const { RequestMessage, ResponseMessage, PeerMessage, PeerMessageResponse, PeernetMessage, DHTMessage, DHTMessageResponse, DataMessage, DataMessageResponse, PsMessage, ChatMessage, PeernetFile
|
|
20347
20347
|
// FolderMessageResponse
|
|
20348
|
-
} = await import(/* webpackChunkName: "messages" */ './messages-
|
|
20348
|
+
} = await import(/* webpackChunkName: "messages" */ './messages-cd01524c.js');
|
|
20349
20349
|
/**
|
|
20350
20350
|
* proto Object containing protos
|
|
20351
20351
|
* @type {Object}
|
|
@@ -20424,7 +20424,7 @@ class Peernet {
|
|
|
20424
20424
|
if (this.#starting || this.#started)
|
|
20425
20425
|
return;
|
|
20426
20426
|
this.#starting = true;
|
|
20427
|
-
const importee = await import('./client-
|
|
20427
|
+
const importee = await import('./client-6072af1a.js');
|
|
20428
20428
|
/**
|
|
20429
20429
|
* @access public
|
|
20430
20430
|
* @type {PeernetClient}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { P as default } from './peernet-
|
|
1
|
+
export { P as default } from './peernet-bdde86d9.js';
|
|
2
2
|
import './value-157ab062.js';
|