@leofcoin/peernet 1.1.21 → 1.1.22

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-83538246.js';
1
+ import { g as getDefaultExportFromCjs, c as commonjsGlobal } from './peernet-1256dbee.js';
2
2
  import './value-157ab062.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 './peernet-83538246.js';
1
+ import { M as MultiWallet, e as encrypt, b as base58$1 } from './peernet-1256dbee.js';
2
2
  import './value-157ab062.js';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { F as FormatInterface } from './peernet-83538246.js';
1
+ import { F as FormatInterface } from './peernet-1256dbee.js';
2
2
  import './value-157ab062.js';
3
3
 
4
4
  var proto$b = {
@@ -20180,7 +20180,7 @@ class Identity {
20180
20180
  globalThis.peernet.selectedAccount = new TextDecoder().decode(selected);
20181
20181
  }
20182
20182
  else {
20183
- const importee = await import(/* webpackChunkName: "generate-account" */ './index-712688fc.js');
20183
+ const importee = await import(/* webpackChunkName: "generate-account" */ './index-2c7d7136.js');
20184
20184
  const { identity, accounts } = await importee.default(password, this.network);
20185
20185
  await globalThis.accountStore.put('public', JSON.stringify({ walletId: identity.walletId }));
20186
20186
  await globalThis.walletStore.put('version', String(1));
@@ -20351,7 +20351,7 @@ class Peernet {
20351
20351
  this.root = options.root;
20352
20352
  const { RequestMessage, ResponseMessage, PeerMessage, PeerMessageResponse, PeernetMessage, DHTMessage, DHTMessageResponse, DataMessage, DataMessageResponse, PsMessage, ChatMessage, PeernetFile
20353
20353
  // FolderMessageResponse
20354
- } = await import(/* webpackChunkName: "messages" */ './messages-3f370680.js');
20354
+ } = await import(/* webpackChunkName: "messages" */ './messages-bcb7873b.js');
20355
20355
  /**
20356
20356
  * proto Object containing protos
20357
20357
  * @type {Object}
@@ -20423,7 +20423,7 @@ class Peernet {
20423
20423
  if (this.#starting || this.#started)
20424
20424
  return;
20425
20425
  this.#starting = true;
20426
- const importee = await import('./client-de444350.js');
20426
+ const importee = await import('./client-91364a04.js');
20427
20427
  /**
20428
20428
  * @access public
20429
20429
  * @type {PeernetClient}
@@ -20434,7 +20434,7 @@ class Peernet {
20434
20434
  }
20435
20435
  #peerLeft(peer) {
20436
20436
  for (const [id, _peer] of Object.entries(this.#connections)) {
20437
- if (peer.id === peer.id) {
20437
+ if (_peer.id === peer.id) {
20438
20438
  delete this.#connections[id];
20439
20439
  this.removePeer(_peer);
20440
20440
  }
@@ -1,2 +1,2 @@
1
- export { P as default } from './peernet-83538246.js';
1
+ export { P as default } from './peernet-1256dbee.js';
2
2
  import './value-157ab062.js';
@@ -594,7 +594,7 @@ class Peernet {
594
594
  }
595
595
  #peerLeft(peer) {
596
596
  for (const [id, _peer] of Object.entries(this.#connections)) {
597
- if (peer.id === peer.id) {
597
+ if (_peer.id === peer.id) {
598
598
  delete this.#connections[id];
599
599
  this.removePeer(_peer);
600
600
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/peernet",
3
- "version": "1.1.21",
3
+ "version": "1.1.22",
4
4
  "description": "",
5
5
  "main": "src/peernet.js",
6
6
  "exports": {
package/src/peernet.ts CHANGED
@@ -279,7 +279,7 @@ export default class Peernet {
279
279
 
280
280
  #peerLeft(peer) {
281
281
  for (const [id, _peer] of Object.entries(this.#connections)) {
282
- if (peer.id === peer.id) {
282
+ if (_peer.id === peer.id) {
283
283
  delete this.#connections[id]
284
284
  this.removePeer(_peer)
285
285
  }