@depay/web3-wallets-evm 15.2.0 → 15.2.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.
@@ -59675,7 +59675,7 @@ class WindowEthereum {
59675
59675
  static __initStatic2() {this.isAvailable = async()=>{
59676
59676
  return (
59677
59677
  _optionalChain$c([window, 'optionalAccess', _15 => _15.ethereum]) &&
59678
- Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)/)).length != 1 && // MetaMask
59678
+ Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)/)).length != 1 && // MetaMask
59679
59679
  !_optionalChain$c([window, 'optionalAccess', _16 => _16.coin98]) && // Coin98
59680
59680
  !(_optionalChain$c([window, 'optionalAccess', _17 => _17.ethereum, 'optionalAccess', _18 => _18.isTrust]) || _optionalChain$c([window, 'optionalAccess', _19 => _19.ethereum, 'optionalAccess', _20 => _20.isTrustWallet])) && // Trust Wallet
59681
59681
  !_optionalChain$c([window, 'optionalAccess', _21 => _21.ethereum, 'optionalAccess', _22 => _22.isDeficonnectProvider]) && // crypto.com
@@ -59879,7 +59879,10 @@ class MetaMask extends WindowEthereum {
59879
59879
  };}
59880
59880
 
59881
59881
  static __initStatic2() {this.isAvailable = async()=>{
59882
- return _optionalChain$5([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMetaMask]) && Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)/)).length == 1
59882
+ return(
59883
+ _optionalChain$5([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMetaMask]) &&
59884
+ Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)/)).length == 1
59885
+ )
59883
59886
  };}
59884
59887
  } MetaMask.__initStatic(); MetaMask.__initStatic2();
59885
59888
 
@@ -59998,9 +60001,6 @@ const getSmartContractWallet = async(blockchain, address)=> {
59998
60001
 
59999
60002
  const sendTransaction$2 = async ({ transaction, wallet })=> {
60000
60003
  transaction = new Transaction(transaction);
60001
- if((await wallet.connectedTo(transaction.blockchain)) == false) {
60002
- await wallet.switchTo(transaction.blockchain);
60003
- }
60004
60004
  if((await wallet.connectedTo(transaction.blockchain)) == false) {
60005
60005
  throw({ code: 'WRONG_NETWORK' })
60006
60006
  }
@@ -60801,7 +60801,8 @@ const supported = [
60801
60801
  wallets.CryptoCom,
60802
60802
  wallets.HyperPay,
60803
60803
  wallets.WalletConnectV1,
60804
- wallets.WalletLink
60804
+ wallets.WalletLink,
60805
+ wallets.WindowEthereum,
60805
60806
  ];
60806
60807
 
60807
60808
  export { getWallets, supported, wallets };
package/dist/esm/index.js CHANGED
@@ -578,7 +578,7 @@ class WindowEthereum {
578
578
  static __initStatic2() {this.isAvailable = async()=>{
579
579
  return (
580
580
  _optionalChain$d([window, 'optionalAccess', _15 => _15.ethereum]) &&
581
- Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)/)).length != 1 && // MetaMask
581
+ Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)/)).length != 1 && // MetaMask
582
582
  !_optionalChain$d([window, 'optionalAccess', _16 => _16.coin98]) && // Coin98
583
583
  !(_optionalChain$d([window, 'optionalAccess', _17 => _17.ethereum, 'optionalAccess', _18 => _18.isTrust]) || _optionalChain$d([window, 'optionalAccess', _19 => _19.ethereum, 'optionalAccess', _20 => _20.isTrustWallet])) && // Trust Wallet
584
584
  !_optionalChain$d([window, 'optionalAccess', _21 => _21.ethereum, 'optionalAccess', _22 => _22.isDeficonnectProvider]) && // crypto.com
@@ -782,7 +782,10 @@ class MetaMask extends WindowEthereum {
782
782
  };}
783
783
 
784
784
  static __initStatic2() {this.isAvailable = async()=>{
785
- return _optionalChain$6([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMetaMask]) && Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)/)).length == 1
785
+ return(
786
+ _optionalChain$6([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMetaMask]) &&
787
+ Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)/)).length == 1
788
+ )
786
789
  };}
787
790
  } MetaMask.__initStatic(); MetaMask.__initStatic2();
788
791
 
@@ -1092,9 +1095,6 @@ const getSmartContractWallet = async(blockchain, address)=> {
1092
1095
 
1093
1096
  const sendTransaction$1 = async ({ transaction, wallet })=> {
1094
1097
  transaction = new Transaction(transaction);
1095
- if((await wallet.connectedTo(transaction.blockchain)) == false) {
1096
- await wallet.switchTo(transaction.blockchain);
1097
- }
1098
1098
  if((await wallet.connectedTo(transaction.blockchain)) == false) {
1099
1099
  throw({ code: 'WRONG_NETWORK' })
1100
1100
  }
@@ -1718,7 +1718,8 @@ const supported = [
1718
1718
  wallets.CryptoCom,
1719
1719
  wallets.HyperPay,
1720
1720
  wallets.WalletConnectV1,
1721
- wallets.WalletLink
1721
+ wallets.WalletLink,
1722
+ wallets.WindowEthereum,
1722
1723
  ];
1723
1724
 
1724
1725
  export { getWallets, supported, wallets };
@@ -59674,7 +59674,7 @@
59674
59674
  static __initStatic2() {this.isAvailable = async()=>{
59675
59675
  return (
59676
59676
  _optionalChain$c([window, 'optionalAccess', _15 => _15.ethereum]) &&
59677
- Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)/)).length != 1 && // MetaMask
59677
+ Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)/)).length != 1 && // MetaMask
59678
59678
  !_optionalChain$c([window, 'optionalAccess', _16 => _16.coin98]) && // Coin98
59679
59679
  !(_optionalChain$c([window, 'optionalAccess', _17 => _17.ethereum, 'optionalAccess', _18 => _18.isTrust]) || _optionalChain$c([window, 'optionalAccess', _19 => _19.ethereum, 'optionalAccess', _20 => _20.isTrustWallet])) && // Trust Wallet
59680
59680
  !_optionalChain$c([window, 'optionalAccess', _21 => _21.ethereum, 'optionalAccess', _22 => _22.isDeficonnectProvider]) && // crypto.com
@@ -59878,7 +59878,10 @@
59878
59878
  };}
59879
59879
 
59880
59880
  static __initStatic2() {this.isAvailable = async()=>{
59881
- return _optionalChain$5([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMetaMask]) && Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)/)).length == 1
59881
+ return(
59882
+ _optionalChain$5([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMetaMask]) &&
59883
+ Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)/)).length == 1
59884
+ )
59882
59885
  };}
59883
59886
  } MetaMask.__initStatic(); MetaMask.__initStatic2();
59884
59887
 
@@ -59997,9 +60000,6 @@
59997
60000
 
59998
60001
  const sendTransaction$2 = async ({ transaction, wallet })=> {
59999
60002
  transaction = new Transaction(transaction);
60000
- if((await wallet.connectedTo(transaction.blockchain)) == false) {
60001
- await wallet.switchTo(transaction.blockchain);
60002
- }
60003
60003
  if((await wallet.connectedTo(transaction.blockchain)) == false) {
60004
60004
  throw({ code: 'WRONG_NETWORK' })
60005
60005
  }
@@ -60800,7 +60800,8 @@
60800
60800
  wallets.CryptoCom,
60801
60801
  wallets.HyperPay,
60802
60802
  wallets.WalletConnectV1,
60803
- wallets.WalletLink
60803
+ wallets.WalletLink,
60804
+ wallets.WindowEthereum,
60804
60805
  ];
60805
60806
 
60806
60807
  exports.getWallets = getWallets;
package/dist/umd/index.js CHANGED
@@ -576,7 +576,7 @@
576
576
  static __initStatic2() {this.isAvailable = async()=>{
577
577
  return (
578
578
  _optionalChain$d([window, 'optionalAccess', _15 => _15.ethereum]) &&
579
- Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)/)).length != 1 && // MetaMask
579
+ Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)/)).length != 1 && // MetaMask
580
580
  !_optionalChain$d([window, 'optionalAccess', _16 => _16.coin98]) && // Coin98
581
581
  !(_optionalChain$d([window, 'optionalAccess', _17 => _17.ethereum, 'optionalAccess', _18 => _18.isTrust]) || _optionalChain$d([window, 'optionalAccess', _19 => _19.ethereum, 'optionalAccess', _20 => _20.isTrustWallet])) && // Trust Wallet
582
582
  !_optionalChain$d([window, 'optionalAccess', _21 => _21.ethereum, 'optionalAccess', _22 => _22.isDeficonnectProvider]) && // crypto.com
@@ -780,7 +780,10 @@
780
780
  };}
781
781
 
782
782
  static __initStatic2() {this.isAvailable = async()=>{
783
- return _optionalChain$6([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMetaMask]) && Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)/)).length == 1
783
+ return(
784
+ _optionalChain$6([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMetaMask]) &&
785
+ Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)/)).length == 1
786
+ )
784
787
  };}
785
788
  } MetaMask.__initStatic(); MetaMask.__initStatic2();
786
789
 
@@ -1090,9 +1093,6 @@
1090
1093
 
1091
1094
  const sendTransaction$1 = async ({ transaction, wallet })=> {
1092
1095
  transaction = new Transaction(transaction);
1093
- if((await wallet.connectedTo(transaction.blockchain)) == false) {
1094
- await wallet.switchTo(transaction.blockchain);
1095
- }
1096
1096
  if((await wallet.connectedTo(transaction.blockchain)) == false) {
1097
1097
  throw({ code: 'WRONG_NETWORK' })
1098
1098
  }
@@ -1716,7 +1716,8 @@
1716
1716
  wallets.CryptoCom,
1717
1717
  wallets.HyperPay,
1718
1718
  wallets.WalletConnectV1,
1719
- wallets.WalletLink
1719
+ wallets.WalletLink,
1720
+ wallets.WindowEthereum,
1720
1721
  ];
1721
1722
 
1722
1723
  exports.getWallets = getWallets;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@depay/web3-wallets-evm",
3
3
  "moduleName": "Web3Wallets",
4
- "version": "15.2.0",
4
+ "version": "15.2.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",