Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
leerob committed Dec 6, 2024
1 parent 386392b commit 88762ba
Show file tree
Hide file tree
Showing 3 changed files with 660 additions and 1,277 deletions.
11 changes: 1 addition & 10 deletions components/cart/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,18 +98,9 @@ export async function updateItemQuantity(

export async function redirectToCheckout() {
let cartId = (await cookies()).get('cartId')?.value;

if (!cartId) {
return 'Missing cart ID';
}

let cart = await getCart(cartId);

if (!cart) {
return 'Error fetching cart';
}

redirect(cart.checkoutUrl);
redirect(cart!.checkoutUrl);
}

export async function createCartAndSetCookie() {
Expand Down
44 changes: 17 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,34 @@
{
"private": true,
"engines": {
"node": ">=20",
"pnpm": ">=9"
},
"scripts": {
"dev": "next dev --turbo",
"dev": "next dev --turbopack",
"build": "next build",
"start": "next start",
"prettier": "prettier --write --ignore-unknown .",
"prettier:check": "prettier --check --ignore-unknown .",
"test": "pnpm prettier:check"
},
"dependencies": {
"@headlessui/react": "^2.1.2",
"@heroicons/react": "^2.1.5",
"@headlessui/react": "^2.2.0",
"@heroicons/react": "^2.2.0",
"clsx": "^2.1.1",
"geist": "^1.3.1",
"next": "15.0.0-rc.1",
"react": "19.0.0-rc-cd22717c-20241013",
"react-dom": "19.0.0-rc-cd22717c-20241013",
"sonner": "^1.5.0"
"next": "15.0.4",
"react": "19.0.0",
"react-dom": "19.0.0",
"sonner": "^1.7.0"
},
"devDependencies": {
"@tailwindcss/container-queries": "^0.1.1",
"@tailwindcss/typography": "^0.5.13",
"@types/node": "20.14.12",
"@types/react": "npm:[email protected]",
"@types/react-dom": "npm:[email protected]",
"autoprefixer": "^10.4.19",
"postcss": "^8.4.39",
"prettier": "3.3.3",
"prettier-plugin-tailwindcss": "^0.6.5",
"tailwindcss": "^3.4.6",
"typescript": "5.5.4"
},
"pnpm": {
"overrides": {
"@types/react": "npm:[email protected]",
"@types/react-dom": "npm:[email protected]"
}
"@tailwindcss/typography": "^0.5.15",
"@types/node": "22.10.1",
"@types/react": "19.0.0",
"@types/react-dom": "19.0.1",
"autoprefixer": "^10.4.20",
"postcss": "^8.4.49",
"prettier": "3.4.2",
"prettier-plugin-tailwindcss": "^0.6.9",
"tailwindcss": "^3.4.16",
"typescript": "5.7.2"
}
}
Loading

0 comments on commit 88762ba

Please sign in to comment.