@leofcoin/peernet 1.1.30 → 1.1.31

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-8aded868.js';
1
+ import { g as getDefaultExportFromCjs, c as commonjsGlobal } from './peernet-ad3ca002.js';
2
2
  import './value-157ab062.js';
3
3
 
4
4
  function commonjsRequire(path) {
@@ -40901,6 +40901,8 @@ var P2PT = /*@__PURE__*/getDefaultExportFromCjs(p2pt_umdExports);
40901
40901
 
40902
40902
  class P2PTPeer {
40903
40903
  id;
40904
+ remotePeerId;
40905
+ localPeerId;
40904
40906
  #peerId;
40905
40907
  #channelName
40906
40908
  initiator = false
@@ -40926,8 +40928,10 @@ class P2PTPeer {
40926
40928
  constructor(peer, p2pt, options = {}) {
40927
40929
  this.#connection = peer;
40928
40930
  this.p2pt = p2pt;
40929
- this.id = options.id;
40930
- this.to = options.to;
40931
+
40932
+ this.id = options.id || peer.id;
40933
+ this.localPeerId = this.p2pt.peerId;
40934
+
40931
40935
  this.bw = {
40932
40936
  up: 0,
40933
40937
  down: 0
@@ -1,4 +1,4 @@
1
- import { M as MultiWallet, e as encrypt, b as base58$1 } from './peernet-8aded868.js';
1
+ import { M as MultiWallet, e as encrypt, b as base58$1 } from './peernet-ad3ca002.js';
2
2
  import './value-157ab062.js';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { F as FormatInterface } from './peernet-8aded868.js';
1
+ import { F as FormatInterface } from './peernet-ad3ca002.js';
2
2
  import './value-157ab062.js';
3
3
 
4
4
  var proto$b = {
@@ -20184,7 +20184,7 @@ class Identity {
20184
20184
  globalThis.peernet.selectedAccount = new TextDecoder().decode(selected);
20185
20185
  }
20186
20186
  else {
20187
- const importee = await import(/* webpackChunkName: "generate-account" */ './index-437bf7cd.js');
20187
+ const importee = await import(/* webpackChunkName: "generate-account" */ './index-904b9f85.js');
20188
20188
  const { identity, accounts } = await importee.default(password, this.network);
20189
20189
  await globalThis.accountStore.put('public', JSON.stringify({ walletId: identity.walletId }));
20190
20190
  await globalThis.walletStore.put('version', String(1));
@@ -20355,7 +20355,7 @@ class Peernet {
20355
20355
  this.root = options.root;
20356
20356
  const { RequestMessage, ResponseMessage, PeerMessage, PeerMessageResponse, PeernetMessage, DHTMessage, DHTMessageResponse, DataMessage, DataMessageResponse, PsMessage, ChatMessage, PeernetFile
20357
20357
  // FolderMessageResponse
20358
- } = await import(/* webpackChunkName: "messages" */ './messages-ccc03e41.js');
20358
+ } = await import(/* webpackChunkName: "messages" */ './messages-de2c5670.js');
20359
20359
  /**
20360
20360
  * proto Object containing protos
20361
20361
  * @type {Object}
@@ -20434,7 +20434,7 @@ class Peernet {
20434
20434
  if (this.#starting || this.#started)
20435
20435
  return;
20436
20436
  this.#starting = true;
20437
- const importee = await import('./client-a56e0aac.js');
20437
+ const importee = await import('./client-d1c29e20.js');
20438
20438
  /**
20439
20439
  * @access public
20440
20440
  * @type {PeernetClient}
@@ -1,2 +1,2 @@
1
- export { P as default } from './peernet-8aded868.js';
1
+ export { P as default } from './peernet-ad3ca002.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.30",
3
+ "version": "1.1.31",
4
4
  "description": "",
5
5
  "main": "src/peernet.js",
6
6
  "exports": {