@leofcoin/peernet 1.1.48 → 1.1.49

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-9c2a381a.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-9c2a381a.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-5f6ba5a4.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
@@ -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-5569e6ce.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-9c2a381a.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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/peernet",
3
- "version": "1.1.48",
3
+ "version": "1.1.49",
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
  /**