@leofcoin/peernet 1.1.48 → 1.1.50

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-813e6173.js';
1
+ import { M as MultiWallet, e as encrypt, b as base58$1 } from './peernet-a4156bfd.js';
2
2
  import './value-157ab062.js';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { F as FormatInterface } from './peernet-813e6173.js';
1
+ import { F as FormatInterface } from './peernet-a4156bfd.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-4df57fd7.js');
20183
+ const importee = await import(/* webpackChunkName: "generate-account" */ './index-6311966e.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));
@@ -20220,8 +20220,8 @@ class Identity {
20220
20220
 
20221
20221
  globalThis.LeofcoinStorage = LeofcoinStorage$1;
20222
20222
  globalThis.leofcoin = globalThis.leofcoin || {};
20223
- pubsub = pubsub || new LittlePubSub();
20224
- globalSub = globalSub || new LittlePubSub();
20223
+ globalThis.pubsub = globalThis.pubsub || new LittlePubSub();
20224
+ globalThis.globalSub = globalThis.globalSub || new LittlePubSub();
20225
20225
  /**
20226
20226
  * @access public
20227
20227
  * @example
@@ -20278,7 +20278,7 @@ class Peernet {
20278
20278
  if (!options.root) {
20279
20279
  parts[1] ? options.root = `.${parts[0]}/${parts[1]}` : options.root = `.${this.network}`;
20280
20280
  }
20281
- peernet = this;
20281
+ globalThis.peernet = this;
20282
20282
  this.bw = {
20283
20283
  up: 0,
20284
20284
  down: 0,
@@ -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-194cb7ee.js');
20357
+ } = await import(/* webpackChunkName: "messages" */ './messages-54aa3cad.js');
20358
20358
  /**
20359
20359
  * proto Object containing protos
20360
20360
  * @type {Object}
@@ -1,2 +1,2 @@
1
- export { P as default } from './peernet-813e6173.js';
1
+ export { P as default } from './peernet-a4156bfd.js';
2
2
  import './value-157ab062.js';
@@ -383,8 +383,8 @@ class Identity {
383
383
 
384
384
  globalThis.LeofcoinStorage = LeofcoinStorageClass;
385
385
  globalThis.leofcoin = globalThis.leofcoin || {};
386
- pubsub = pubsub || new PubSub();
387
- globalSub = globalSub || new PubSub();
386
+ globalThis.pubsub = globalThis.pubsub || new PubSub();
387
+ globalThis.globalSub = globalThis.globalSub || new PubSub();
388
388
  /**
389
389
  * @access public
390
390
  * @example
@@ -441,7 +441,7 @@ class Peernet {
441
441
  if (!options.root) {
442
442
  parts[1] ? options.root = `.${parts[0]}/${parts[1]}` : options.root = `.${this.network}`;
443
443
  }
444
- peernet = this;
444
+ globalThis.peernet = this;
445
445
  this.bw = {
446
446
  up: 0,
447
447
  down: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/peernet",
3
- "version": "1.1.48",
3
+ "version": "1.1.50",
4
4
  "description": "",
5
5
  "main": "src/peernet.js",
6
6
  "exports": {
package/src/peernet.ts CHANGED
@@ -24,8 +24,8 @@ declare global {
24
24
  globalThis.LeofcoinStorage = LeofcoinStorageClass
25
25
 
26
26
  globalThis.leofcoin = globalThis.leofcoin || {}
27
- pubsub = pubsub || new PubSub()
28
- globalSub = globalSub || new PubSub()
27
+ globalThis.pubsub = globalThis.pubsub || new PubSub()
28
+ globalThis.globalSub = globalThis.globalSub || new PubSub()
29
29
 
30
30
 
31
31
  /**
@@ -93,7 +93,7 @@ export default class Peernet {
93
93
  parts[1] ? options.root = `.${parts[0]}/${parts[1]}` : options.root = `.${this.network}`
94
94
  }
95
95
 
96
- peernet = this
96
+ globalThis.peernet = this
97
97
  this.bw = {
98
98
  up: 0,
99
99
  down: 0,