@web3auth/no-modal 8.0.0 → 8.0.1
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.
- package/dist/noModal.cjs.js +2 -0
- package/dist/noModal.cjs.js.map +1 -1
- package/dist/noModal.esm.js +2 -0
- package/dist/noModal.esm.js.map +1 -1
- package/dist/noModal.umd.min.js +1 -1
- package/dist/noModal.umd.min.js.LICENSE.txt +0 -4
- package/dist/noModal.umd.min.js.map +1 -1
- package/package.json +6 -6
- package/src/noModal.ts +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@web3auth/no-modal",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.1",
|
|
4
4
|
"description": "Multi chain wallet aggregator for web3Auth",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web3Auth/no-modal",
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
"@toruslabs/openlogin-jrpc": "^7.0.0",
|
|
42
42
|
"@toruslabs/openlogin-utils": "^7.0.4",
|
|
43
43
|
"@web3auth/base": "^8.0.0",
|
|
44
|
-
"@web3auth/base-plugin": "^8.0.
|
|
45
|
-
"@web3auth/base-provider": "^8.0.
|
|
44
|
+
"@web3auth/base-plugin": "^8.0.1",
|
|
45
|
+
"@web3auth/base-provider": "^8.0.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@web3auth/openlogin-adapter": "^8.0.
|
|
49
|
-
"@web3auth/wallet-connect-v2-adapter": "^8.0.
|
|
48
|
+
"@web3auth/openlogin-adapter": "^8.0.1",
|
|
49
|
+
"@web3auth/wallet-connect-v2-adapter": "^8.0.1"
|
|
50
50
|
},
|
|
51
51
|
"peerDependenciesMeta": {
|
|
52
52
|
"@web3auth/openlogin-adapter": {
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"node": ">=18.x",
|
|
77
77
|
"npm": ">=9.x"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "40e3cdde5360e5bba4ef7fdd23c221b0f2bc3c83"
|
|
80
80
|
}
|
package/src/noModal.ts
CHANGED
|
@@ -180,6 +180,8 @@ export class Web3AuthNoModal extends SafeEventEmitter implements IWeb3Auth {
|
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
public async addChain(chainConfig: CustomChainConfig): Promise<void> {
|
|
183
|
+
if (this.status === ADAPTER_STATUS.CONNECTED && this.connectedAdapterName)
|
|
184
|
+
return this.walletAdapters[this.connectedAdapterName].addChain(chainConfig);
|
|
183
185
|
if (this.commonJRPCProvider) {
|
|
184
186
|
return this.commonJRPCProvider.addChain(chainConfig);
|
|
185
187
|
}
|
|
@@ -187,6 +189,8 @@ export class Web3AuthNoModal extends SafeEventEmitter implements IWeb3Auth {
|
|
|
187
189
|
}
|
|
188
190
|
|
|
189
191
|
public async switchChain(params: { chainId: string }): Promise<void> {
|
|
192
|
+
if (this.status === ADAPTER_STATUS.CONNECTED && this.connectedAdapterName)
|
|
193
|
+
return this.walletAdapters[this.connectedAdapterName].switchChain(params);
|
|
190
194
|
if (this.commonJRPCProvider) {
|
|
191
195
|
return this.commonJRPCProvider.switchChain(params);
|
|
192
196
|
}
|