@leofcoin/chain 1.7.82 → 1.7.83
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-CWo3zJ1j-DAaJBi_R.js → client-Vbt0C3YZ-BSi2TKqM.js} +1 -1
- package/exports/browser/{messages-PrGKIaCz-DSaD3Nk1.js → messages-BYZZUpuv-MiKV0Pk4.js} +1 -1
- package/exports/browser/{node-browser-Bgru0CmY.js → node-browser-CsSAehTl.js} +5 -4
- package/exports/browser/node-browser.js +1 -1
- package/package.json +2 -2
|
@@ -8496,7 +8496,7 @@ class Peernet {
|
|
|
8496
8496
|
this.root = options.root;
|
|
8497
8497
|
const { RequestMessage, ResponseMessage, PeerMessage, PeerMessageResponse, PeernetMessage, DHTMessage, DHTMessageResponse, DataMessage, DataMessageResponse, PsMessage, ChatMessage, PeernetFile
|
|
8498
8498
|
// FolderMessageResponse
|
|
8499
|
-
} = await import(/* webpackChunkName: "messages" */ './messages-
|
|
8499
|
+
} = await import(/* webpackChunkName: "messages" */ './messages-BYZZUpuv-MiKV0Pk4.js');
|
|
8500
8500
|
/**
|
|
8501
8501
|
* proto Object containing protos
|
|
8502
8502
|
* @type {Object}
|
|
@@ -8590,7 +8590,7 @@ class Peernet {
|
|
|
8590
8590
|
if (this.#starting || this.#started)
|
|
8591
8591
|
return;
|
|
8592
8592
|
this.#starting = true;
|
|
8593
|
-
const importee = await import('./client-
|
|
8593
|
+
const importee = await import('./client-Vbt0C3YZ-BSi2TKqM.js');
|
|
8594
8594
|
/**
|
|
8595
8595
|
* @access public
|
|
8596
8596
|
* @type {PeernetClient}
|
|
@@ -8849,10 +8849,11 @@ class Peernet {
|
|
|
8849
8849
|
debug(`Error while requesting data from ${id}`, error);
|
|
8850
8850
|
// if error, remove provider
|
|
8851
8851
|
this.dht.removeProvider(id, hash);
|
|
8852
|
-
if (this.#peerAttempts[id] >
|
|
8852
|
+
if (this.#peerAttempts[id] > 1) {
|
|
8853
8853
|
this.#peerAttempts[id] = 0;
|
|
8854
8854
|
debug(`Removed provider ${id} for ${hash} after 3 attempts`);
|
|
8855
|
-
|
|
8855
|
+
console.error(nothingFoundError(hash));
|
|
8856
|
+
return undefined;
|
|
8856
8857
|
}
|
|
8857
8858
|
if (this.#peerAttempts[id] === undefined)
|
|
8858
8859
|
this.#peerAttempts[id] = 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leofcoin/chain",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.83",
|
|
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.
|
|
72
|
+
"@leofcoin/peernet": "^1.1.92",
|
|
73
73
|
"@leofcoin/storage": "^3.5.38",
|
|
74
74
|
"@leofcoin/utils": "^1.1.39",
|
|
75
75
|
"@leofcoin/workers": "^1.5.23",
|