@leofcoin/peernet 1.1.69 → 1.1.71

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 { M as MultiWallet, e as encrypt, b as base58$1 } from './peernet-4d189113.js';
1
+ import { M as MultiWallet, e as encrypt, b as base58$1 } from './peernet-509d1c89.js';
2
2
  import './value-4e80eeeb.js';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { F as FormatInterface } from './peernet-4d189113.js';
1
+ import { F as FormatInterface } from './peernet-509d1c89.js';
2
2
  import './value-4e80eeeb.js';
3
3
 
4
4
  var proto$b = {
@@ -27088,7 +27088,7 @@ class Identity {
27088
27088
  this.selectedAccount = new TextDecoder().decode(selected);
27089
27089
  }
27090
27090
  else {
27091
- const importee = await import(/* webpackChunkName: "generate-account" */ './index-7dedefe5.js');
27091
+ const importee = await import(/* webpackChunkName: "generate-account" */ './index-2836cc96.js');
27092
27092
  const { identity, accounts } = await importee.default(password, this.network);
27093
27093
  await globalThis.accountStore.put('public', JSON.stringify({ walletId: identity.walletId }));
27094
27094
  await globalThis.walletStore.put('version', String(1));
@@ -27279,7 +27279,7 @@ class Peernet {
27279
27279
  this.root = options.root;
27280
27280
  const { RequestMessage, ResponseMessage, PeerMessage, PeerMessageResponse, PeernetMessage, DHTMessage, DHTMessageResponse, DataMessage, DataMessageResponse, PsMessage, ChatMessage, PeernetFile
27281
27281
  // FolderMessageResponse
27282
- } = await import(/* webpackChunkName: "messages" */ './messages-7cab2a51.js');
27282
+ } = await import(/* webpackChunkName: "messages" */ './messages-554d2a85.js');
27283
27283
  /**
27284
27284
  * proto Object containing protos
27285
27285
  * @type {Object}
@@ -27504,7 +27504,7 @@ class Peernet {
27504
27504
  to: peerId,
27505
27505
  version
27506
27506
  });
27507
- peer.on('signal', (signal) => this.#peerSignal(peer, signal, star));
27507
+ peer.on('signal', (signal) => this.#peerSignal(peer, signal, star, this.version));
27508
27508
  peer.on('connect', () => this.#peerConnect(peer));
27509
27509
  peer.on('close', () => this.#peerClose(peer));
27510
27510
  peer.on('data', (data) => this.#peerData(peer, data));
@@ -27536,7 +27536,7 @@ class Peernet {
27536
27536
  console.warn(`channelNames don't match: got ${peer.channelName}, expected: ${channelName}`);
27537
27537
  peer.signal(signal);
27538
27538
  };
27539
- #peerSignal = (peer, signal, star) => {
27539
+ #peerSignal = (peer, signal, star, version) => {
27540
27540
  let client = this.#stars[star];
27541
27541
  if (!client)
27542
27542
  client = this.#stars[Object.keys(this.#stars)[0]];
@@ -27546,7 +27546,7 @@ class Peernet {
27546
27546
  from: this.peerId,
27547
27547
  to: peer.peerId,
27548
27548
  channelName: peer.channelName,
27549
- version: this.version,
27549
+ version,
27550
27550
  signal
27551
27551
  }
27552
27552
  });
@@ -1,2 +1,2 @@
1
- export { P as default } from './peernet-4d189113.js';
1
+ export { P as default } from './peernet-509d1c89.js';
2
2
  import './value-4e80eeeb.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/peernet",
3
- "version": "1.1.69",
3
+ "version": "1.1.71",
4
4
  "description": "",
5
5
  "main": "src/peernet.js",
6
6
  "exports": {