@leofcoin/chain 1.7.117 → 1.7.118

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.
@@ -1,4 +1,4 @@
1
- import { L as LittlePubSub } from './node-browser-CUMhie0d.js';
1
+ import { L as LittlePubSub } from './node-browser-C5GuLP_b.js';
2
2
  import './identity-nIyW_Xm8-BU8xakCv.js';
3
3
  import './index-DUfUgiQY.js';
4
4
  import './networks-BdMfU1ag.js';
@@ -1,4 +1,4 @@
1
- import { F as FormatInterface } from './node-browser-CUMhie0d.js';
1
+ import { F as FormatInterface } from './node-browser-C5GuLP_b.js';
2
2
  import './identity-nIyW_Xm8-BU8xakCv.js';
3
3
  import './index-DUfUgiQY.js';
4
4
  import './networks-BdMfU1ag.js';
@@ -8491,7 +8491,7 @@ class Peernet {
8491
8491
  this.root = options.root;
8492
8492
  const { RequestMessage, ResponseMessage, PeerMessage, PeerMessageResponse, PeernetMessage, DHTMessage, DHTMessageResponse, DataMessage, DataMessageResponse, PsMessage, ChatMessage, PeernetFile
8493
8493
  // FolderMessageResponse
8494
- } = await import(/* webpackChunkName: "messages" */ './messages-BzsDq0Y4-ZkUqf4eM.js');
8494
+ } = await import(/* webpackChunkName: "messages" */ './messages-C22qRxnF-tW3z5FMF.js');
8495
8495
  /**
8496
8496
  * proto Object containing protos
8497
8497
  * @type {Object}
@@ -8585,7 +8585,7 @@ class Peernet {
8585
8585
  if (this.#starting || this.#started)
8586
8586
  return;
8587
8587
  this.#starting = true;
8588
- const importee = await import('./client-icdGX62_-D7-443eN.js');
8588
+ const importee = await import('./client-Lwke64Zq-DO2uqAHA.js');
8589
8589
  /**
8590
8590
  * @access public
8591
8591
  * @type {PeernetClient}
@@ -8813,8 +8813,8 @@ class Peernet {
8813
8813
  closestPeer = Object.values(providers)[0];
8814
8814
  debug(`closest peer for ${hash} is ${closestPeer?.address}`);
8815
8815
  // get peer instance by id
8816
- if (!closestPeer || !closestPeer.id)
8817
- return this.requestData(hash, store?.name || store);
8816
+ if (!closestPeer || !closestPeer.id || !closestPeer.address)
8817
+ return undefined;
8818
8818
  const id = closestPeer.id;
8819
8819
  const peer = this.connections[id];
8820
8820
  if (!peer || !peer?.connected) {
@@ -1,4 +1,4 @@
1
- export { N as default } from './node-browser-CUMhie0d.js';
1
+ export { N as default } from './node-browser-C5GuLP_b.js';
2
2
  import './identity-nIyW_Xm8-BU8xakCv.js';
3
3
  import './index-DUfUgiQY.js';
4
4
  import './networks-BdMfU1ag.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/chain",
3
- "version": "1.7.117",
3
+ "version": "1.7.118",
4
4
  "description": "Official javascript implementation",
5
5
  "private": false,
6
6
  "exports": {
@@ -69,7 +69,7 @@
69
69
  "@leofcoin/messages": "^1.4.40",
70
70
  "@leofcoin/multi-wallet": "^3.1.8",
71
71
  "@leofcoin/networks": "^1.1.25",
72
- "@leofcoin/peernet": "^1.1.103",
72
+ "@leofcoin/peernet": "^1.1.104",
73
73
  "@leofcoin/storage": "^3.5.38",
74
74
  "@leofcoin/utils": "^1.1.40",
75
75
  "@leofcoin/workers": "^1.5.27",