@depay/web3-wallets-evm 15.4.2 → 15.4.5
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/esm/index.evm.js +9 -2
- package/dist/esm/index.js +9 -2
- package/dist/esm/index.solana.js +9 -2
- package/dist/umd/index.evm.js +9 -2
- package/dist/umd/index.js +9 -2
- package/dist/umd/index.solana.js +9 -2
- package/package.json +1 -1
package/dist/esm/index.evm.js
CHANGED
|
@@ -60270,9 +60270,11 @@ const getPlainInstance = ()=>{
|
|
|
60270
60270
|
|
|
60271
60271
|
const isConnected = ()=>{
|
|
60272
60272
|
return new Promise(async(resolve, reject)=>{
|
|
60273
|
-
|
|
60273
|
+
|
|
60274
|
+
setTimeout(()=>{ resolve(false); }, 800);
|
|
60274
60275
|
|
|
60275
60276
|
if(!localStorage['walletconnect'] || JSON.parse(localStorage['walletconnect']).handshakeTopic.length == 0) {
|
|
60277
|
+
delete localStorage['walletconnect'];
|
|
60276
60278
|
return resolve(false)
|
|
60277
60279
|
}
|
|
60278
60280
|
|
|
@@ -60283,8 +60285,13 @@ const isConnected = ()=>{
|
|
|
60283
60285
|
let blockNumber = await connector.sendCustomRequest({ method: 'eth_blockNumber' });
|
|
60284
60286
|
if(blockNumber) {
|
|
60285
60287
|
accounts = await connector.sendCustomRequest({ method: 'eth_accounts' });
|
|
60288
|
+
} else {
|
|
60289
|
+
delete localStorage['walletconnect'];
|
|
60286
60290
|
}
|
|
60287
|
-
} catch (error) {
|
|
60291
|
+
} catch (error) {
|
|
60292
|
+
delete localStorage['walletconnect'];
|
|
60293
|
+
resolve(false);
|
|
60294
|
+
}
|
|
60288
60295
|
|
|
60289
60296
|
return resolve(accounts && accounts.length)
|
|
60290
60297
|
})
|
package/dist/esm/index.js
CHANGED
|
@@ -833,9 +833,11 @@ const getPlainInstance = ()=>{
|
|
|
833
833
|
|
|
834
834
|
const isConnected = ()=>{
|
|
835
835
|
return new Promise(async(resolve, reject)=>{
|
|
836
|
-
|
|
836
|
+
|
|
837
|
+
setTimeout(()=>{ resolve(false); }, 800);
|
|
837
838
|
|
|
838
839
|
if(!localStorage['walletconnect'] || JSON.parse(localStorage['walletconnect']).handshakeTopic.length == 0) {
|
|
840
|
+
delete localStorage['walletconnect'];
|
|
839
841
|
return resolve(false)
|
|
840
842
|
}
|
|
841
843
|
|
|
@@ -846,8 +848,13 @@ const isConnected = ()=>{
|
|
|
846
848
|
let blockNumber = await connector.sendCustomRequest({ method: 'eth_blockNumber' });
|
|
847
849
|
if(blockNumber) {
|
|
848
850
|
accounts = await connector.sendCustomRequest({ method: 'eth_accounts' });
|
|
851
|
+
} else {
|
|
852
|
+
delete localStorage['walletconnect'];
|
|
849
853
|
}
|
|
850
|
-
} catch (error) {
|
|
854
|
+
} catch (error) {
|
|
855
|
+
delete localStorage['walletconnect'];
|
|
856
|
+
resolve(false);
|
|
857
|
+
}
|
|
851
858
|
|
|
852
859
|
return resolve(accounts && accounts.length)
|
|
853
860
|
})
|
package/dist/esm/index.solana.js
CHANGED
|
@@ -60270,9 +60270,11 @@ const getPlainInstance = ()=>{
|
|
|
60270
60270
|
|
|
60271
60271
|
const isConnected = ()=>{
|
|
60272
60272
|
return new Promise(async(resolve, reject)=>{
|
|
60273
|
-
|
|
60273
|
+
|
|
60274
|
+
setTimeout(()=>{ resolve(false); }, 800);
|
|
60274
60275
|
|
|
60275
60276
|
if(!localStorage['walletconnect'] || JSON.parse(localStorage['walletconnect']).handshakeTopic.length == 0) {
|
|
60277
|
+
delete localStorage['walletconnect'];
|
|
60276
60278
|
return resolve(false)
|
|
60277
60279
|
}
|
|
60278
60280
|
|
|
@@ -60283,8 +60285,13 @@ const isConnected = ()=>{
|
|
|
60283
60285
|
let blockNumber = await connector.sendCustomRequest({ method: 'eth_blockNumber' });
|
|
60284
60286
|
if(blockNumber) {
|
|
60285
60287
|
accounts = await connector.sendCustomRequest({ method: 'eth_accounts' });
|
|
60288
|
+
} else {
|
|
60289
|
+
delete localStorage['walletconnect'];
|
|
60286
60290
|
}
|
|
60287
|
-
} catch (error) {
|
|
60291
|
+
} catch (error) {
|
|
60292
|
+
delete localStorage['walletconnect'];
|
|
60293
|
+
resolve(false);
|
|
60294
|
+
}
|
|
60288
60295
|
|
|
60289
60296
|
return resolve(accounts && accounts.length)
|
|
60290
60297
|
})
|
package/dist/umd/index.evm.js
CHANGED
|
@@ -60274,9 +60274,11 @@
|
|
|
60274
60274
|
|
|
60275
60275
|
const isConnected = ()=>{
|
|
60276
60276
|
return new Promise(async(resolve, reject)=>{
|
|
60277
|
-
|
|
60277
|
+
|
|
60278
|
+
setTimeout(()=>{ resolve(false); }, 800);
|
|
60278
60279
|
|
|
60279
60280
|
if(!localStorage['walletconnect'] || JSON.parse(localStorage['walletconnect']).handshakeTopic.length == 0) {
|
|
60281
|
+
delete localStorage['walletconnect'];
|
|
60280
60282
|
return resolve(false)
|
|
60281
60283
|
}
|
|
60282
60284
|
|
|
@@ -60287,8 +60289,13 @@
|
|
|
60287
60289
|
let blockNumber = await connector.sendCustomRequest({ method: 'eth_blockNumber' });
|
|
60288
60290
|
if(blockNumber) {
|
|
60289
60291
|
accounts = await connector.sendCustomRequest({ method: 'eth_accounts' });
|
|
60292
|
+
} else {
|
|
60293
|
+
delete localStorage['walletconnect'];
|
|
60290
60294
|
}
|
|
60291
|
-
} catch (error) {
|
|
60295
|
+
} catch (error) {
|
|
60296
|
+
delete localStorage['walletconnect'];
|
|
60297
|
+
resolve(false);
|
|
60298
|
+
}
|
|
60292
60299
|
|
|
60293
60300
|
return resolve(accounts && accounts.length)
|
|
60294
60301
|
})
|
package/dist/umd/index.js
CHANGED
|
@@ -836,9 +836,11 @@
|
|
|
836
836
|
|
|
837
837
|
const isConnected = ()=>{
|
|
838
838
|
return new Promise(async(resolve, reject)=>{
|
|
839
|
-
|
|
839
|
+
|
|
840
|
+
setTimeout(()=>{ resolve(false); }, 800);
|
|
840
841
|
|
|
841
842
|
if(!localStorage['walletconnect'] || JSON.parse(localStorage['walletconnect']).handshakeTopic.length == 0) {
|
|
843
|
+
delete localStorage['walletconnect'];
|
|
842
844
|
return resolve(false)
|
|
843
845
|
}
|
|
844
846
|
|
|
@@ -849,8 +851,13 @@
|
|
|
849
851
|
let blockNumber = await connector.sendCustomRequest({ method: 'eth_blockNumber' });
|
|
850
852
|
if(blockNumber) {
|
|
851
853
|
accounts = await connector.sendCustomRequest({ method: 'eth_accounts' });
|
|
854
|
+
} else {
|
|
855
|
+
delete localStorage['walletconnect'];
|
|
852
856
|
}
|
|
853
|
-
} catch (error) {
|
|
857
|
+
} catch (error) {
|
|
858
|
+
delete localStorage['walletconnect'];
|
|
859
|
+
resolve(false);
|
|
860
|
+
}
|
|
854
861
|
|
|
855
862
|
return resolve(accounts && accounts.length)
|
|
856
863
|
})
|
package/dist/umd/index.solana.js
CHANGED
|
@@ -60274,9 +60274,11 @@
|
|
|
60274
60274
|
|
|
60275
60275
|
const isConnected = ()=>{
|
|
60276
60276
|
return new Promise(async(resolve, reject)=>{
|
|
60277
|
-
|
|
60277
|
+
|
|
60278
|
+
setTimeout(()=>{ resolve(false); }, 800);
|
|
60278
60279
|
|
|
60279
60280
|
if(!localStorage['walletconnect'] || JSON.parse(localStorage['walletconnect']).handshakeTopic.length == 0) {
|
|
60281
|
+
delete localStorage['walletconnect'];
|
|
60280
60282
|
return resolve(false)
|
|
60281
60283
|
}
|
|
60282
60284
|
|
|
@@ -60287,8 +60289,13 @@
|
|
|
60287
60289
|
let blockNumber = await connector.sendCustomRequest({ method: 'eth_blockNumber' });
|
|
60288
60290
|
if(blockNumber) {
|
|
60289
60291
|
accounts = await connector.sendCustomRequest({ method: 'eth_accounts' });
|
|
60292
|
+
} else {
|
|
60293
|
+
delete localStorage['walletconnect'];
|
|
60290
60294
|
}
|
|
60291
|
-
} catch (error) {
|
|
60295
|
+
} catch (error) {
|
|
60296
|
+
delete localStorage['walletconnect'];
|
|
60297
|
+
resolve(false);
|
|
60298
|
+
}
|
|
60292
60299
|
|
|
60293
60300
|
return resolve(accounts && accounts.length)
|
|
60294
60301
|
})
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depay/web3-wallets-evm",
|
|
3
3
|
"moduleName": "Web3Wallets",
|
|
4
|
-
"version": "15.4.
|
|
4
|
+
"version": "15.4.5",
|
|
5
5
|
"description": "One-Stop-Shop JavaScript library to integrate various web3 crypto wallets and multiple blockchains at once with a single interface.",
|
|
6
6
|
"main": "dist/umd/index.evm.js",
|
|
7
7
|
"module": "dist/esm/index.evm.js",
|