@depay/web3-wallets-evm 14.8.0 → 14.9.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.
@@ -60204,8 +60204,9 @@ class WalletConnectV1 {
60204
60204
 
60205
60205
  async connect(options) {
60206
60206
  let connect = (options && options.connect) ? options.connect : ({uri})=>{};
60207
- if(_optionalChain$4([options, 'optionalAccess', _ => _.name])) { this.name = options.name; }
60208
- if(_optionalChain$4([options, 'optionalAccess', _2 => _2.logo])) { this.logo = options.logo; }
60207
+ localStorage[KEY$1] = {};
60208
+ if(_optionalChain$4([options, 'optionalAccess', _ => _.name])) { localStorage[KEY$1].name = this.name = options.name; }
60209
+ if(_optionalChain$4([options, 'optionalAccess', _2 => _2.logo])) { localStorage[KEY$1].logo = this.logo = options.logo; }
60209
60210
  try {
60210
60211
 
60211
60212
  this.connector = WalletConnectV1.instance;
@@ -60215,6 +60216,10 @@ class WalletConnectV1 {
60215
60216
  }
60216
60217
 
60217
60218
  if(this.connector.connected) {
60219
+ if(localStorage[KEY$1]) {
60220
+ if(localStorage[KEY$1].name) { this.name = localStorage[KEY$1].name; }
60221
+ if(localStorage[KEY$1].logo) { this.logo = localStorage[KEY$1].logo; }
60222
+ }
60218
60223
 
60219
60224
  let account = await this.account();
60220
60225
  this.connectedChainId = await this.connector.sendCustomRequest({ method: 'eth_chainId' });
package/dist/esm/index.js CHANGED
@@ -1298,8 +1298,9 @@ class WalletConnectV1 {
1298
1298
 
1299
1299
  async connect(options) {
1300
1300
  let connect = (options && options.connect) ? options.connect : ({uri})=>{};
1301
- if(_optionalChain$2([options, 'optionalAccess', _ => _.name])) { this.name = options.name; }
1302
- if(_optionalChain$2([options, 'optionalAccess', _2 => _2.logo])) { this.logo = options.logo; }
1301
+ localStorage[KEY$1] = {};
1302
+ if(_optionalChain$2([options, 'optionalAccess', _ => _.name])) { localStorage[KEY$1].name = this.name = options.name; }
1303
+ if(_optionalChain$2([options, 'optionalAccess', _2 => _2.logo])) { localStorage[KEY$1].logo = this.logo = options.logo; }
1303
1304
  try {
1304
1305
 
1305
1306
  this.connector = WalletConnectV1.instance;
@@ -1309,6 +1310,10 @@ class WalletConnectV1 {
1309
1310
  }
1310
1311
 
1311
1312
  if(this.connector.connected) {
1313
+ if(localStorage[KEY$1]) {
1314
+ if(localStorage[KEY$1].name) { this.name = localStorage[KEY$1].name; }
1315
+ if(localStorage[KEY$1].logo) { this.logo = localStorage[KEY$1].logo; }
1316
+ }
1312
1317
 
1313
1318
  let account = await this.account();
1314
1319
  this.connectedChainId = await this.connector.sendCustomRequest({ method: 'eth_chainId' });
@@ -60202,8 +60202,9 @@
60202
60202
 
60203
60203
  async connect(options) {
60204
60204
  let connect = (options && options.connect) ? options.connect : ({uri})=>{};
60205
- if(_optionalChain$4([options, 'optionalAccess', _ => _.name])) { this.name = options.name; }
60206
- if(_optionalChain$4([options, 'optionalAccess', _2 => _2.logo])) { this.logo = options.logo; }
60205
+ localStorage[KEY$1] = {};
60206
+ if(_optionalChain$4([options, 'optionalAccess', _ => _.name])) { localStorage[KEY$1].name = this.name = options.name; }
60207
+ if(_optionalChain$4([options, 'optionalAccess', _2 => _2.logo])) { localStorage[KEY$1].logo = this.logo = options.logo; }
60207
60208
  try {
60208
60209
 
60209
60210
  this.connector = WalletConnectV1.instance;
@@ -60213,6 +60214,10 @@
60213
60214
  }
60214
60215
 
60215
60216
  if(this.connector.connected) {
60217
+ if(localStorage[KEY$1]) {
60218
+ if(localStorage[KEY$1].name) { this.name = localStorage[KEY$1].name; }
60219
+ if(localStorage[KEY$1].logo) { this.logo = localStorage[KEY$1].logo; }
60220
+ }
60216
60221
 
60217
60222
  let account = await this.account();
60218
60223
  this.connectedChainId = await this.connector.sendCustomRequest({ method: 'eth_chainId' });
package/dist/umd/index.js CHANGED
@@ -1295,8 +1295,9 @@
1295
1295
 
1296
1296
  async connect(options) {
1297
1297
  let connect = (options && options.connect) ? options.connect : ({uri})=>{};
1298
- if(_optionalChain$2([options, 'optionalAccess', _ => _.name])) { this.name = options.name; }
1299
- if(_optionalChain$2([options, 'optionalAccess', _2 => _2.logo])) { this.logo = options.logo; }
1298
+ localStorage[KEY$1] = {};
1299
+ if(_optionalChain$2([options, 'optionalAccess', _ => _.name])) { localStorage[KEY$1].name = this.name = options.name; }
1300
+ if(_optionalChain$2([options, 'optionalAccess', _2 => _2.logo])) { localStorage[KEY$1].logo = this.logo = options.logo; }
1300
1301
  try {
1301
1302
 
1302
1303
  this.connector = WalletConnectV1.instance;
@@ -1306,6 +1307,10 @@
1306
1307
  }
1307
1308
 
1308
1309
  if(this.connector.connected) {
1310
+ if(localStorage[KEY$1]) {
1311
+ if(localStorage[KEY$1].name) { this.name = localStorage[KEY$1].name; }
1312
+ if(localStorage[KEY$1].logo) { this.logo = localStorage[KEY$1].logo; }
1313
+ }
1309
1314
 
1310
1315
  let account = await this.account();
1311
1316
  this.connectedChainId = await this.connector.sendCustomRequest({ method: 'eth_chainId' });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@depay/web3-wallets-evm",
3
3
  "moduleName": "Web3Wallets",
4
- "version": "14.8.0",
4
+ "version": "14.9.0",
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",