@leofcoin/peernet 1.1.33 → 1.1.35

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-d2274ccd.js';
1
+ import { g as getDefaultExportFromCjs, c as commonjsGlobal } from './peernet-2d11823c.js';
2
2
  import './value-157ab062.js';
3
3
 
4
4
  function commonjsRequire(path) {
@@ -41044,7 +41044,7 @@ class P2PTClient extends P2PT {
41044
41044
  let promises = Object.entries(peers).map(async ([id, peer]) => {
41045
41045
  const hasPeer = this.#discovered[id];
41046
41046
  if (!hasPeer) this.#discovered[id] = await new P2PTPeer(peer, this);
41047
- if (this.#discovered[id].connected) pubsub.publish('peer:discovered', this.#discovered[id]);
41047
+ if (!hasPeer && this.#discovered[id].connected) pubsub.publish('peer:discovered', this.#discovered[id]);
41048
41048
  });
41049
41049
  promises = await Promise.allSettled(promises);
41050
41050
  pubsub.publish('star:connected', tracker);
@@ -1,4 +1,4 @@
1
- import { M as MultiWallet, e as encrypt, b as base58$1 } from './peernet-d2274ccd.js';
1
+ import { M as MultiWallet, e as encrypt, b as base58$1 } from './peernet-2d11823c.js';
2
2
  import './value-157ab062.js';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { F as FormatInterface } from './peernet-d2274ccd.js';
1
+ import { F as FormatInterface } from './peernet-2d11823c.js';
2
2
  import './value-157ab062.js';
3
3
 
4
4
  var proto$b = {
@@ -20183,7 +20183,7 @@ class Identity {
20183
20183
  globalThis.peernet.selectedAccount = new TextDecoder().decode(selected);
20184
20184
  }
20185
20185
  else {
20186
- const importee = await import(/* webpackChunkName: "generate-account" */ './index-4464b87e.js');
20186
+ const importee = await import(/* webpackChunkName: "generate-account" */ './index-f2f8db5e.js');
20187
20187
  const { identity, accounts } = await importee.default(password, this.network);
20188
20188
  await globalThis.accountStore.put('public', JSON.stringify({ walletId: identity.walletId }));
20189
20189
  await globalThis.walletStore.put('version', String(1));
@@ -20224,7 +20224,7 @@ class Identity {
20224
20224
  globalThis.LeofcoinStorage = LeofcoinStorage;
20225
20225
  globalThis.leofcoin = globalThis.leofcoin || {};
20226
20226
  globalThis.pubsub = globalThis.pubsub || new LittlePubSub();
20227
- globalThis.globalSub = globalThis.globalSub || new LittlePubSub(true);
20227
+ globalThis.globalSub = globalThis.globalSub || new LittlePubSub();
20228
20228
  /**
20229
20229
  * @access public
20230
20230
  * @example
@@ -20354,7 +20354,7 @@ class Peernet {
20354
20354
  this.root = options.root;
20355
20355
  const { RequestMessage, ResponseMessage, PeerMessage, PeerMessageResponse, PeernetMessage, DHTMessage, DHTMessageResponse, DataMessage, DataMessageResponse, PsMessage, ChatMessage, PeernetFile
20356
20356
  // FolderMessageResponse
20357
- } = await import(/* webpackChunkName: "messages" */ './messages-27279443.js');
20357
+ } = await import(/* webpackChunkName: "messages" */ './messages-fc7c059d.js');
20358
20358
  /**
20359
20359
  * proto Object containing protos
20360
20360
  * @type {Object}
@@ -20433,7 +20433,7 @@ class Peernet {
20433
20433
  if (this.#starting || this.#started)
20434
20434
  return;
20435
20435
  this.#starting = true;
20436
- const importee = await import('./client-4d80940e.js');
20436
+ const importee = await import('./client-c3673dc8.js');
20437
20437
  /**
20438
20438
  * @access public
20439
20439
  * @type {PeernetClient}
@@ -1,2 +1,2 @@
1
- export { P as default } from './peernet-d2274ccd.js';
1
+ export { P as default } from './peernet-2d11823c.js';
2
2
  import './value-157ab062.js';
@@ -382,7 +382,7 @@ class Identity {
382
382
  globalThis.LeofcoinStorage = LeofcoinStorage;
383
383
  globalThis.leofcoin = globalThis.leofcoin || {};
384
384
  globalThis.pubsub = globalThis.pubsub || new PubSub();
385
- globalThis.globalSub = globalThis.globalSub || new PubSub(true);
385
+ globalThis.globalSub = globalThis.globalSub || new PubSub();
386
386
  /**
387
387
  * @access public
388
388
  * @example
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/peernet",
3
- "version": "1.1.33",
3
+ "version": "1.1.35",
4
4
  "description": "",
5
5
  "main": "src/peernet.js",
6
6
  "exports": {
package/src/peernet.ts CHANGED
@@ -15,7 +15,7 @@ globalThis.LeofcoinStorage = LeofcoinStorage
15
15
 
16
16
  globalThis.leofcoin = globalThis.leofcoin || {}
17
17
  globalThis.pubsub = globalThis.pubsub || new PubSub()
18
- globalThis.globalSub = globalThis.globalSub || new PubSub(true)
18
+ globalThis.globalSub = globalThis.globalSub || new PubSub()
19
19
  /**
20
20
  * @access public
21
21
  * @example