@web3auth/no-modal 8.4.0 → 8.5.0-alpha.0

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.
@@ -218,7 +218,10 @@ class Web3AuthNoModal extends openlogin_jrpc_namespaceObject.SafeEventEmitter {
218
218
  }).catch(e => base_namespaceObject.log.error(e));
219
219
  });
220
220
  await Promise.all(initPromises);
221
- if (this.status === base_namespaceObject.ADAPTER_STATUS.NOT_READY) this.status = base_namespaceObject.ADAPTER_STATUS.READY;
221
+ if (this.status === base_namespaceObject.ADAPTER_STATUS.NOT_READY) {
222
+ this.status = base_namespaceObject.ADAPTER_STATUS.READY;
223
+ this.emit(base_namespaceObject.ADAPTER_EVENTS.READY);
224
+ }
222
225
  }
223
226
  getAdapter(adapterName) {
224
227
  return this.walletAdapters[adapterName] || null;
@@ -1,7 +1,7 @@
1
1
  import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
2
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
3
3
  import { SafeEventEmitter } from '@toruslabs/openlogin-jrpc';
4
- import { ADAPTER_STATUS, WalletInitializationError, log, CHAIN_NAMESPACES, storageAvailable, getChainConfig, fetchProjectConfig, WALLET_ADAPTERS, ADAPTER_NAMESPACES, WalletLoginError, PLUGIN_NAMESPACES, ADAPTER_EVENTS } from '@web3auth/base';
4
+ import { ADAPTER_STATUS, WalletInitializationError, log, CHAIN_NAMESPACES, storageAvailable, getChainConfig, fetchProjectConfig, WALLET_ADAPTERS, ADAPTER_EVENTS, ADAPTER_NAMESPACES, WalletLoginError, PLUGIN_NAMESPACES } from '@web3auth/base';
5
5
  import { CommonJRPCProvider } from '@web3auth/base-provider';
6
6
  import { LOGIN_PROVIDER } from '@web3auth/openlogin-adapter';
7
7
  import clonedeep from 'lodash.clonedeep';
@@ -142,7 +142,10 @@ class Web3AuthNoModal extends SafeEventEmitter {
142
142
  }).catch(e => log.error(e));
143
143
  });
144
144
  await Promise.all(initPromises);
145
- if (this.status === ADAPTER_STATUS.NOT_READY) this.status = ADAPTER_STATUS.READY;
145
+ if (this.status === ADAPTER_STATUS.NOT_READY) {
146
+ this.status = ADAPTER_STATUS.READY;
147
+ this.emit(ADAPTER_EVENTS.READY);
148
+ }
146
149
  }
147
150
  getAdapter(adapterName) {
148
151
  return this.walletAdapters[adapterName] || null;