@leofcoin/chain 1.5.14 → 1.5.15

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 './node-browser-505084de.js';
1
+ import { M as MultiWallet, e as encrypt, b as base58$1 } from './node-browser-af58f01b.js';
2
2
  import './index-e8f03811.js';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { F as FormatInterface } from './node-browser-505084de.js';
1
+ import { F as FormatInterface } from './node-browser-af58f01b.js';
2
2
  import './index-e8f03811.js';
3
3
 
4
4
  var proto$b = {
@@ -20216,7 +20216,7 @@ class Identity {
20216
20216
  this.selectedAccount = new TextDecoder().decode(selected);
20217
20217
  }
20218
20218
  else {
20219
- const importee = await import(/* webpackChunkName: "generate-account" */ './index-329e0324-67daaccb.js');
20219
+ const importee = await import(/* webpackChunkName: "generate-account" */ './index-329e0324-71fa9c50.js');
20220
20220
  const { identity, accounts } = await importee.default(password, this.network);
20221
20221
  await globalThis.accountStore.put('public', JSON.stringify({ walletId: identity.walletId }));
20222
20222
  await globalThis.walletStore.put('version', String(1));
@@ -20407,7 +20407,7 @@ class Peernet {
20407
20407
  this.root = options.root;
20408
20408
  const { RequestMessage, ResponseMessage, PeerMessage, PeerMessageResponse, PeernetMessage, DHTMessage, DHTMessageResponse, DataMessage, DataMessageResponse, PsMessage, ChatMessage, PeernetFile
20409
20409
  // FolderMessageResponse
20410
- } = await import(/* webpackChunkName: "messages" */ './messages-000b7f84-fd07a3bf.js');
20410
+ } = await import(/* webpackChunkName: "messages" */ './messages-000b7f84-88d5e15b.js');
20411
20411
  /**
20412
20412
  * proto Object containing protos
20413
20413
  * @type {Object}
@@ -20973,9 +20973,11 @@ class Node {
20973
20973
  }, password) {
20974
20974
  this.#node = globalThis.Peernet ? await new globalThis.Peernet(config, password) : await new Peernet(config, password);
20975
20975
  await nodeConfig(config);
20976
- globalThis.pubsub.subscribe('chain:ready', () => {
20977
- if (!this.#node.autoStart)
20978
- this.#node.start();
20976
+ globalThis.pubsub.subscribe('chain:ready', async () => {
20977
+ if (!this.#node.autoStart) {
20978
+ await this.#node.start();
20979
+ pubsub.publish('node:ready', true);
20980
+ }
20979
20981
  });
20980
20982
  return this;
20981
20983
  // this.config = await config()
@@ -1,2 +1,2 @@
1
- export { N as default } from './node-browser-505084de.js';
1
+ export { N as default } from './node-browser-af58f01b.js';
2
2
  import './index-e8f03811.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/chain",
3
- "version": "1.5.14",
3
+ "version": "1.5.15",
4
4
  "description": "Official javascript implementation",
5
5
  "exports": {
6
6
  "./node": {