diff --git a/dapps/react-dapp-auth/package-lock.json b/dapps/react-dapp-auth/package-lock.json index 6eb22d4..d1ce12c 100644 --- a/dapps/react-dapp-auth/package-lock.json +++ b/dapps/react-dapp-auth/package-lock.json @@ -11,7 +11,7 @@ "@chakra-ui/react": "^2.2.6", "@emotion/react": "^11.10.0", "@emotion/styled": "^11.10.0", - "@walletconnect/auth-client": "^0.1.6", + "@walletconnect/auth-client": "^0.1.7", "better-sqlite3": "^7.6.2", "events": "^3.3.0", "framer-motion": "^7.0.0", @@ -3020,9 +3020,9 @@ } }, "node_modules/@walletconnect/auth-client": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/@walletconnect/auth-client/-/auth-client-0.1.6.tgz", - "integrity": "sha512-5t4DE5N6ScJnQiPCyBcGkvw5Ev3uKtpBKm+wuP+CPCnhphhkHzxJcksqaTWRU8Flx2Afgc8saMlnQ5WQBMc7mg==", + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/@walletconnect/auth-client/-/auth-client-0.1.7.tgz", + "integrity": "sha512-8VlccoEYRypI07VjfR1lXnOz4wM86JZ0pG5MoK55sekaxXRNJ3Zzw5intN1VoneWVq0IKehoEiNm2GIX36dLTw==", "dependencies": { "@walletconnect/core": "2.0.0-rc.2", "@walletconnect/events": "1.0.0", @@ -8972,9 +8972,9 @@ } }, "@walletconnect/auth-client": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/@walletconnect/auth-client/-/auth-client-0.1.6.tgz", - "integrity": "sha512-5t4DE5N6ScJnQiPCyBcGkvw5Ev3uKtpBKm+wuP+CPCnhphhkHzxJcksqaTWRU8Flx2Afgc8saMlnQ5WQBMc7mg==", + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/@walletconnect/auth-client/-/auth-client-0.1.7.tgz", + "integrity": "sha512-8VlccoEYRypI07VjfR1lXnOz4wM86JZ0pG5MoK55sekaxXRNJ3Zzw5intN1VoneWVq0IKehoEiNm2GIX36dLTw==", "requires": { "@walletconnect/core": "2.0.0-rc.2", "@walletconnect/events": "1.0.0", diff --git a/dapps/react-dapp-auth/package.json b/dapps/react-dapp-auth/package.json index df48867..f95d7c8 100644 --- a/dapps/react-dapp-auth/package.json +++ b/dapps/react-dapp-auth/package.json @@ -12,7 +12,7 @@ "@chakra-ui/react": "^2.2.6", "@emotion/react": "^11.10.0", "@emotion/styled": "^11.10.0", - "@walletconnect/auth-client": "^0.1.6", + "@walletconnect/auth-client": "^0.1.7", "better-sqlite3": "^7.6.2", "events": "^3.3.0", "framer-motion": "^7.0.0", diff --git a/dapps/react-dapp-auth/pages/index.tsx b/dapps/react-dapp-auth/pages/index.tsx index 55c45d8..b6c8a6b 100644 --- a/dapps/react-dapp-auth/pages/index.tsx +++ b/dapps/react-dapp-auth/pages/index.tsx @@ -10,11 +10,14 @@ import { useToast, } from "@chakra-ui/react"; import AuthClient from "@walletconnect/auth-client"; +import { version } from "@walletconnect/auth-client/package.json"; import type { NextPage } from "next"; import Link from "next/link"; import Qrcode from "qrcode"; import { Fragment, useCallback, useEffect, useRef, useState } from "react"; +console.log(`AuthClient@${version}`); + const Home: NextPage = () => { const [client, setClient] = useState(); const [uri, setUri] = useState(""); @@ -48,8 +51,8 @@ const Home: NextPage = () => { icons: [], }, }) - .then((v) => { - setClient(v); + .then((authClient) => { + setClient(authClient); }) .catch(console.log); }, [setClient]); diff --git a/wallets/react-wallet-auth/package-lock.json b/wallets/react-wallet-auth/package-lock.json index a40a1f1..887d9c1 100644 --- a/wallets/react-wallet-auth/package-lock.json +++ b/wallets/react-wallet-auth/package-lock.json @@ -13,7 +13,7 @@ "@nextui-org/react": "1.0.8-beta.5", "@polkadot/keyring": "^10.1.2", "@solana/web3.js": "1.43.0", - "@walletconnect/auth-client": "^0.1.6", + "@walletconnect/auth-client": "^0.1.7", "@walletconnect/utils": "2.0.0-rc.2", "bs58": "5.0.0", "cosmos-wallet": "1.2.0", @@ -3441,9 +3441,9 @@ } }, "node_modules/@walletconnect/auth-client": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/@walletconnect/auth-client/-/auth-client-0.1.6.tgz", - "integrity": "sha512-5t4DE5N6ScJnQiPCyBcGkvw5Ev3uKtpBKm+wuP+CPCnhphhkHzxJcksqaTWRU8Flx2Afgc8saMlnQ5WQBMc7mg==", + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/@walletconnect/auth-client/-/auth-client-0.1.7.tgz", + "integrity": "sha512-8VlccoEYRypI07VjfR1lXnOz4wM86JZ0pG5MoK55sekaxXRNJ3Zzw5intN1VoneWVq0IKehoEiNm2GIX36dLTw==", "dependencies": { "@walletconnect/core": "2.0.0-rc.2", "@walletconnect/events": "1.0.0", @@ -11682,9 +11682,9 @@ } }, "@walletconnect/auth-client": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/@walletconnect/auth-client/-/auth-client-0.1.6.tgz", - "integrity": "sha512-5t4DE5N6ScJnQiPCyBcGkvw5Ev3uKtpBKm+wuP+CPCnhphhkHzxJcksqaTWRU8Flx2Afgc8saMlnQ5WQBMc7mg==", + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/@walletconnect/auth-client/-/auth-client-0.1.7.tgz", + "integrity": "sha512-8VlccoEYRypI07VjfR1lXnOz4wM86JZ0pG5MoK55sekaxXRNJ3Zzw5intN1VoneWVq0IKehoEiNm2GIX36dLTw==", "requires": { "@walletconnect/core": "2.0.0-rc.2", "@walletconnect/events": "1.0.0", diff --git a/wallets/react-wallet-auth/package.json b/wallets/react-wallet-auth/package.json index 29bc289..7509218 100644 --- a/wallets/react-wallet-auth/package.json +++ b/wallets/react-wallet-auth/package.json @@ -15,7 +15,7 @@ "@nextui-org/react": "1.0.8-beta.5", "@polkadot/keyring": "^10.1.2", "@solana/web3.js": "1.43.0", - "@walletconnect/auth-client": "^0.1.6", + "@walletconnect/auth-client": "^0.1.7", "@walletconnect/utils": "2.0.0-rc.2", "bs58": "5.0.0", "cosmos-wallet": "1.2.0", diff --git a/wallets/react-wallet-auth/src/utils/WalletConnectUtil.ts b/wallets/react-wallet-auth/src/utils/WalletConnectUtil.ts index 3720dd3..eebbbc3 100644 --- a/wallets/react-wallet-auth/src/utils/WalletConnectUtil.ts +++ b/wallets/react-wallet-auth/src/utils/WalletConnectUtil.ts @@ -1,4 +1,7 @@ import AuthClient from '@walletconnect/auth-client' +import pkg from '@walletconnect/auth-client/package.json' + +console.log(`AuthClient@${pkg.version}`) export let authClient: AuthClient