@leofcoin/peernet 1.1.14 → 1.1.15

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 { g as getDefaultExportFromCjs, c as commonjsGlobal } from './peernet-c24e92b6.js';
1
+ import { g as getDefaultExportFromCjs, c as commonjsGlobal } from './peernet-abdf9d7d.js';
2
2
  import './value-157ab062.js';
3
3
 
4
4
  function commonjsRequire(path) {
@@ -41019,13 +41019,13 @@ class P2PTClient extends P2PT {
41019
41019
  this.peerId = peerId;
41020
41020
 
41021
41021
  this.on('trackerconnect', async (tracker, stats) => {
41022
- const peers = await this.requestMorePeers();
41023
- let promises = Object.entries(peers).map(async ([id, peer]) => {
41024
- const hasPeer = this.#discovered[peer.id];
41025
- if (!hasPeer) this.#discovered[peer.id] = await new P2PTPeer(peer, this);
41026
- pubsub.publish('peer:discovered', this.#discovered[id]);
41027
- });
41028
- promises = await Promise.allSettled(promises);
41022
+ // const peers = await this.requestMorePeers()
41023
+ // let promises = Object.entries(peers).map(async ([id, peer]) => {
41024
+ // const hasPeer = this.#discovered[peer.id];
41025
+ // if (!hasPeer) this.#discovered[peer.id] = await new P2PTPeer(peer, this);
41026
+ // pubsub.publish('peer:discovered', this.#discovered[id]);
41027
+ // })
41028
+ // promises = await Promise.allSettled(promises)
41029
41029
  pubsub.publish('star:connected', tracker);
41030
41030
  });
41031
41031
 
@@ -1,4 +1,4 @@
1
- import { M as MultiWallet, e as encrypt, b as base58$1 } from './peernet-c24e92b6.js';
1
+ import { M as MultiWallet, e as encrypt, b as base58$1 } from './peernet-abdf9d7d.js';
2
2
  import './value-157ab062.js';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { F as FormatInterface } from './peernet-c24e92b6.js';
1
+ import { F as FormatInterface } from './peernet-abdf9d7d.js';
2
2
  import './value-157ab062.js';
3
3
 
4
4
  var proto$b = {
@@ -16086,7 +16086,7 @@ class Identity {
16086
16086
  globalThis.peernet.selectedAccount = new TextDecoder().decode(selected);
16087
16087
  }
16088
16088
  else {
16089
- const importee = await import(/* webpackChunkName: "generate-account" */ './index-0863eefd.js');
16089
+ const importee = await import(/* webpackChunkName: "generate-account" */ './index-674a33f1.js');
16090
16090
  const { identity, accounts } = await importee.default(password, this.network);
16091
16091
  await globalThis.accountStore.put('public', JSON.stringify({ walletId: identity.walletId }));
16092
16092
  await globalThis.walletStore.put('version', String(1));
@@ -16257,7 +16257,7 @@ class Peernet {
16257
16257
  this.root = options.root;
16258
16258
  const { RequestMessage, ResponseMessage, PeerMessage, PeerMessageResponse, PeernetMessage, DHTMessage, DHTMessageResponse, DataMessage, DataMessageResponse, PsMessage, ChatMessage, PeernetFile
16259
16259
  // FolderMessageResponse
16260
- } = await import(/* webpackChunkName: "messages" */ './messages-ed98b69f.js');
16260
+ } = await import(/* webpackChunkName: "messages" */ './messages-b6d79e10.js');
16261
16261
  /**
16262
16262
  * proto Object containing protos
16263
16263
  * @type {Object}
@@ -16328,7 +16328,7 @@ class Peernet {
16328
16328
  if (this.#starting || this.#started)
16329
16329
  return;
16330
16330
  this.#starting = true;
16331
- const importee = await import('./client-b672e086.js');
16331
+ const importee = await import('./client-61db7724.js');
16332
16332
  /**
16333
16333
  * @access public
16334
16334
  * @type {PeernetClient}
@@ -1,2 +1,2 @@
1
- export { P as default } from './peernet-c24e92b6.js';
1
+ export { P as default } from './peernet-abdf9d7d.js';
2
2
  import './value-157ab062.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/peernet",
3
- "version": "1.1.14",
3
+ "version": "1.1.15",
4
4
  "description": "",
5
5
  "main": "src/peernet.js",
6
6
  "exports": {