mirror of
https://github.com/vercel/commerce.git
synced 2025-03-31 01:05:53 +00:00
Update deps
This commit is contained in:
parent
386392be02
commit
88762ba1bc
@ -98,18 +98,9 @@ export async function updateItemQuantity(
|
|||||||
|
|
||||||
export async function redirectToCheckout() {
|
export async function redirectToCheckout() {
|
||||||
let cartId = (await cookies()).get('cartId')?.value;
|
let cartId = (await cookies()).get('cartId')?.value;
|
||||||
|
|
||||||
if (!cartId) {
|
|
||||||
return 'Missing cart ID';
|
|
||||||
}
|
|
||||||
|
|
||||||
let cart = await getCart(cartId);
|
let cart = await getCart(cartId);
|
||||||
|
|
||||||
if (!cart) {
|
redirect(cart!.checkoutUrl);
|
||||||
return 'Error fetching cart';
|
|
||||||
}
|
|
||||||
|
|
||||||
redirect(cart.checkoutUrl);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function createCartAndSetCookie() {
|
export async function createCartAndSetCookie() {
|
||||||
|
44
package.json
44
package.json
@ -1,11 +1,7 @@
|
|||||||
{
|
{
|
||||||
"private": true,
|
"private": true,
|
||||||
"engines": {
|
|
||||||
"node": ">=20",
|
|
||||||
"pnpm": ">=9"
|
|
||||||
},
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev --turbo",
|
"dev": "next dev --turbopack",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"prettier": "prettier --write --ignore-unknown .",
|
"prettier": "prettier --write --ignore-unknown .",
|
||||||
@ -13,32 +9,26 @@
|
|||||||
"test": "pnpm prettier:check"
|
"test": "pnpm prettier:check"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@headlessui/react": "^2.1.2",
|
"@headlessui/react": "^2.2.0",
|
||||||
"@heroicons/react": "^2.1.5",
|
"@heroicons/react": "^2.2.0",
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"geist": "^1.3.1",
|
"geist": "^1.3.1",
|
||||||
"next": "15.0.0-rc.1",
|
"next": "15.0.4",
|
||||||
"react": "19.0.0-rc-cd22717c-20241013",
|
"react": "19.0.0",
|
||||||
"react-dom": "19.0.0-rc-cd22717c-20241013",
|
"react-dom": "19.0.0",
|
||||||
"sonner": "^1.5.0"
|
"sonner": "^1.7.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tailwindcss/container-queries": "^0.1.1",
|
"@tailwindcss/container-queries": "^0.1.1",
|
||||||
"@tailwindcss/typography": "^0.5.13",
|
"@tailwindcss/typography": "^0.5.15",
|
||||||
"@types/node": "20.14.12",
|
"@types/node": "22.10.1",
|
||||||
"@types/react": "npm:types-react@19.0.0-rc.1",
|
"@types/react": "19.0.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.1",
|
"@types/react-dom": "19.0.1",
|
||||||
"autoprefixer": "^10.4.19",
|
"autoprefixer": "^10.4.20",
|
||||||
"postcss": "^8.4.39",
|
"postcss": "^8.4.49",
|
||||||
"prettier": "3.3.3",
|
"prettier": "3.4.2",
|
||||||
"prettier-plugin-tailwindcss": "^0.6.5",
|
"prettier-plugin-tailwindcss": "^0.6.9",
|
||||||
"tailwindcss": "^3.4.6",
|
"tailwindcss": "^3.4.16",
|
||||||
"typescript": "5.5.4"
|
"typescript": "5.7.2"
|
||||||
},
|
|
||||||
"pnpm": {
|
|
||||||
"overrides": {
|
|
||||||
"@types/react": "npm:types-react@19.0.0-rc.1",
|
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.1"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
1824
pnpm-lock.yaml
generated
1824
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user