Skip to content

Commit

Permalink
fix(ui-demo-app): fix the package json to include latest ak pkgs (#825)
Browse files Browse the repository at this point in the history
  • Loading branch information
moldy530 committed Jul 30, 2024
1 parent ea4ca4c commit 52e7629
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
14 changes: 8 additions & 6 deletions examples/ui-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@
"lint": "next lint"
},
"dependencies": {
"@account-kit/core": "^4.0.0-alpha.0",
"@account-kit/react": "^4.0.0-alpha.0",
"@account-kit/core": "^4.0.0-alpha.4",
"@account-kit/infra": "^4.0.0-alpha.4",
"@account-kit/react": "^4.0.0-alpha.4",
"@radix-ui/react-popover": "^1.0.7",
"@radix-ui/react-switch": "^1.0.3",
"@radix-ui/react-tooltip": "^1.1.2",
"@t3-oss/env-core": "^0.7.1",
"@t3-oss/env-nextjs": "^0.7.1",
"@tanstack/react-query": "^5.28.9",
"@uiw/react-color": "^2.3.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
Expand All @@ -23,12 +27,10 @@
"react": "^18",
"react-dom": "^18",
"react-syntax-highlighter": "^15.5.0",
"tailwind-merge": "^2.3.0"
"tailwind-merge": "^2.3.0",
"zod": "^3.0.0"
},
"devDependencies": {
"@t3-oss/env-core": "^0.7.1",
"@t3-oss/env-nextjs": "^0.7.1",
"@tanstack/react-query": "^5.28.9",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
Expand Down
2 changes: 2 additions & 0 deletions examples/ui-demo/src/app/api/rpc/[...routes]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export async function POST(
{ params }: { params: { routes: string[] } }
) {
const body = await req.json();
const headers: Record<string, string> = {Authorization: `Bearer ${env.API_KEY}`,};
req.headers.forEach((value, key) => {headers[key] = value;});

const res = await fetch(env.ALCHEMY_API_URL + `/${params.routes.join("/")}`, {
method: "POST",
Expand Down
2 changes: 2 additions & 0 deletions examples/ui-demo/src/app/api/rpc/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { env } from "../../../../env.mjs";

export async function POST(req: Request) {
const body = await req.json();
const headers: Record<string, string> = {};
req.headers.forEach((value, key) => {headers[key] = value;});

const res = await fetch(env.ALCHEMY_RPC_URL, {
method: "POST",
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -23934,6 +23934,11 @@ yocto-queue@^1.0.0:
resolved "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.0.0.tgz"
integrity sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==

zod@^3.0.0:
version "3.23.8"
resolved "https://registry.yarnpkg.com/zod/-/zod-3.23.8.tgz#e37b957b5d52079769fb8097099b592f0ef4067d"
integrity sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==

zod@^3.21.4, zod@^3.22.4:
version "3.22.4"
resolved "https://registry.npmjs.org/zod/-/zod-3.22.4.tgz"
Expand Down

0 comments on commit 52e7629

Please sign in to comment.