@depay/web3-wallets-evm 16.0.1 → 16.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 +11 -1
- package/dist/esm/index.js +11 -1
- package/dist/esm/index.solana.js +11 -1
- package/dist/umd/index.evm.js +11 -1
- package/dist/umd/index.js +11 -1
- package/dist/umd/index.solana.js +11 -1
- package/package.json +1 -1
package/dist/esm/index.evm.js
CHANGED
|
@@ -44578,7 +44578,17 @@ const CONFIGURATIONS = {
|
|
|
44578
44578
|
"eth_signTypedData",
|
|
44579
44579
|
]
|
|
44580
44580
|
},
|
|
44581
|
+
};
|
|
44582
|
+
|
|
44583
|
+
const isMobile = ()=> {
|
|
44584
|
+
if (typeof window !== 'undefined') {
|
|
44585
|
+
return Boolean(
|
|
44586
|
+
window.matchMedia('(pointer:coarse)').matches ||
|
|
44587
|
+
/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)
|
|
44588
|
+
)
|
|
44589
|
+
}
|
|
44581
44590
|
|
|
44591
|
+
return false
|
|
44582
44592
|
};
|
|
44583
44593
|
|
|
44584
44594
|
const DEFAULT_CONFIGURATION = {
|
|
@@ -44729,7 +44739,7 @@ class WalletConnectV2 {
|
|
|
44729
44739
|
}
|
|
44730
44740
|
|
|
44731
44741
|
async setSessionBlockchains() {
|
|
44732
|
-
if(_optionalChain$1([CONFIGURATIONS, 'access', _27 => _27[this.walletName], 'optionalAccess', _28 => _28.methods, 'optionalAccess', _29 => _29.includes, 'call', _30 => _30('eth_chainId')])) {
|
|
44742
|
+
if(_optionalChain$1([CONFIGURATIONS, 'access', _27 => _27[this.walletName], 'optionalAccess', _28 => _28.methods, 'optionalAccess', _29 => _29.includes, 'call', _30 => _30('eth_chainId')]) && !isMobile()) {
|
|
44733
44743
|
this.blockchains = await this.getAllAvailableBlockchains();
|
|
44734
44744
|
} else if(this.session.namespaces.eip155.chains) {
|
|
44735
44745
|
this.blockchains = this.session.namespaces.eip155.chains.map((chainIdentifier)=>_optionalChain$1([Blockchains, 'access', _31 => _31.findByNetworkId, 'call', _32 => _32(chainIdentifier.split(':')[1]), 'optionalAccess', _33 => _33.name])).filter(Boolean);
|
package/dist/esm/index.js
CHANGED
|
@@ -1615,7 +1615,17 @@ const CONFIGURATIONS = {
|
|
|
1615
1615
|
"eth_signTypedData",
|
|
1616
1616
|
]
|
|
1617
1617
|
},
|
|
1618
|
+
};
|
|
1619
|
+
|
|
1620
|
+
const isMobile = ()=> {
|
|
1621
|
+
if (typeof window !== 'undefined') {
|
|
1622
|
+
return Boolean(
|
|
1623
|
+
window.matchMedia('(pointer:coarse)').matches ||
|
|
1624
|
+
/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)
|
|
1625
|
+
)
|
|
1626
|
+
}
|
|
1618
1627
|
|
|
1628
|
+
return false
|
|
1619
1629
|
};
|
|
1620
1630
|
|
|
1621
1631
|
const DEFAULT_CONFIGURATION = {
|
|
@@ -1766,7 +1776,7 @@ class WalletConnectV2 {
|
|
|
1766
1776
|
}
|
|
1767
1777
|
|
|
1768
1778
|
async setSessionBlockchains() {
|
|
1769
|
-
if(_optionalChain$1([CONFIGURATIONS, 'access', _27 => _27[this.walletName], 'optionalAccess', _28 => _28.methods, 'optionalAccess', _29 => _29.includes, 'call', _30 => _30('eth_chainId')])) {
|
|
1779
|
+
if(_optionalChain$1([CONFIGURATIONS, 'access', _27 => _27[this.walletName], 'optionalAccess', _28 => _28.methods, 'optionalAccess', _29 => _29.includes, 'call', _30 => _30('eth_chainId')]) && !isMobile()) {
|
|
1770
1780
|
this.blockchains = await this.getAllAvailableBlockchains();
|
|
1771
1781
|
} else if(this.session.namespaces.eip155.chains) {
|
|
1772
1782
|
this.blockchains = this.session.namespaces.eip155.chains.map((chainIdentifier)=>_optionalChain$1([Blockchains, 'access', _31 => _31.findByNetworkId, 'call', _32 => _32(chainIdentifier.split(':')[1]), 'optionalAccess', _33 => _33.name])).filter(Boolean);
|
package/dist/esm/index.solana.js
CHANGED
|
@@ -2451,7 +2451,17 @@ const CONFIGURATIONS = {
|
|
|
2451
2451
|
"eth_signTypedData",
|
|
2452
2452
|
]
|
|
2453
2453
|
},
|
|
2454
|
+
};
|
|
2455
|
+
|
|
2456
|
+
const isMobile = ()=> {
|
|
2457
|
+
if (typeof window !== 'undefined') {
|
|
2458
|
+
return Boolean(
|
|
2459
|
+
window.matchMedia('(pointer:coarse)').matches ||
|
|
2460
|
+
/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)
|
|
2461
|
+
)
|
|
2462
|
+
}
|
|
2454
2463
|
|
|
2464
|
+
return false
|
|
2455
2465
|
};
|
|
2456
2466
|
|
|
2457
2467
|
const DEFAULT_CONFIGURATION = {
|
|
@@ -2602,7 +2612,7 @@ class WalletConnectV2 {
|
|
|
2602
2612
|
}
|
|
2603
2613
|
|
|
2604
2614
|
async setSessionBlockchains() {
|
|
2605
|
-
if(_optionalChain$1([CONFIGURATIONS, 'access', _27 => _27[this.walletName], 'optionalAccess', _28 => _28.methods, 'optionalAccess', _29 => _29.includes, 'call', _30 => _30('eth_chainId')])) {
|
|
2615
|
+
if(_optionalChain$1([CONFIGURATIONS, 'access', _27 => _27[this.walletName], 'optionalAccess', _28 => _28.methods, 'optionalAccess', _29 => _29.includes, 'call', _30 => _30('eth_chainId')]) && !isMobile()) {
|
|
2606
2616
|
this.blockchains = await this.getAllAvailableBlockchains();
|
|
2607
2617
|
} else if(this.session.namespaces.eip155.chains) {
|
|
2608
2618
|
this.blockchains = this.session.namespaces.eip155.chains.map((chainIdentifier)=>_optionalChain$1([Blockchains, 'access', _31 => _31.findByNetworkId, 'call', _32 => _32(chainIdentifier.split(':')[1]), 'optionalAccess', _33 => _33.name])).filter(Boolean);
|
package/dist/umd/index.evm.js
CHANGED
|
@@ -44581,7 +44581,17 @@
|
|
|
44581
44581
|
"eth_signTypedData",
|
|
44582
44582
|
]
|
|
44583
44583
|
},
|
|
44584
|
+
};
|
|
44585
|
+
|
|
44586
|
+
const isMobile = ()=> {
|
|
44587
|
+
if (typeof window !== 'undefined') {
|
|
44588
|
+
return Boolean(
|
|
44589
|
+
window.matchMedia('(pointer:coarse)').matches ||
|
|
44590
|
+
/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)
|
|
44591
|
+
)
|
|
44592
|
+
}
|
|
44584
44593
|
|
|
44594
|
+
return false
|
|
44585
44595
|
};
|
|
44586
44596
|
|
|
44587
44597
|
const DEFAULT_CONFIGURATION = {
|
|
@@ -44732,7 +44742,7 @@
|
|
|
44732
44742
|
}
|
|
44733
44743
|
|
|
44734
44744
|
async setSessionBlockchains() {
|
|
44735
|
-
if(_optionalChain$1([CONFIGURATIONS, 'access', _27 => _27[this.walletName], 'optionalAccess', _28 => _28.methods, 'optionalAccess', _29 => _29.includes, 'call', _30 => _30('eth_chainId')])) {
|
|
44745
|
+
if(_optionalChain$1([CONFIGURATIONS, 'access', _27 => _27[this.walletName], 'optionalAccess', _28 => _28.methods, 'optionalAccess', _29 => _29.includes, 'call', _30 => _30('eth_chainId')]) && !isMobile()) {
|
|
44736
44746
|
this.blockchains = await this.getAllAvailableBlockchains();
|
|
44737
44747
|
} else if(this.session.namespaces.eip155.chains) {
|
|
44738
44748
|
this.blockchains = this.session.namespaces.eip155.chains.map((chainIdentifier)=>_optionalChain$1([Blockchains__default['default'], 'access', _31 => _31.findByNetworkId, 'call', _32 => _32(chainIdentifier.split(':')[1]), 'optionalAccess', _33 => _33.name])).filter(Boolean);
|
package/dist/umd/index.js
CHANGED
|
@@ -1617,7 +1617,17 @@
|
|
|
1617
1617
|
"eth_signTypedData",
|
|
1618
1618
|
]
|
|
1619
1619
|
},
|
|
1620
|
+
};
|
|
1621
|
+
|
|
1622
|
+
const isMobile = ()=> {
|
|
1623
|
+
if (typeof window !== 'undefined') {
|
|
1624
|
+
return Boolean(
|
|
1625
|
+
window.matchMedia('(pointer:coarse)').matches ||
|
|
1626
|
+
/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)
|
|
1627
|
+
)
|
|
1628
|
+
}
|
|
1620
1629
|
|
|
1630
|
+
return false
|
|
1621
1631
|
};
|
|
1622
1632
|
|
|
1623
1633
|
const DEFAULT_CONFIGURATION = {
|
|
@@ -1768,7 +1778,7 @@
|
|
|
1768
1778
|
}
|
|
1769
1779
|
|
|
1770
1780
|
async setSessionBlockchains() {
|
|
1771
|
-
if(_optionalChain$1([CONFIGURATIONS, 'access', _27 => _27[this.walletName], 'optionalAccess', _28 => _28.methods, 'optionalAccess', _29 => _29.includes, 'call', _30 => _30('eth_chainId')])) {
|
|
1781
|
+
if(_optionalChain$1([CONFIGURATIONS, 'access', _27 => _27[this.walletName], 'optionalAccess', _28 => _28.methods, 'optionalAccess', _29 => _29.includes, 'call', _30 => _30('eth_chainId')]) && !isMobile()) {
|
|
1772
1782
|
this.blockchains = await this.getAllAvailableBlockchains();
|
|
1773
1783
|
} else if(this.session.namespaces.eip155.chains) {
|
|
1774
1784
|
this.blockchains = this.session.namespaces.eip155.chains.map((chainIdentifier)=>_optionalChain$1([Blockchains__default['default'], 'access', _31 => _31.findByNetworkId, 'call', _32 => _32(chainIdentifier.split(':')[1]), 'optionalAccess', _33 => _33.name])).filter(Boolean);
|
package/dist/umd/index.solana.js
CHANGED
|
@@ -2453,7 +2453,17 @@
|
|
|
2453
2453
|
"eth_signTypedData",
|
|
2454
2454
|
]
|
|
2455
2455
|
},
|
|
2456
|
+
};
|
|
2457
|
+
|
|
2458
|
+
const isMobile = ()=> {
|
|
2459
|
+
if (typeof window !== 'undefined') {
|
|
2460
|
+
return Boolean(
|
|
2461
|
+
window.matchMedia('(pointer:coarse)').matches ||
|
|
2462
|
+
/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)
|
|
2463
|
+
)
|
|
2464
|
+
}
|
|
2456
2465
|
|
|
2466
|
+
return false
|
|
2457
2467
|
};
|
|
2458
2468
|
|
|
2459
2469
|
const DEFAULT_CONFIGURATION = {
|
|
@@ -2604,7 +2614,7 @@
|
|
|
2604
2614
|
}
|
|
2605
2615
|
|
|
2606
2616
|
async setSessionBlockchains() {
|
|
2607
|
-
if(_optionalChain$1([CONFIGURATIONS, 'access', _27 => _27[this.walletName], 'optionalAccess', _28 => _28.methods, 'optionalAccess', _29 => _29.includes, 'call', _30 => _30('eth_chainId')])) {
|
|
2617
|
+
if(_optionalChain$1([CONFIGURATIONS, 'access', _27 => _27[this.walletName], 'optionalAccess', _28 => _28.methods, 'optionalAccess', _29 => _29.includes, 'call', _30 => _30('eth_chainId')]) && !isMobile()) {
|
|
2608
2618
|
this.blockchains = await this.getAllAvailableBlockchains();
|
|
2609
2619
|
} else if(this.session.namespaces.eip155.chains) {
|
|
2610
2620
|
this.blockchains = this.session.namespaces.eip155.chains.map((chainIdentifier)=>_optionalChain$1([Blockchains__default['default'], 'access', _31 => _31.findByNetworkId, 'call', _32 => _32(chainIdentifier.split(':')[1]), 'optionalAccess', _33 => _33.name])).filter(Boolean);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depay/web3-wallets-evm",
|
|
3
3
|
"moduleName": "Web3Wallets",
|
|
4
|
-
"version": "16.0.
|
|
4
|
+
"version": "16.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",
|