@depay/web3-wallets-evm 15.0.1 → 15.0.2
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 +4 -3
- package/dist/esm/index.js +4 -3
- package/dist/umd/index.evm.js +4 -3
- package/dist/umd/index.js +4 -3
- package/package.json +1 -1
package/dist/esm/index.evm.js
CHANGED
|
@@ -60127,13 +60127,14 @@ let currentPlainInstance;
|
|
|
60127
60127
|
const getPlainInstance = ()=>{
|
|
60128
60128
|
if(currentPlainInstance) { return currentPlainInstance }
|
|
60129
60129
|
currentPlainInstance = getWalletConnectInstance(()=>{});
|
|
60130
|
+
return currentPlainInstance
|
|
60130
60131
|
};
|
|
60131
60132
|
|
|
60132
60133
|
const isConnected = async()=>{
|
|
60133
60134
|
let connector = getPlainInstance();
|
|
60134
|
-
let
|
|
60135
|
-
try {
|
|
60136
|
-
return
|
|
60135
|
+
let accounts;
|
|
60136
|
+
try { accounts = await connector.sendCustomRequest({ method: 'eth_accounts' }); } catch (error) { console.log(error); }
|
|
60137
|
+
return accounts && accounts.length
|
|
60137
60138
|
};
|
|
60138
60139
|
|
|
60139
60140
|
const getConnectedInstance$1 = async()=>{
|
package/dist/esm/index.js
CHANGED
|
@@ -1221,13 +1221,14 @@ let currentPlainInstance;
|
|
|
1221
1221
|
const getPlainInstance = ()=>{
|
|
1222
1222
|
if(currentPlainInstance) { return currentPlainInstance }
|
|
1223
1223
|
currentPlainInstance = getWalletConnectInstance(()=>{});
|
|
1224
|
+
return currentPlainInstance
|
|
1224
1225
|
};
|
|
1225
1226
|
|
|
1226
1227
|
const isConnected = async()=>{
|
|
1227
1228
|
let connector = getPlainInstance();
|
|
1228
|
-
let
|
|
1229
|
-
try {
|
|
1230
|
-
return
|
|
1229
|
+
let accounts;
|
|
1230
|
+
try { accounts = await connector.sendCustomRequest({ method: 'eth_accounts' }); } catch (error) { console.log(error); }
|
|
1231
|
+
return accounts && accounts.length
|
|
1231
1232
|
};
|
|
1232
1233
|
|
|
1233
1234
|
const getConnectedInstance$1 = async()=>{
|
package/dist/umd/index.evm.js
CHANGED
|
@@ -60126,13 +60126,14 @@
|
|
|
60126
60126
|
const getPlainInstance = ()=>{
|
|
60127
60127
|
if(currentPlainInstance) { return currentPlainInstance }
|
|
60128
60128
|
currentPlainInstance = getWalletConnectInstance(()=>{});
|
|
60129
|
+
return currentPlainInstance
|
|
60129
60130
|
};
|
|
60130
60131
|
|
|
60131
60132
|
const isConnected = async()=>{
|
|
60132
60133
|
let connector = getPlainInstance();
|
|
60133
|
-
let
|
|
60134
|
-
try {
|
|
60135
|
-
return
|
|
60134
|
+
let accounts;
|
|
60135
|
+
try { accounts = await connector.sendCustomRequest({ method: 'eth_accounts' }); } catch (error) { console.log(error); }
|
|
60136
|
+
return accounts && accounts.length
|
|
60136
60137
|
};
|
|
60137
60138
|
|
|
60138
60139
|
const getConnectedInstance$1 = async()=>{
|
package/dist/umd/index.js
CHANGED
|
@@ -1219,13 +1219,14 @@
|
|
|
1219
1219
|
const getPlainInstance = ()=>{
|
|
1220
1220
|
if(currentPlainInstance) { return currentPlainInstance }
|
|
1221
1221
|
currentPlainInstance = getWalletConnectInstance(()=>{});
|
|
1222
|
+
return currentPlainInstance
|
|
1222
1223
|
};
|
|
1223
1224
|
|
|
1224
1225
|
const isConnected = async()=>{
|
|
1225
1226
|
let connector = getPlainInstance();
|
|
1226
|
-
let
|
|
1227
|
-
try {
|
|
1228
|
-
return
|
|
1227
|
+
let accounts;
|
|
1228
|
+
try { accounts = await connector.sendCustomRequest({ method: 'eth_accounts' }); } catch (error) { console.log(error); }
|
|
1229
|
+
return accounts && accounts.length
|
|
1229
1230
|
};
|
|
1230
1231
|
|
|
1231
1232
|
const getConnectedInstance$1 = async()=>{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depay/web3-wallets-evm",
|
|
3
3
|
"moduleName": "Web3Wallets",
|
|
4
|
-
"version": "15.0.
|
|
4
|
+
"version": "15.0.2",
|
|
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",
|