@leofcoin/chain 1.4.52 → 1.4.53

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 { c as commonjsGlobal, g as getDefaultExportFromCjs } from './node-browser-63d44d8e.js';
1
+ import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './node-browser-582c5fb0.js';
2
2
  import './index-640d9f36.js';
3
3
 
4
4
  function commonjsRequire(path) {
@@ -1,4 +1,4 @@
1
- import { M as MultiWallet, e as encrypt, b as base58$1 } from './node-browser-63d44d8e.js';
1
+ import { M as MultiWallet, e as encrypt, b as base58$1 } from './node-browser-582c5fb0.js';
2
2
  import './index-640d9f36.js';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { F as FormatInterface } from './node-browser-63d44d8e.js';
1
+ import { F as FormatInterface } from './node-browser-582c5fb0.js';
2
2
  import './index-640d9f36.js';
3
3
 
4
4
  var proto$b = {
@@ -20267,7 +20267,7 @@ class Identity {
20267
20267
  globalThis.peernet.selectedAccount = new TextDecoder().decode(selected);
20268
20268
  }
20269
20269
  else {
20270
- const importee = await import(/* webpackChunkName: "generate-account" */ './index-5ed49438-165d8320.js');
20270
+ const importee = await import(/* webpackChunkName: "generate-account" */ './index-ff3a61f6-e0290b5d.js');
20271
20271
  const { identity, accounts } = await importee.default(password, this.network);
20272
20272
  await globalThis.accountStore.put('public', JSON.stringify({ walletId: identity.walletId }));
20273
20273
  await globalThis.walletStore.put('version', String(1));
@@ -20438,7 +20438,7 @@ class Peernet {
20438
20438
  this.root = options.root;
20439
20439
  const { RequestMessage, ResponseMessage, PeerMessage, PeerMessageResponse, PeernetMessage, DHTMessage, DHTMessageResponse, DataMessage, DataMessageResponse, PsMessage, ChatMessage, PeernetFile
20440
20440
  // FolderMessageResponse
20441
- } = await import(/* webpackChunkName: "messages" */ './messages-c26f8e97-1e0a262e.js');
20441
+ } = await import(/* webpackChunkName: "messages" */ './messages-8b773ecf-97158d69.js');
20442
20442
  /**
20443
20443
  * proto Object containing protos
20444
20444
  * @type {Object}
@@ -20517,7 +20517,7 @@ class Peernet {
20517
20517
  if (this.#starting || this.#started)
20518
20518
  return;
20519
20519
  this.#starting = true;
20520
- const importee = await import('./client-345f1d43-54202b18.js');
20520
+ const importee = await import('./client-0ebd5821-7a2c6603.js');
20521
20521
  /**
20522
20522
  * @access public
20523
20523
  * @type {PeernetClient}
@@ -20528,7 +20528,7 @@ class Peernet {
20528
20528
  }
20529
20529
  #peerLeft(peer) {
20530
20530
  for (const [id, _peer] of Object.entries(this.#connections)) {
20531
- if (_peer.id === peer.id) {
20531
+ if (_peer.id === peer.id && this.#connections[id] && !this.#connections[id].connected) {
20532
20532
  delete this.#connections[id];
20533
20533
  this.removePeer(_peer);
20534
20534
  }
@@ -1,2 +1,2 @@
1
- export { N as default } from './node-browser-63d44d8e.js';
1
+ export { N as default } from './node-browser-582c5fb0.js';
2
2
  import './index-640d9f36.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/chain",
3
- "version": "1.4.52",
3
+ "version": "1.4.53",
4
4
  "description": "Official javascript implementation",
5
5
  "exports": {
6
6
  "./node": "./exports/node.js",