Skip to content

Commit

Permalink
refactor: Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wenty22 committed Nov 9, 2023
1 parent 9daf474 commit 063685c
Show file tree
Hide file tree
Showing 7 changed files with 467 additions and 1,517 deletions.
4 changes: 2 additions & 2 deletions examples/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"react-dom": "^18",
"next": "^13",
"@totejs/walletkit": "workspace:*",
"viem": "^1.16.6",
"wagmi": "^1.4.4"
"viem": "^1.0.0",
"wagmi": "^1.0.0"
},
"devDependencies": {
"typescript": "^5",
Expand Down
4 changes: 2 additions & 2 deletions examples/test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"react-dom": "^18",
"next": "^13",
"@totejs/walletkit": "workspace:*",
"viem": "^1.16.6",
"wagmi": "^1.4.4"
"viem": "^1.0.0",
"wagmi": "^1.0.0"
},
"devDependencies": {
"typescript": "^5",
Expand Down
4 changes: 2 additions & 2 deletions examples/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"@totejs/walletkit": "workspace:*",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"viem": "^1.16.6",
"wagmi": "^1.4.4"
"viem": "^1.0.0",
"wagmi": "^1.0.0"
},
"devDependencies": {
"@types/react": "^18.2.15",
Expand Down
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,19 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "pnpm --parallel --filter example-test --filter @totejs/walletkit dev"
"dev": "pnpm --recursive --parallel --filter example-test --filter @totejs/walletkit dev"
},
"repository": {
"type": "git",
"url": "git+https://github.com/node-real/walletkit.git"
},
"license": "MIT",
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.57.1",
"@typescript-eslint/parser": "^5.57.1",
"eslint": "^8.38.0",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"eslint": "^8.53.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.3.4",
"prettier": "^3.0.3",
"rollup": "^4.2.0"
"eslint-plugin-react-refresh": "^0.3.5",
"prettier": "^3.0.3"
}
}
21 changes: 6 additions & 15 deletions packages/walletkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,21 @@
"wagmi": "^1.0.0"
},
"devDependencies": {
"@emotion/babel-preset-css-prop": "^11.11.0",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@types/qrcode": "^1.5.4",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@types/qrcode": "^1.5.5",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"@vanilla-extract/css": "^1.13.0",
"@vanilla-extract/rollup-plugin": "^1.3.0",
"@vanilla-extract/vite-plugin": "^3.9.0",
"@vitejs/plugin-react": "^4.1.1",
"autoprefixer": "^10.4.16",
"postcss": "^8.4.31",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rollup-plugin-embed-css": "^1.0.26",
"rollup-plugin-import-css": "^3.3.5",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-typescript2": "^0.36.0",
"typescript": "^5.0.2",
"viem": "^1.16.6",
"typescript": "^5.2.2",
"vite": "^4.5.0",
"vite-plugin-dts": "^3.6.3",
"wagmi": "^1.4.4"
"viem": "^1.0.0",
"wagmi": "^1.0.0"
},
"dependencies": {
"qrcode": "^1.5.3"
Expand Down
4 changes: 2 additions & 2 deletions packages/walletkit/src/hooks/useConnectors.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useConnect } from 'wagmi';
import { useConnect, Connector } from 'wagmi';

export function useConnectors() {
const { connectors } = useConnect();
Expand All @@ -7,5 +7,5 @@ export function useConnectors() {

export function useConnector(id: string) {
const connectors = useConnectors();
return connectors.find((c) => c.id === id);
return connectors.find((c) => c.id === id) as Connector | undefined;
}
Loading

0 comments on commit 063685c

Please sign in to comment.