chore(deps): update auth-client to 0.1.7

This commit is contained in:
Ben Kremer 2022-09-07 11:26:32 +02:00
parent 7e52f20c5f
commit 18847f7f15
6 changed files with 24 additions and 18 deletions

View File

@ -11,7 +11,7 @@
"@chakra-ui/react": "^2.2.6", "@chakra-ui/react": "^2.2.6",
"@emotion/react": "^11.10.0", "@emotion/react": "^11.10.0",
"@emotion/styled": "^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", "better-sqlite3": "^7.6.2",
"events": "^3.3.0", "events": "^3.3.0",
"framer-motion": "^7.0.0", "framer-motion": "^7.0.0",
@ -3020,9 +3020,9 @@
} }
}, },
"node_modules/@walletconnect/auth-client": { "node_modules/@walletconnect/auth-client": {
"version": "0.1.6", "version": "0.1.7",
"resolved": "https://registry.npmjs.org/@walletconnect/auth-client/-/auth-client-0.1.6.tgz", "resolved": "https://registry.npmjs.org/@walletconnect/auth-client/-/auth-client-0.1.7.tgz",
"integrity": "sha512-5t4DE5N6ScJnQiPCyBcGkvw5Ev3uKtpBKm+wuP+CPCnhphhkHzxJcksqaTWRU8Flx2Afgc8saMlnQ5WQBMc7mg==", "integrity": "sha512-8VlccoEYRypI07VjfR1lXnOz4wM86JZ0pG5MoK55sekaxXRNJ3Zzw5intN1VoneWVq0IKehoEiNm2GIX36dLTw==",
"dependencies": { "dependencies": {
"@walletconnect/core": "2.0.0-rc.2", "@walletconnect/core": "2.0.0-rc.2",
"@walletconnect/events": "1.0.0", "@walletconnect/events": "1.0.0",
@ -8972,9 +8972,9 @@
} }
}, },
"@walletconnect/auth-client": { "@walletconnect/auth-client": {
"version": "0.1.6", "version": "0.1.7",
"resolved": "https://registry.npmjs.org/@walletconnect/auth-client/-/auth-client-0.1.6.tgz", "resolved": "https://registry.npmjs.org/@walletconnect/auth-client/-/auth-client-0.1.7.tgz",
"integrity": "sha512-5t4DE5N6ScJnQiPCyBcGkvw5Ev3uKtpBKm+wuP+CPCnhphhkHzxJcksqaTWRU8Flx2Afgc8saMlnQ5WQBMc7mg==", "integrity": "sha512-8VlccoEYRypI07VjfR1lXnOz4wM86JZ0pG5MoK55sekaxXRNJ3Zzw5intN1VoneWVq0IKehoEiNm2GIX36dLTw==",
"requires": { "requires": {
"@walletconnect/core": "2.0.0-rc.2", "@walletconnect/core": "2.0.0-rc.2",
"@walletconnect/events": "1.0.0", "@walletconnect/events": "1.0.0",

View File

@ -12,7 +12,7 @@
"@chakra-ui/react": "^2.2.6", "@chakra-ui/react": "^2.2.6",
"@emotion/react": "^11.10.0", "@emotion/react": "^11.10.0",
"@emotion/styled": "^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", "better-sqlite3": "^7.6.2",
"events": "^3.3.0", "events": "^3.3.0",
"framer-motion": "^7.0.0", "framer-motion": "^7.0.0",

View File

@ -10,11 +10,14 @@ import {
useToast, useToast,
} from "@chakra-ui/react"; } from "@chakra-ui/react";
import AuthClient from "@walletconnect/auth-client"; import AuthClient from "@walletconnect/auth-client";
import { version } from "@walletconnect/auth-client/package.json";
import type { NextPage } from "next"; import type { NextPage } from "next";
import Link from "next/link"; import Link from "next/link";
import Qrcode from "qrcode"; import Qrcode from "qrcode";
import { Fragment, useCallback, useEffect, useRef, useState } from "react"; import { Fragment, useCallback, useEffect, useRef, useState } from "react";
console.log(`AuthClient@${version}`);
const Home: NextPage = () => { const Home: NextPage = () => {
const [client, setClient] = useState<AuthClient | null>(); const [client, setClient] = useState<AuthClient | null>();
const [uri, setUri] = useState<string>(""); const [uri, setUri] = useState<string>("");
@ -48,8 +51,8 @@ const Home: NextPage = () => {
icons: [], icons: [],
}, },
}) })
.then((v) => { .then((authClient) => {
setClient(v); setClient(authClient);
}) })
.catch(console.log); .catch(console.log);
}, [setClient]); }, [setClient]);

View File

@ -13,7 +13,7 @@
"@nextui-org/react": "1.0.8-beta.5", "@nextui-org/react": "1.0.8-beta.5",
"@polkadot/keyring": "^10.1.2", "@polkadot/keyring": "^10.1.2",
"@solana/web3.js": "1.43.0", "@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", "@walletconnect/utils": "2.0.0-rc.2",
"bs58": "5.0.0", "bs58": "5.0.0",
"cosmos-wallet": "1.2.0", "cosmos-wallet": "1.2.0",
@ -3441,9 +3441,9 @@
} }
}, },
"node_modules/@walletconnect/auth-client": { "node_modules/@walletconnect/auth-client": {
"version": "0.1.6", "version": "0.1.7",
"resolved": "https://registry.npmjs.org/@walletconnect/auth-client/-/auth-client-0.1.6.tgz", "resolved": "https://registry.npmjs.org/@walletconnect/auth-client/-/auth-client-0.1.7.tgz",
"integrity": "sha512-5t4DE5N6ScJnQiPCyBcGkvw5Ev3uKtpBKm+wuP+CPCnhphhkHzxJcksqaTWRU8Flx2Afgc8saMlnQ5WQBMc7mg==", "integrity": "sha512-8VlccoEYRypI07VjfR1lXnOz4wM86JZ0pG5MoK55sekaxXRNJ3Zzw5intN1VoneWVq0IKehoEiNm2GIX36dLTw==",
"dependencies": { "dependencies": {
"@walletconnect/core": "2.0.0-rc.2", "@walletconnect/core": "2.0.0-rc.2",
"@walletconnect/events": "1.0.0", "@walletconnect/events": "1.0.0",
@ -11682,9 +11682,9 @@
} }
}, },
"@walletconnect/auth-client": { "@walletconnect/auth-client": {
"version": "0.1.6", "version": "0.1.7",
"resolved": "https://registry.npmjs.org/@walletconnect/auth-client/-/auth-client-0.1.6.tgz", "resolved": "https://registry.npmjs.org/@walletconnect/auth-client/-/auth-client-0.1.7.tgz",
"integrity": "sha512-5t4DE5N6ScJnQiPCyBcGkvw5Ev3uKtpBKm+wuP+CPCnhphhkHzxJcksqaTWRU8Flx2Afgc8saMlnQ5WQBMc7mg==", "integrity": "sha512-8VlccoEYRypI07VjfR1lXnOz4wM86JZ0pG5MoK55sekaxXRNJ3Zzw5intN1VoneWVq0IKehoEiNm2GIX36dLTw==",
"requires": { "requires": {
"@walletconnect/core": "2.0.0-rc.2", "@walletconnect/core": "2.0.0-rc.2",
"@walletconnect/events": "1.0.0", "@walletconnect/events": "1.0.0",

View File

@ -15,7 +15,7 @@
"@nextui-org/react": "1.0.8-beta.5", "@nextui-org/react": "1.0.8-beta.5",
"@polkadot/keyring": "^10.1.2", "@polkadot/keyring": "^10.1.2",
"@solana/web3.js": "1.43.0", "@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", "@walletconnect/utils": "2.0.0-rc.2",
"bs58": "5.0.0", "bs58": "5.0.0",
"cosmos-wallet": "1.2.0", "cosmos-wallet": "1.2.0",

View File

@ -1,4 +1,7 @@
import AuthClient from '@walletconnect/auth-client' import AuthClient from '@walletconnect/auth-client'
import pkg from '@walletconnect/auth-client/package.json'
console.log(`AuthClient@${pkg.version}`)
export let authClient: AuthClient export let authClient: AuthClient