@leofcoin/chain 1.7.97 → 1.7.98

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-Ch1mTBwl.js';
1
+ import { L as LittlePubSub } from './node-browser-D0JliYju.js';
2
2
  import './identity-Cn0iQbY3-CeW0giQS.js';
3
3
  import './index-DUfUgiQY.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { F as FormatInterface } from './node-browser-Ch1mTBwl.js';
1
+ import { F as FormatInterface } from './node-browser-D0JliYju.js';
2
2
  import './identity-Cn0iQbY3-CeW0giQS.js';
3
3
  import './index-DUfUgiQY.js';
4
4
 
@@ -8092,9 +8092,9 @@ const lastFetched = {
8092
8092
  const fetchedCoordinates = {};
8093
8093
  const getAddress = async () => {
8094
8094
  const { address } = lastFetched;
8095
- if (address) {
8096
- address.value = await fetch('https://icanhazip.com/');
8097
- address.value = await address.value.text();
8095
+ if (!address) {
8096
+ const value = await fetch('https://icanhazip.com/');
8097
+ address.value = await value.text();
8098
8098
  address.timestamp = Math.round(new Date().getTime() / 1000);
8099
8099
  lastFetched.address = address;
8100
8100
  }
@@ -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-Y4l0mXGt-CdOuexeJ.js');
8494
+ } = await import(/* webpackChunkName: "messages" */ './messages-DDEOxfJp-CggxH-2R.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-BlYwNU8G-Dl_fbYGp.js');
8588
+ const importee = await import('./client-BDXkFVRR-BZjYAtds.js');
8589
8589
  /**
8590
8590
  * @access public
8591
8591
  * @type {PeernetClient}
@@ -1,3 +1,3 @@
1
- export { N as default } from './node-browser-Ch1mTBwl.js';
1
+ export { N as default } from './node-browser-D0JliYju.js';
2
2
  import './identity-Cn0iQbY3-CeW0giQS.js';
3
3
  import './index-DUfUgiQY.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/chain",
3
- "version": "1.7.97",
3
+ "version": "1.7.98",
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.96",
72
+ "@leofcoin/peernet": "^1.1.97",
73
73
  "@leofcoin/storage": "^3.5.38",
74
74
  "@leofcoin/utils": "^1.1.40",
75
75
  "@leofcoin/workers": "^1.5.27",