@web3auth/no-modal 11.0.2 → 11.1.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.
@@ -145,7 +145,7 @@ const getWalletServicesAnalyticsProperties = walletServicesConfig => {
145
145
  ws_default_portfolio: walletServicesConfig === null || walletServicesConfig === void 0 || (_walletServicesConfig10 = walletServicesConfig.whiteLabel) === null || _walletServicesConfig10 === void 0 ? void 0 : _walletServicesConfig10.defaultPortfolio
146
146
  };
147
147
  };
148
- const sdkVersion = "11.0.2";
148
+ const sdkVersion = "11.1.0";
149
149
  const getErrorAnalyticsProperties = error => {
150
150
  try {
151
151
  const code = error instanceof index.Web3AuthError ? error.code : error === null || error === void 0 ? void 0 : error.code;
@@ -372,11 +372,9 @@ class AuthConnector extends baseConnector.BaseConnector {
372
372
  }
373
373
  }
374
374
  async cleanup() {
375
- if (!this.authInstance) throw index.WalletInitializationError.notReady("authInstance is not ready");
376
- await this.authInstance.cleanup();
377
- if (this.wsEmbedInstance) {
378
- this.wsEmbedInstance.clearInit();
379
- }
375
+ var _this$authInstance, _this$wsEmbedInstance2;
376
+ await ((_this$authInstance = this.authInstance) === null || _this$authInstance === void 0 ? void 0 : _this$authInstance.cleanup());
377
+ (_this$wsEmbedInstance2 = this.wsEmbedInstance) === null || _this$wsEmbedInstance2 === void 0 || _this$wsEmbedInstance2.clearInit();
380
378
  this._solanaWallet = null;
381
379
  this.unbindWsEmbedProviderEvents();
382
380
  }
@@ -741,8 +739,8 @@ class AuthConnector extends baseConnector.BaseConnector {
741
739
  return accounts[0];
742
740
  }
743
741
  getWsEmbedProvider() {
744
- var _this$wsEmbedInstance2, _this$wsEmbedInstance3;
745
- return (_this$wsEmbedInstance2 = (_this$wsEmbedInstance3 = this.wsEmbedInstance) === null || _this$wsEmbedInstance3 === void 0 ? void 0 : _this$wsEmbedInstance3.provider) !== null && _this$wsEmbedInstance2 !== void 0 ? _this$wsEmbedInstance2 : null;
742
+ var _this$wsEmbedInstance3, _this$wsEmbedInstance4;
743
+ return (_this$wsEmbedInstance3 = (_this$wsEmbedInstance4 = this.wsEmbedInstance) === null || _this$wsEmbedInstance4 === void 0 ? void 0 : _this$wsEmbedInstance4.provider) !== null && _this$wsEmbedInstance3 !== void 0 ? _this$wsEmbedInstance3 : null;
746
744
  }
747
745
  bindWsEmbedProviderEvents() {
748
746
  const rawProvider = this.getWsEmbedProvider();
@@ -787,7 +785,7 @@ class AuthConnector extends baseConnector.BaseConnector {
787
785
  return finalPrivKey;
788
786
  }
789
787
  async connectWithProvider(params) {
790
- var _this$authInstance, _params$extraLoginOpt, _this$authInstance2, _this$authInstance3;
788
+ var _this$authInstance2, _params$extraLoginOpt, _this$authInstance3, _this$authInstance4;
791
789
  if (!this.authInstance) throw index.WalletInitializationError.notReady("authInstance is not ready");
792
790
  const chainConfig = this.coreOptions.chains.find(x => x.chainId === params.chainId);
793
791
  if (!chainConfig) throw index.WalletLoginError.connectionError("Chain config is not available");
@@ -795,7 +793,7 @@ class AuthConnector extends baseConnector.BaseConnector {
795
793
  chainNamespace
796
794
  } = chainConfig;
797
795
  // if not logged in then login
798
- const keyAvailable = chainNamespace === baseControllers.CHAIN_NAMESPACES.EIP155 || chainNamespace === baseControllers.CHAIN_NAMESPACES.SOLANA ? (_this$authInstance = this.authInstance) === null || _this$authInstance === void 0 ? void 0 : _this$authInstance.sessionId : this._getFinalPrivKey();
796
+ const keyAvailable = chainNamespace === baseControllers.CHAIN_NAMESPACES.EIP155 || chainNamespace === baseControllers.CHAIN_NAMESPACES.SOLANA ? (_this$authInstance2 = this.authInstance) === null || _this$authInstance2 === void 0 ? void 0 : _this$authInstance2.sessionId : this._getFinalPrivKey();
799
797
  if (params.idToken) params.extraLoginOptions = _objectSpread(_objectSpread({}, params.extraLoginOptions), {}, {
800
798
  id_token: params.idToken
801
799
  });
@@ -811,7 +809,7 @@ class AuthConnector extends baseConnector.BaseConnector {
811
809
  }
812
810
  }
813
811
  // if useSFAKey is true and privKey is available but coreKitKey is not available, throw an error
814
- if (this.coreOptions.useSFAKey && (_this$authInstance2 = this.authInstance) !== null && _this$authInstance2 !== void 0 && _this$authInstance2.privKey && !((_this$authInstance3 = this.authInstance) !== null && _this$authInstance3 !== void 0 && _this$authInstance3.coreKitKey)) {
812
+ if (this.coreOptions.useSFAKey && (_this$authInstance3 = this.authInstance) !== null && _this$authInstance3 !== void 0 && _this$authInstance3.privKey && !((_this$authInstance4 = this.authInstance) !== null && _this$authInstance4 !== void 0 && _this$authInstance4.coreKitKey)) {
815
813
  // If the user is already logged in, logout and throw an error
816
814
  if (this.authInstance.sessionId) {
817
815
  await this.authInstance.logout();
@@ -31,8 +31,6 @@ exports.DEFAULT_EIP155_METHODS = void 0;
31
31
  DEFAULT_EIP155_METHODS["ADD_ETHEREUM_CHAIN"] = "wallet_addEthereumChain";
32
32
  DEFAULT_EIP155_METHODS["SWITCH_ETHEREUM_CHAIN"] = "wallet_switchEthereumChain";
33
33
  })(exports.DEFAULT_EIP155_METHODS || (exports.DEFAULT_EIP155_METHODS = {}));
34
- // methods that return `null` on success
35
- const NULL_ON_SUCCESS_METHODS = [exports.DEFAULT_EIP155_METHODS.SWITCH_ETHEREUM_CHAIN, exports.DEFAULT_EIP155_METHODS.ADD_ETHEREUM_CHAIN];
36
34
  exports.DEFAULT_SOLANA_METHODS = void 0;
37
35
  (function (DEFAULT_SOLANA_METHODS) {
38
36
  DEFAULT_SOLANA_METHODS["SIGN_TRANSACTION"] = "solana_signTransaction";
@@ -125,7 +123,6 @@ const getWalletConnectV2Settings = async (chains, projectID) => {
125
123
  };
126
124
  };
127
125
 
128
- exports.NULL_ON_SUCCESS_METHODS = NULL_ON_SUCCESS_METHODS;
129
126
  exports.getNamespacesFromChains = getNamespacesFromChains;
130
127
  exports.getRequiredNamespaces = getRequiredNamespaces;
131
128
  exports.getSupportedEventsByNamespace = getSupportedEventsByNamespace;
@@ -22,7 +22,6 @@ Object.defineProperty(exports, "DEFAULT_SOLANA_METHODS", {
22
22
  enumerable: true,
23
23
  get: function () { return config.DEFAULT_SOLANA_METHODS; }
24
24
  });
25
- exports.NULL_ON_SUCCESS_METHODS = config.NULL_ON_SUCCESS_METHODS;
26
25
  exports.getNamespacesFromChains = config.getNamespacesFromChains;
27
26
  exports.getRequiredNamespaces = config.getRequiredNamespaces;
28
27
  exports.getSupportedEventsByNamespace = config.getSupportedEventsByNamespace;
@@ -165,7 +165,6 @@ Object.defineProperty(exports, "DEFAULT_SOLANA_METHODS", {
165
165
  enumerable: true,
166
166
  get: function () { return config.DEFAULT_SOLANA_METHODS; }
167
167
  });
168
- exports.NULL_ON_SUCCESS_METHODS = config.NULL_ON_SUCCESS_METHODS;
169
168
  exports.getNamespacesFromChains = config.getNamespacesFromChains;
170
169
  exports.getRequiredNamespaces = config.getRequiredNamespaces;
171
170
  exports.getSupportedEventsByNamespace = config.getSupportedEventsByNamespace;
@@ -258,7 +258,10 @@ class Web3AuthNoModal extends auth.SafeEventEmitter {
258
258
  }
259
259
  async cleanup() {
260
260
  for (const connector of this.connectors) {
261
- if (connector.cleanup) await connector.cleanup();
261
+ // if the connector is not ready, we don't need to cleanup
262
+ // this means that we load the connector (coz of the dashboard config) but the clients did not use it (i.e. with `showOnModal` set to false)
263
+ // example use case: external wallet **ONLY** login mode but the ClientID has enabled Auth connection in dashboard.
264
+ if (connector.cleanup && connector.status !== constants.CONNECTOR_STATUS.NOT_READY) await connector.cleanup();
262
265
  }
263
266
  }
264
267
  async switchChain(params) {
@@ -3,41 +3,6 @@
3
3
  var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
4
4
  var ethereumControllers = require('@toruslabs/ethereum-controllers');
5
5
  var auth = require('@web3auth/auth');
6
- require('@babel/runtime/helpers/defineProperty');
7
- require('@toruslabs/base-controllers');
8
- require('@toruslabs/constants');
9
- require('@toruslabs/http-helpers');
10
- require('@toruslabs/secure-pub-sub');
11
- require('@web3auth/ws-embed');
12
- require('deepmerge');
13
- require('@segment/analytics-next');
14
- require('../../../base/loglevel.js');
15
- require('@toruslabs/session-manager');
16
- require('../../../base/errors/index.js');
17
- require('../../../base/constants.js');
18
- require('../../../base/wallet/index.js');
19
- require('../../../base/connector/connectorStatus.js');
20
- require('../../../base/connector/constants.js');
21
- require('jwt-decode');
22
- require('../../../base/plugin/errors.js');
23
- require('../../../base/plugin/IPlugin.js');
24
- require('@toruslabs/eccrypto');
25
- require('@toruslabs/metadata-helpers');
26
- require('../../../connectors/auth-connector/authSolanaWallet.js');
27
- require('viem');
28
- require('viem/siwe');
29
- require('mipd');
30
- require('@solana/wallet-standard-features');
31
- require('@wallet-standard/app');
32
- require('@wallet-standard/features');
33
- require('@metamask/connect-evm');
34
- require('@metamask/connect-multichain');
35
- require('@metamask/connect-solana');
36
- var config = require('../../../connectors/wallet-connect-v2-connector/config.js');
37
- require('@walletconnect/sign-client');
38
- require('@walletconnect/utils');
39
- require('../../../connectors/wallet-connect-v2-connector/WalletConnectV2Provider.js');
40
- require('../../../connectors/wallet-connect-v2-connector/wcSolanaWallet.js');
41
6
 
42
7
  async function createAaMiddleware({
43
8
  eoaProvider,
@@ -234,17 +199,10 @@ function providerAsMiddleware(provider) {
234
199
  return async ({
235
200
  request
236
201
  }) => {
237
- const result = await provider.request({
202
+ return provider.request({
238
203
  method: request.method,
239
204
  params: request.params
240
205
  });
241
- if (result === undefined && config.NULL_ON_SUCCESS_METHODS.includes(request.method)) {
242
- // For some RPC requests, such as `wallet_switchEthereumChain`, the standard rpc result is `null`.
243
- // However, some wallet providers might return `undefined` instead and causing the JRPCEngineV2 to throw `Nothing ended the request` error.
244
- // So, we handle this case by returning `null` instead, so that JRPCEngineV2 won't throw `Nothing ended the request` error
245
- return null;
246
- }
247
- return result;
248
206
  };
249
207
  }
250
208
 
@@ -12,7 +12,6 @@ export declare enum DEFAULT_EIP155_METHODS {
12
12
  ADD_ETHEREUM_CHAIN = "wallet_addEthereumChain",
13
13
  SWITCH_ETHEREUM_CHAIN = "wallet_switchEthereumChain"
14
14
  }
15
- export declare const NULL_ON_SUCCESS_METHODS: string[];
16
15
  export declare enum DEFAULT_SOLANA_METHODS {
17
16
  SIGN_TRANSACTION = "solana_signTransaction",
18
17
  SIGN_MESSAGE = "solana_signMessage"
@@ -149,7 +149,7 @@ const getWalletServicesAnalyticsProperties = walletServicesConfig => {
149
149
  ws_default_portfolio: walletServicesConfig === null || walletServicesConfig === void 0 || (_walletServicesConfig10 = walletServicesConfig.whiteLabel) === null || _walletServicesConfig10 === void 0 ? void 0 : _walletServicesConfig10.defaultPortfolio
150
150
  };
151
151
  };
152
- const sdkVersion = "11.0.2";
152
+ const sdkVersion = "11.1.0";
153
153
  const getErrorAnalyticsProperties = error => {
154
154
  try {
155
155
  const code = error instanceof Web3AuthError ? error.code : error === null || error === void 0 ? void 0 : error.code;
@@ -370,11 +370,9 @@ class AuthConnector extends BaseConnector {
370
370
  }
371
371
  }
372
372
  async cleanup() {
373
- if (!this.authInstance) throw WalletInitializationError.notReady("authInstance is not ready");
374
- await this.authInstance.cleanup();
375
- if (this.wsEmbedInstance) {
376
- this.wsEmbedInstance.clearInit();
377
- }
373
+ var _this$authInstance, _this$wsEmbedInstance2;
374
+ await ((_this$authInstance = this.authInstance) === null || _this$authInstance === void 0 ? void 0 : _this$authInstance.cleanup());
375
+ (_this$wsEmbedInstance2 = this.wsEmbedInstance) === null || _this$wsEmbedInstance2 === void 0 || _this$wsEmbedInstance2.clearInit();
378
376
  this._solanaWallet = null;
379
377
  this.unbindWsEmbedProviderEvents();
380
378
  }
@@ -740,8 +738,8 @@ class AuthConnector extends BaseConnector {
740
738
  return accounts[0];
741
739
  }
742
740
  getWsEmbedProvider() {
743
- var _ref, _this$wsEmbedInstance2;
744
- return (_ref = (_this$wsEmbedInstance2 = this.wsEmbedInstance) === null || _this$wsEmbedInstance2 === void 0 ? void 0 : _this$wsEmbedInstance2.provider) !== null && _ref !== void 0 ? _ref : null;
741
+ var _ref, _this$wsEmbedInstance3;
742
+ return (_ref = (_this$wsEmbedInstance3 = this.wsEmbedInstance) === null || _this$wsEmbedInstance3 === void 0 ? void 0 : _this$wsEmbedInstance3.provider) !== null && _ref !== void 0 ? _ref : null;
745
743
  }
746
744
  bindWsEmbedProviderEvents() {
747
745
  const rawProvider = this.getWsEmbedProvider();
@@ -786,7 +784,7 @@ class AuthConnector extends BaseConnector {
786
784
  return finalPrivKey;
787
785
  }
788
786
  async connectWithProvider(params) {
789
- var _this$authInstance, _params$extraLoginOpt, _this$authInstance2, _this$authInstance3;
787
+ var _this$authInstance2, _params$extraLoginOpt, _this$authInstance3, _this$authInstance4;
790
788
  if (!this.authInstance) throw WalletInitializationError.notReady("authInstance is not ready");
791
789
  const chainConfig = this.coreOptions.chains.find(x => x.chainId === params.chainId);
792
790
  if (!chainConfig) throw WalletLoginError.connectionError("Chain config is not available");
@@ -795,7 +793,7 @@ class AuthConnector extends BaseConnector {
795
793
  } = chainConfig;
796
794
 
797
795
  // if not logged in then login
798
- const keyAvailable = chainNamespace === CHAIN_NAMESPACES.EIP155 || chainNamespace === CHAIN_NAMESPACES.SOLANA ? (_this$authInstance = this.authInstance) === null || _this$authInstance === void 0 ? void 0 : _this$authInstance.sessionId : this._getFinalPrivKey();
796
+ const keyAvailable = chainNamespace === CHAIN_NAMESPACES.EIP155 || chainNamespace === CHAIN_NAMESPACES.SOLANA ? (_this$authInstance2 = this.authInstance) === null || _this$authInstance2 === void 0 ? void 0 : _this$authInstance2.sessionId : this._getFinalPrivKey();
799
797
  if (params.idToken) params.extraLoginOptions = _objectSpread(_objectSpread({}, params.extraLoginOptions), {}, {
800
798
  id_token: params.idToken
801
799
  });
@@ -812,7 +810,7 @@ class AuthConnector extends BaseConnector {
812
810
  }
813
811
 
814
812
  // if useSFAKey is true and privKey is available but coreKitKey is not available, throw an error
815
- if (this.coreOptions.useSFAKey && (_this$authInstance2 = this.authInstance) !== null && _this$authInstance2 !== void 0 && _this$authInstance2.privKey && !((_this$authInstance3 = this.authInstance) !== null && _this$authInstance3 !== void 0 && _this$authInstance3.coreKitKey)) {
813
+ if (this.coreOptions.useSFAKey && (_this$authInstance3 = this.authInstance) !== null && _this$authInstance3 !== void 0 && _this$authInstance3.privKey && !((_this$authInstance4 = this.authInstance) !== null && _this$authInstance4 !== void 0 && _this$authInstance4.coreKitKey)) {
816
814
  // If the user is already logged in, logout and throw an error
817
815
  if (this.authInstance.sessionId) {
818
816
  await this.authInstance.logout();
@@ -14,9 +14,6 @@ let DEFAULT_EIP155_METHODS = /*#__PURE__*/function (DEFAULT_EIP155_METHODS) {
14
14
  DEFAULT_EIP155_METHODS["SWITCH_ETHEREUM_CHAIN"] = "wallet_switchEthereumChain";
15
15
  return DEFAULT_EIP155_METHODS;
16
16
  }({});
17
-
18
- // methods that return `null` on success
19
- const NULL_ON_SUCCESS_METHODS = [DEFAULT_EIP155_METHODS.SWITCH_ETHEREUM_CHAIN, DEFAULT_EIP155_METHODS.ADD_ETHEREUM_CHAIN];
20
17
  let DEFAULT_SOLANA_METHODS = /*#__PURE__*/function (DEFAULT_SOLANA_METHODS) {
21
18
  DEFAULT_SOLANA_METHODS["SIGN_TRANSACTION"] = "solana_signTransaction";
22
19
  DEFAULT_SOLANA_METHODS["SIGN_MESSAGE"] = "solana_signMessage";
@@ -110,4 +107,4 @@ const getWalletConnectV2Settings = async (chains, projectID) => {
110
107
  };
111
108
  };
112
109
 
113
- export { DEFAULT_EIP155_METHODS, DEFAULT_EIP_155_EVENTS, DEFAULT_SOLANA_EVENTS, DEFAULT_SOLANA_METHODS, NULL_ON_SUCCESS_METHODS, getNamespacesFromChains, getRequiredNamespaces, getSupportedEventsByNamespace, getSupportedMethodsByNamespace, getWalletConnectV2Settings };
110
+ export { DEFAULT_EIP155_METHODS, DEFAULT_EIP_155_EVENTS, DEFAULT_SOLANA_EVENTS, DEFAULT_SOLANA_METHODS, getNamespacesFromChains, getRequiredNamespaces, getSupportedEventsByNamespace, getSupportedMethodsByNamespace, getWalletConnectV2Settings };
@@ -1,4 +1,4 @@
1
- export { DEFAULT_EIP155_METHODS, DEFAULT_EIP_155_EVENTS, DEFAULT_SOLANA_EVENTS, DEFAULT_SOLANA_METHODS, NULL_ON_SUCCESS_METHODS, getNamespacesFromChains, getRequiredNamespaces, getSupportedEventsByNamespace, getSupportedMethodsByNamespace, getWalletConnectV2Settings } from './config.js';
1
+ export { DEFAULT_EIP155_METHODS, DEFAULT_EIP_155_EVENTS, DEFAULT_SOLANA_EVENTS, DEFAULT_SOLANA_METHODS, getNamespacesFromChains, getRequiredNamespaces, getSupportedEventsByNamespace, getSupportedMethodsByNamespace, getWalletConnectV2Settings } from './config.js';
2
2
  import { walletConnectV2Connector } from './walletConnectV2Connector.js';
3
3
  export { WalletConnectV2Provider } from './WalletConnectV2Provider.js';
4
4
 
@@ -15,7 +15,7 @@ export { CONNECTOR_NAMES, EVM_CONNECTORS, MULTI_CHAIN_CONNECTORS, SOLANA_CONNECT
15
15
  export { CONNECTOR_NAMESPACES } from './base/chain/IChainInterface.js';
16
16
  export { CommonJRPCProvider } from './providers/base-provider/CommonJRPCProvider.js';
17
17
  export { CommonPrivateKeyProvider } from './providers/base-provider/commonPrivateKeyProvider.js';
18
- export { DEFAULT_EIP155_METHODS, DEFAULT_EIP_155_EVENTS, DEFAULT_SOLANA_EVENTS, DEFAULT_SOLANA_METHODS, NULL_ON_SUCCESS_METHODS, getNamespacesFromChains, getRequiredNamespaces, getSupportedEventsByNamespace, getSupportedMethodsByNamespace, getWalletConnectV2Settings } from './connectors/wallet-connect-v2-connector/config.js';
18
+ export { DEFAULT_EIP155_METHODS, DEFAULT_EIP_155_EVENTS, DEFAULT_SOLANA_EVENTS, DEFAULT_SOLANA_METHODS, getNamespacesFromChains, getRequiredNamespaces, getSupportedEventsByNamespace, getSupportedMethodsByNamespace, getWalletConnectV2Settings } from './connectors/wallet-connect-v2-connector/config.js';
19
19
  export { EIP1193_EVENTS } from './providers/base-provider/utils.js';
20
20
  export { EIP_7702_SUPPORTED_SMART_ACCOUNTS, LOGIN_MODE, MODAL_SIGN_IN_METHODS, SMART_ACCOUNT_WALLET_SCOPE, SOLANA_CAIP_CHAIN_MAP, WALLET_REGISTRY_URL, WEB3AUTH_STATE_STORAGE_KEY, WIDGET_TYPE } from './base/constants.js';
21
21
  export { EVM_PLUGINS, PLUGIN_EVENTS, PLUGIN_NAMESPACES, PLUGIN_STATUS, SOLANA_PLUGINS, WALLET_PLUGINS } from './base/plugin/IPlugin.js';
@@ -261,7 +261,10 @@ class Web3AuthNoModal extends SafeEventEmitter {
261
261
  }
262
262
  async cleanup() {
263
263
  for (const connector of this.connectors) {
264
- if (connector.cleanup) await connector.cleanup();
264
+ // if the connector is not ready, we don't need to cleanup
265
+ // this means that we load the connector (coz of the dashboard config) but the clients did not use it (i.e. with `showOnModal` set to false)
266
+ // example use case: external wallet **ONLY** login mode but the ClientID has enabled Auth connection in dashboard.
267
+ if (connector.cleanup && connector.status !== CONNECTOR_STATUS.NOT_READY) await connector.cleanup();
265
268
  }
266
269
  }
267
270
  async switchChain(params) {
@@ -1,7 +1,6 @@
1
1
  import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
2
  import { METHOD_TYPES, EIP_5792_METHODS, EIP_7702_METHODS } from '@toruslabs/ethereum-controllers';
3
3
  import { createScaffoldMiddlewareV2, providerErrors, rpcErrors } from '@web3auth/auth';
4
- import { NULL_ON_SUCCESS_METHODS } from '../../../connectors/wallet-connect-v2-connector/config.js';
5
4
 
6
5
  async function createAaMiddleware({
7
6
  eoaProvider,
@@ -200,17 +199,10 @@ function providerAsMiddleware(provider) {
200
199
  return async ({
201
200
  request
202
201
  }) => {
203
- const result = await provider.request({
202
+ return provider.request({
204
203
  method: request.method,
205
204
  params: request.params
206
205
  });
207
- if (result === undefined && NULL_ON_SUCCESS_METHODS.includes(request.method)) {
208
- // For some RPC requests, such as `wallet_switchEthereumChain`, the standard rpc result is `null`.
209
- // However, some wallet providers might return `undefined` instead and causing the JRPCEngineV2 to throw `Nothing ended the request` error.
210
- // So, we handle this case by returning `null` instead, so that JRPCEngineV2 won't throw `Nothing ended the request` error
211
- return null;
212
- }
213
- return result;
214
206
  };
215
207
  }
216
208
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@web3auth/no-modal",
3
- "version": "11.0.2",
3
+ "version": "11.1.0",
4
4
  "description": "Multi chain wallet aggregator for web3Auth",
5
5
  "keywords": [
6
6
  "web3Auth/no-modal",
@@ -65,9 +65,9 @@
65
65
  }
66
66
  },
67
67
  "dependencies": {
68
- "@metamask/connect-evm": "^1.4.0",
69
- "@metamask/connect-multichain": "^0.15.0",
70
- "@metamask/connect-solana": "^1.2.0",
68
+ "@metamask/connect-evm": "^2.0.0",
69
+ "@metamask/connect-multichain": "^1.0.0",
70
+ "@metamask/connect-solana": "^2.0.0",
71
71
  "@segment/analytics-next": "^1.84.0",
72
72
  "@solana/client": "^1.7.0",
73
73
  "@solana/kit": "^6.9.0",
@@ -75,7 +75,7 @@
75
75
  "@toruslabs/base-controllers": "^9.10.0",
76
76
  "@toruslabs/constants": "^16.1.1",
77
77
  "@toruslabs/eccrypto": "^7.0.0",
78
- "@toruslabs/ethereum-controllers": "^9.10.0",
78
+ "@toruslabs/ethereum-controllers": "^9.11.0",
79
79
  "@toruslabs/http-helpers": "^9.0.0",
80
80
  "@toruslabs/loglevel-sentry": "^9.0.0",
81
81
  "@toruslabs/metadata-helpers": "^8.2.0",
@@ -88,7 +88,7 @@
88
88
  "@walletconnect/types": "^2.23.9",
89
89
  "@walletconnect/utils": "^2.23.9",
90
90
  "@web3auth/auth": "^11.8.1",
91
- "@web3auth/ws-embed": "^6.0.4",
91
+ "@web3auth/ws-embed": "^6.1.0",
92
92
  "bignumber.js": "~9.3.1",
93
93
  "deepmerge": "^4.3.1",
94
94
  "ethers": "^6.16.0",
@@ -252,5 +252,5 @@
252
252
  "node": ">=22.x",
253
253
  "npm": ">=10.x"
254
254
  },
255
- "gitHead": "de91630f1420601b3a9b2377c0dff760b8674013"
255
+ "gitHead": "50c16e16f234a5934ce51f56e30b5ab48cad72ae"
256
256
  }