@depay/web3-wallets-evm 18.1.13 → 18.1.15

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.
@@ -2147,7 +2147,12 @@ class WorldApp {
2147
2147
  if(localStorage.getItem(STORAGE_KEY)) {
2148
2148
  return localStorage.getItem(STORAGE_KEY)
2149
2149
  }
2150
- return (_optionalChain$1([window, 'access', _17 => _17.MiniKit, 'access', _18 => _18.user, 'optionalAccess', _19 => _19.walletAddress]) || _optionalChain$1([MiniKit, 'access', _20 => _20.user, 'optionalAccess', _21 => _21.walletAddress]))
2150
+ if(window.MiniKit && window.MiniKit.user) {
2151
+ return window.MiniKit.user.walletAddress
2152
+ }
2153
+ if(MiniKit && MiniKit.user) {
2154
+ return MiniKit.user.walletAddress
2155
+ }
2151
2156
  }
2152
2157
 
2153
2158
  connect() {
package/dist/esm/index.js CHANGED
@@ -2748,7 +2748,12 @@ class WorldApp {
2748
2748
  if(localStorage.getItem(STORAGE_KEY)) {
2749
2749
  return localStorage.getItem(STORAGE_KEY)
2750
2750
  }
2751
- return (_optionalChain$1([window, 'access', _17 => _17.MiniKit, 'access', _18 => _18.user, 'optionalAccess', _19 => _19.walletAddress]) || _optionalChain$1([MiniKit, 'access', _20 => _20.user, 'optionalAccess', _21 => _21.walletAddress]))
2751
+ if(window.MiniKit && window.MiniKit.user) {
2752
+ return window.MiniKit.user.walletAddress
2753
+ }
2754
+ if(MiniKit && MiniKit.user) {
2755
+ return MiniKit.user.walletAddress
2756
+ }
2752
2757
  }
2753
2758
 
2754
2759
  connect() {
@@ -2151,7 +2151,12 @@
2151
2151
  if(localStorage.getItem(STORAGE_KEY)) {
2152
2152
  return localStorage.getItem(STORAGE_KEY)
2153
2153
  }
2154
- return (_optionalChain$1([window, 'access', _17 => _17.MiniKit, 'access', _18 => _18.user, 'optionalAccess', _19 => _19.walletAddress]) || _optionalChain$1([MiniKit, 'access', _20 => _20.user, 'optionalAccess', _21 => _21.walletAddress]))
2154
+ if(window.MiniKit && window.MiniKit.user) {
2155
+ return window.MiniKit.user.walletAddress
2156
+ }
2157
+ if(MiniKit && MiniKit.user) {
2158
+ return MiniKit.user.walletAddress
2159
+ }
2155
2160
  }
2156
2161
 
2157
2162
  connect() {
package/dist/umd/index.js CHANGED
@@ -2751,7 +2751,12 @@
2751
2751
  if(localStorage.getItem(STORAGE_KEY)) {
2752
2752
  return localStorage.getItem(STORAGE_KEY)
2753
2753
  }
2754
- return (_optionalChain$1([window, 'access', _17 => _17.MiniKit, 'access', _18 => _18.user, 'optionalAccess', _19 => _19.walletAddress]) || _optionalChain$1([MiniKit, 'access', _20 => _20.user, 'optionalAccess', _21 => _21.walletAddress]))
2754
+ if(window.MiniKit && window.MiniKit.user) {
2755
+ return window.MiniKit.user.walletAddress
2756
+ }
2757
+ if(MiniKit && MiniKit.user) {
2758
+ return MiniKit.user.walletAddress
2759
+ }
2755
2760
  }
2756
2761
 
2757
2762
  connect() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@depay/web3-wallets-evm",
3
3
  "moduleName": "Web3Wallets",
4
- "version": "18.1.13",
4
+ "version": "18.1.15",
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",