@leofcoin/chain 1.4.71 → 1.4.73

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.
@@ -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
  }
@@ -1,4 +1,4 @@
1
- import { M as MultiWallet, e as encrypt, b as base58$1 } from './node-browser-1585d228.js';
1
+ import { M as MultiWallet, e as encrypt, b as base58$1 } from './node-browser-2a314e0c.js';
2
2
  import './index-2d1bd076.js';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { F as FormatInterface } from './node-browser-1585d228.js';
1
+ import { F as FormatInterface } from './node-browser-2a314e0c.js';
2
2
  import './index-2d1bd076.js';
3
3
 
4
4
  var proto$b = {
@@ -20257,7 +20257,7 @@ class Identity {
20257
20257
  globalThis.peernet.selectedAccount = new TextDecoder().decode(selected);
20258
20258
  }
20259
20259
  else {
20260
- const importee = await import(/* webpackChunkName: "generate-account" */ './index-ed935219-188aa3ad.js');
20260
+ const importee = await import(/* webpackChunkName: "generate-account" */ './index-502d190c-6a5c8f2f.js');
20261
20261
  const { identity, accounts } = await importee.default(password, this.network);
20262
20262
  await globalThis.accountStore.put('public', JSON.stringify({ walletId: identity.walletId }));
20263
20263
  await globalThis.walletStore.put('version', String(1));
@@ -20428,7 +20428,7 @@ class Peernet {
20428
20428
  this.root = options.root;
20429
20429
  const { RequestMessage, ResponseMessage, PeerMessage, PeerMessageResponse, PeernetMessage, DHTMessage, DHTMessageResponse, DataMessage, DataMessageResponse, PsMessage, ChatMessage, PeernetFile
20430
20430
  // FolderMessageResponse
20431
- } = await import(/* webpackChunkName: "messages" */ './messages-cc3774b5-653c2dbe.js');
20431
+ } = await import(/* webpackChunkName: "messages" */ './messages-cd01524c-1e050da8.js');
20432
20432
  /**
20433
20433
  * proto Object containing protos
20434
20434
  * @type {Object}
@@ -20507,7 +20507,7 @@ class Peernet {
20507
20507
  if (this.#starting || this.#started)
20508
20508
  return;
20509
20509
  this.#starting = true;
20510
- const importee = await import('./client-020c00d8-020c00d8.js');
20510
+ const importee = await import('./client-6072af1a-6072af1a.js');
20511
20511
  /**
20512
20512
  * @access public
20513
20513
  * @type {PeernetClient}
@@ -1,2 +1,2 @@
1
- export { N as default } from './node-browser-1585d228.js';
1
+ export { N as default } from './node-browser-2a314e0c.js';
2
2
  import './index-2d1bd076.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/chain",
3
- "version": "1.4.71",
3
+ "version": "1.4.73",
4
4
  "description": "Official javascript implementation",
5
5
  "exports": {
6
6
  "./node": "./exports/node.js",