diff --git a/frontend/app/[locale]/shop/admin/products/[id]/edit/page.tsx b/frontend/app/[locale]/shop/admin/products/[id]/edit/page.tsx index 4ee06864..8d51f7c9 100644 --- a/frontend/app/[locale]/shop/admin/products/[id]/edit/page.tsx +++ b/frontend/app/[locale]/shop/admin/products/[id]/edit/page.tsx @@ -5,7 +5,7 @@ import { z } from 'zod'; import { ShopAdminTopbar } from '@/components/shop/admin/ShopAdminTopbar'; import { db } from '@/db'; -import { productPrices,products } from '@/db/schema'; +import { productPrices, products } from '@/db/schema'; import { guardShopAdminPage } from '@/lib/auth/guard-shop-admin-page'; import { issueCsrfToken } from '@/lib/security/csrf'; import type { CurrencyCode } from '@/lib/shop/currency'; diff --git a/frontend/app/[locale]/shop/admin/products/page.tsx b/frontend/app/[locale]/shop/admin/products/page.tsx index d74cb869..cbb2578f 100644 --- a/frontend/app/[locale]/shop/admin/products/page.tsx +++ b/frontend/app/[locale]/shop/admin/products/page.tsx @@ -399,7 +399,7 @@ export default async function AdminProductsPage({
{tNav('home')} diff --git a/frontend/db/queries/shop/products.ts b/frontend/db/queries/shop/products.ts index 1a5f2009..7b3debe5 100644 --- a/frontend/db/queries/shop/products.ts +++ b/frontend/db/queries/shop/products.ts @@ -11,10 +11,10 @@ import { } from 'drizzle-orm'; import { db } from '@/db'; -import { productPrices,products } from '@/db/schema'; +import { productPrices, products } from '@/db/schema'; import type { CatalogSort } from '@/lib/config/catalog'; import type { CurrencyCode } from '@/lib/shop/currency'; -import { type DbProduct,dbProductSchema } from '@/lib/validation/shop'; +import { type DbProduct, dbProductSchema } from '@/lib/validation/shop'; const publicProductBaseSelect = { id: products.id, diff --git a/frontend/lib/admin/parseAdminProductForm.ts b/frontend/lib/admin/parseAdminProductForm.ts index c95637c0..4aa6604d 100644 --- a/frontend/lib/admin/parseAdminProductForm.ts +++ b/frontend/lib/admin/parseAdminProductForm.ts @@ -1,6 +1,6 @@ import { z } from 'zod'; -import { type CurrencyCode,currencyValues } from '@/lib/shop/currency'; +import { type CurrencyCode, currencyValues } from '@/lib/shop/currency'; import { toCents } from '@/lib/shop/money'; import { productAdminSchema, diff --git a/frontend/lib/services/orders.ts b/frontend/lib/services/orders.ts index d614f0dd..d774d915 100644 --- a/frontend/lib/services/orders.ts +++ b/frontend/lib/services/orders.ts @@ -1,7 +1,7 @@ export { createOrderWithItems } from './orders/checkout'; export { setOrderPaymentIntent } from './orders/payment-intent'; export { refundOrder } from './orders/refund'; -export { restockOrder as restock,restockOrder } from './orders/restock'; +export { restockOrder as restock, restockOrder } from './orders/restock'; export { getOrderById, getOrderSummary } from './orders/summary'; export { restockStaleNoPaymentOrders, diff --git a/frontend/lib/services/orders/sweeps.ts b/frontend/lib/services/orders/sweeps.ts index 35b8c18b..0d4732f2 100644 --- a/frontend/lib/services/orders/sweeps.ts +++ b/frontend/lib/services/orders/sweeps.ts @@ -1,5 +1,5 @@ import crypto from 'crypto'; -import { and, eq, inArray, isNull, lt, ne,or, sql } from 'drizzle-orm'; +import { and, eq, inArray, isNull, lt, ne, or, sql } from 'drizzle-orm'; import { db } from '@/db'; import { orders } from '@/db/schema/shop'; diff --git a/frontend/lib/services/products/admin/queries.ts b/frontend/lib/services/products/admin/queries.ts index 0d992ad8..eae146bd 100644 --- a/frontend/lib/services/products/admin/queries.ts +++ b/frontend/lib/services/products/admin/queries.ts @@ -1,7 +1,7 @@ import { and, eq, type SQL } from 'drizzle-orm'; import { db } from '@/db'; -import { productPrices,products } from '@/db/schema'; +import { productPrices, products } from '@/db/schema'; import { ProductNotFoundError } from '@/lib/errors/products'; import type { CurrencyCode } from '@/lib/shop/currency'; import type { DbProduct } from '@/lib/types/shop'; diff --git a/frontend/lib/services/products/cart/rehydrate.ts b/frontend/lib/services/products/cart/rehydrate.ts index 51ec1975..e36e861b 100644 --- a/frontend/lib/services/products/cart/rehydrate.ts +++ b/frontend/lib/services/products/cart/rehydrate.ts @@ -2,10 +2,10 @@ import { and, eq, inArray } from 'drizzle-orm'; import { db } from '@/db'; import { coercePriceFromDb } from '@/db/queries/shop/orders'; -import { productPrices,products } from '@/db/schema'; +import { productPrices, products } from '@/db/schema'; import { logWarn } from '@/lib/logging'; import { createCartItemKey } from '@/lib/shop/cart-item-key'; -import { type CurrencyCode,isTwoDecimalCurrency } from '@/lib/shop/currency'; +import { type CurrencyCode, isTwoDecimalCurrency } from '@/lib/shop/currency'; import { calculateLineTotal, fromCents, toCents } from '@/lib/shop/money'; import type { CartClientItem, diff --git a/frontend/lib/services/products/mutations/create.ts b/frontend/lib/services/products/mutations/create.ts index e8a99e9a..a25be302 100644 --- a/frontend/lib/services/products/mutations/create.ts +++ b/frontend/lib/services/products/mutations/create.ts @@ -1,13 +1,13 @@ import { eq } from 'drizzle-orm'; import { db } from '@/db'; -import { productPrices,products } from '@/db/schema'; +import { productPrices, products } from '@/db/schema'; import { uploadProductImageFromFile } from '@/lib/cloudinary'; import { logError } from '@/lib/logging'; import { toDbMoney } from '@/lib/shop/money'; import type { DbProduct, ProductInput } from '@/lib/types/shop'; -import { InvalidPayloadError,SlugConflictError } from '../../errors'; +import { InvalidPayloadError, SlugConflictError } from '../../errors'; import { mapRowToProduct } from '../mapping'; import { enforceSaleBadgeRequiresOriginal, diff --git a/frontend/lib/services/products/mutations/delete.ts b/frontend/lib/services/products/mutations/delete.ts index 31194834..c265d47e 100644 --- a/frontend/lib/services/products/mutations/delete.ts +++ b/frontend/lib/services/products/mutations/delete.ts @@ -1,7 +1,7 @@ import { sql } from 'drizzle-orm'; import { db } from '@/db'; -import { productPrices,products } from '@/db/schema'; +import { productPrices, products } from '@/db/schema'; import { destroyProductImage } from '@/lib/cloudinary'; import { ProductNotFoundError } from '@/lib/errors/products'; import { logError } from '@/lib/logging'; diff --git a/frontend/lib/services/products/mutations/update.ts b/frontend/lib/services/products/mutations/update.ts index b3dbd935..9c841563 100644 --- a/frontend/lib/services/products/mutations/update.ts +++ b/frontend/lib/services/products/mutations/update.ts @@ -1,7 +1,7 @@ import { eq, sql } from 'drizzle-orm'; import { db } from '@/db'; -import { productPrices,products } from '@/db/schema'; +import { productPrices, products } from '@/db/schema'; import { destroyProductImage, uploadProductImageFromFile, diff --git a/frontend/lib/tests/__mocks__/server-only.ts b/frontend/lib/tests/__mocks__/server-only.ts index e1445347..cb0ff5c3 100644 --- a/frontend/lib/tests/__mocks__/server-only.ts +++ b/frontend/lib/tests/__mocks__/server-only.ts @@ -1,3 +1 @@ -// Vitest/Node stub for Next.js "server-only" marker import. -// Next handles it at build time, but unit tests need a real module. export {}; diff --git a/frontend/lib/tests/helpers/ip.ts b/frontend/lib/tests/helpers/ip.ts index e1781a57..e91ca2db 100644 --- a/frontend/lib/tests/helpers/ip.ts +++ b/frontend/lib/tests/helpers/ip.ts @@ -1,9 +1,3 @@ -/** - * Derive a deterministic TEST IP from an idempotency key. - * Used only in tests to make rate-limit keys stable per request. - * - * Produces a TEST-NET-3 IPv4 address: 203.0.113.1..250 - */ export function deriveTestIpFromIdemKey(idemKey: string): string { const hex = idemKey.replace(/[^0-9a-f]/gi, '').slice(0, 2); const n = hex ? (parseInt(hex, 16) % 250) + 1 : 1; diff --git a/frontend/lib/tests/shop/admin-api-killswitch.test.ts b/frontend/lib/tests/shop/admin-api-killswitch.test.ts index 9e030ad7..ce7c3dbb 100644 --- a/frontend/lib/tests/shop/admin-api-killswitch.test.ts +++ b/frontend/lib/tests/shop/admin-api-killswitch.test.ts @@ -1,5 +1,5 @@ import { NextRequest } from 'next/server'; -import { afterEach,beforeEach, describe, expect, it } from 'vitest'; +import { afterEach, beforeEach, describe, expect, it } from 'vitest'; import { vi } from 'vitest'; const BASE_URL = 'http://localhost'; diff --git a/frontend/lib/tests/shop/admin-product-sale-contract.test.ts b/frontend/lib/tests/shop/admin-product-sale-contract.test.ts index 716b8660..4373603c 100644 --- a/frontend/lib/tests/shop/admin-product-sale-contract.test.ts +++ b/frontend/lib/tests/shop/admin-product-sale-contract.test.ts @@ -1,5 +1,5 @@ import { NextRequest } from 'next/server'; -import { afterEach,beforeEach, describe, expect, it, vi } from 'vitest'; +import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; const { getCurrentUserMock, parseAdminProductFormMock } = vi.hoisted(() => ({ getCurrentUserMock: vi.fn(async () => ({ diff --git a/frontend/lib/tests/shop/cart-rehydrate-variant-sanitize.test.ts b/frontend/lib/tests/shop/cart-rehydrate-variant-sanitize.test.ts index 49e933d7..a3a356f3 100644 --- a/frontend/lib/tests/shop/cart-rehydrate-variant-sanitize.test.ts +++ b/frontend/lib/tests/shop/cart-rehydrate-variant-sanitize.test.ts @@ -4,7 +4,7 @@ import { eq } from 'drizzle-orm'; import { afterAll, beforeAll, describe, expect, it } from 'vitest'; import { db } from '@/db'; -import { productPrices,products } from '@/db/schema'; +import { productPrices, products } from '@/db/schema'; import { rehydrateCartItems } from '@/lib/services/products'; let productId: string; diff --git a/frontend/lib/tests/shop/checkout-concurrency-stock1.test.ts b/frontend/lib/tests/shop/checkout-concurrency-stock1.test.ts index ead8ad5f..31f3d279 100644 --- a/frontend/lib/tests/shop/checkout-concurrency-stock1.test.ts +++ b/frontend/lib/tests/shop/checkout-concurrency-stock1.test.ts @@ -252,7 +252,6 @@ describe('P0-8.10.1 checkout concurrency: stock=1, two parallel checkouts', () = // In CI we fail fast so flakes are visible. if (process.env.CI) throw err; - console.warn('checkout concurrency cleanup failed', err); } }, 30000); diff --git a/frontend/lib/tests/shop/checkout-currency-policy.test.ts b/frontend/lib/tests/shop/checkout-currency-policy.test.ts index f9ad2394..56f2ebd8 100644 --- a/frontend/lib/tests/shop/checkout-currency-policy.test.ts +++ b/frontend/lib/tests/shop/checkout-currency-policy.test.ts @@ -20,7 +20,8 @@ vi.mock('@/lib/env/stripe', () => ({ isPaymentsEnabled: () => false, })); -const createPaymentIntentMock = vi.fn((..._args: any[]) => { +const createPaymentIntentMock = vi.fn((...args: any[]) => { + void args; throw new Error( 'Stripe should not be called in this test (payments disabled).' ); @@ -28,17 +29,22 @@ const createPaymentIntentMock = vi.fn((..._args: any[]) => { vi.mock('@/lib/psp/stripe', () => ({ createPaymentIntent: (...args: any[]) => createPaymentIntentMock(...args), - retrievePaymentIntent: (..._args: any[]) => { + retrievePaymentIntent: (...args: any[]) => { + void args; throw new Error( 'Stripe should not be called in this test (payments disabled).' ); }, })); -// checkout-currency-policy.test.ts - -const logErrorMock = vi.fn((..._args: any[]) => undefined); -const logWarnMock = vi.fn((..._args: any[]) => undefined); +const logErrorMock = vi.fn((...args: any[]) => { + void args; + return undefined; +}); +const logWarnMock = vi.fn((...args: any[]) => { + void args; + return undefined; +}); vi.mock('@/lib/logging', async () => { const actual = @@ -51,7 +57,7 @@ vi.mock('@/lib/logging', async () => { }); import { db } from '@/db'; -import { orders,productPrices, products } from '@/db/schema'; +import { orders, productPrices, products } from '@/db/schema'; let POST: (req: NextRequest) => Promise; diff --git a/frontend/lib/tests/shop/checkout-no-payments.test.ts b/frontend/lib/tests/shop/checkout-no-payments.test.ts index 46c938cd..fe9747cc 100644 --- a/frontend/lib/tests/shop/checkout-no-payments.test.ts +++ b/frontend/lib/tests/shop/checkout-no-payments.test.ts @@ -2,10 +2,10 @@ import crypto from 'crypto'; import { eq, sql } from 'drizzle-orm'; import { NextRequest } from 'next/server'; -import { afterAll,beforeAll, describe, expect, it, vi } from 'vitest'; +import { afterAll, beforeAll, describe, expect, it, vi } from 'vitest'; import { db } from '@/db'; -import { orders, productPrices,products } from '@/db/schema'; +import { orders, productPrices, products } from '@/db/schema'; import { toDbMoney } from '@/lib/shop/money'; import { deriveTestIpFromIdemKey } from '@/lib/tests/helpers/ip'; diff --git a/frontend/lib/tests/shop/checkout-origin-posture-contract.test.ts b/frontend/lib/tests/shop/checkout-origin-posture-contract.test.ts index 5c1464b8..4515bc4e 100644 --- a/frontend/lib/tests/shop/checkout-origin-posture-contract.test.ts +++ b/frontend/lib/tests/shop/checkout-origin-posture-contract.test.ts @@ -1,4 +1,4 @@ -import { describe, expect,it } from 'vitest'; +import { describe, expect, it } from 'vitest'; import { POST } from '@/app/api/shop/checkout/route'; import { makeCheckoutReq } from '@/lib/tests/helpers/makeCheckoutReq'; diff --git a/frontend/lib/tests/shop/order-items-variants.test.ts b/frontend/lib/tests/shop/order-items-variants.test.ts index 3a891a19..9dc09c54 100644 --- a/frontend/lib/tests/shop/order-items-variants.test.ts +++ b/frontend/lib/tests/shop/order-items-variants.test.ts @@ -1,9 +1,9 @@ import crypto from 'crypto'; import { eq, sql } from 'drizzle-orm'; -import { describe, expect,it } from 'vitest'; +import { describe, expect, it } from 'vitest'; import { db } from '@/db'; -import { orderItems,orders, productPrices, products } from '@/db/schema/shop'; +import { orderItems, orders, productPrices, products } from '@/db/schema/shop'; import { createOrderWithItems } from '@/lib/services/orders'; describe('order_items variants (selected_size/selected_color)', () => { diff --git a/frontend/lib/tests/shop/orders-access.test.ts b/frontend/lib/tests/shop/orders-access.test.ts index 21bbd861..209d53d9 100644 --- a/frontend/lib/tests/shop/orders-access.test.ts +++ b/frontend/lib/tests/shop/orders-access.test.ts @@ -1,5 +1,5 @@ import { NextRequest } from 'next/server'; -import { beforeEach,describe, expect, it, vi } from 'vitest'; +import { beforeEach, describe, expect, it, vi } from 'vitest'; vi.mock('@/lib/auth', () => ({ getCurrentUser: vi.fn(), diff --git a/frontend/lib/tests/shop/payment-state-legacy-writers.test.ts b/frontend/lib/tests/shop/payment-state-legacy-writers.test.ts index 95d2a343..93f8b393 100644 --- a/frontend/lib/tests/shop/payment-state-legacy-writers.test.ts +++ b/frontend/lib/tests/shop/payment-state-legacy-writers.test.ts @@ -3,7 +3,7 @@ import fs from 'node:fs'; import path from 'node:path'; import { eq } from 'drizzle-orm'; -import { afterEach,describe, expect, it } from 'vitest'; +import { afterEach, describe, expect, it } from 'vitest'; import { db } from '@/db'; import { orders } from '@/db/schema/shop'; @@ -17,7 +17,6 @@ type SeedArgs = { async function seedOrder(args: SeedArgs): Promise { const orderId = crypto.randomUUID(); const now = new Date(); - const idempotencyKey = `test:${orderId}`; await db.insert(orders).values({ diff --git a/frontend/lib/tests/shop/payment-status-tripwire.test.ts b/frontend/lib/tests/shop/payment-status-tripwire.test.ts index 46a774c0..6229572c 100644 --- a/frontend/lib/tests/shop/payment-status-tripwire.test.ts +++ b/frontend/lib/tests/shop/payment-status-tripwire.test.ts @@ -1,7 +1,7 @@ import fs from 'node:fs'; import path from 'node:path'; -import { describe, expect,it } from 'vitest'; +import { describe, expect, it } from 'vitest'; const REPO_ROOT = process.cwd(); diff --git a/frontend/lib/tests/shop/product-sale-invariant.test.ts b/frontend/lib/tests/shop/product-sale-invariant.test.ts index 20b7f764..a2586c4f 100644 --- a/frontend/lib/tests/shop/product-sale-invariant.test.ts +++ b/frontend/lib/tests/shop/product-sale-invariant.test.ts @@ -1,5 +1,5 @@ import { eq } from 'drizzle-orm'; -import { afterEach,describe, expect, it, vi } from 'vitest'; +import { afterEach, describe, expect, it, vi } from 'vitest'; vi.mock('@/lib/cloudinary', () => { return { @@ -12,7 +12,7 @@ vi.mock('@/lib/cloudinary', () => { }); import { db } from '@/db'; -import { productPrices,products } from '@/db/schema'; +import { productPrices, products } from '@/db/schema'; import { createProduct, updateProduct } from '@/lib/services/products'; import { toDbMoney } from '@/lib/shop/money'; diff --git a/frontend/lib/tests/shop/public-product-visibility.test.ts b/frontend/lib/tests/shop/public-product-visibility.test.ts index 25cbd8bb..6399b2d6 100644 --- a/frontend/lib/tests/shop/public-product-visibility.test.ts +++ b/frontend/lib/tests/shop/public-product-visibility.test.ts @@ -1,11 +1,11 @@ import { randomUUID } from 'node:crypto'; import { eq } from 'drizzle-orm'; -import { describe, expect,it } from 'vitest'; +import { describe, expect, it } from 'vitest'; import { db } from '@/db'; import { getPublicProductBySlug } from '@/db/queries/shop/products'; -import { productPrices,products } from '@/db/schema'; +import { productPrices, products } from '@/db/schema'; function logTestCleanupFailed(meta: Record, error: unknown) { console.error('[test cleanup failed]', { diff --git a/frontend/lib/tests/shop/rate-limit-subject.test.ts b/frontend/lib/tests/shop/rate-limit-subject.test.ts index bb4a8a63..258a3ef5 100644 --- a/frontend/lib/tests/shop/rate-limit-subject.test.ts +++ b/frontend/lib/tests/shop/rate-limit-subject.test.ts @@ -1,4 +1,4 @@ -import { afterEach,describe, expect, it, vi } from 'vitest'; +import { afterEach, describe, expect, it, vi } from 'vitest'; vi.mock('@/db', () => ({ db: { execute: vi.fn() } })); import { NextRequest } from 'next/server'; diff --git a/frontend/lib/tests/shop/restock-order-only-once.test.ts b/frontend/lib/tests/shop/restock-order-only-once.test.ts index ef1ba4bb..0e0a37cc 100644 --- a/frontend/lib/tests/shop/restock-order-only-once.test.ts +++ b/frontend/lib/tests/shop/restock-order-only-once.test.ts @@ -1,6 +1,6 @@ import crypto from 'crypto'; import { eq, sql } from 'drizzle-orm'; -import { describe, expect,it } from 'vitest'; +import { describe, expect, it } from 'vitest'; import { db } from '@/db'; import { orders, products } from '@/db/schema'; diff --git a/frontend/lib/tests/shop/restock-stale-claim-gate.test.ts b/frontend/lib/tests/shop/restock-stale-claim-gate.test.ts index df71dbbd..01cc81d7 100644 --- a/frontend/lib/tests/shop/restock-stale-claim-gate.test.ts +++ b/frontend/lib/tests/shop/restock-stale-claim-gate.test.ts @@ -1,6 +1,6 @@ import crypto from 'crypto'; import { eq } from 'drizzle-orm'; -import { describe, expect,it } from 'vitest'; +import { describe, expect, it } from 'vitest'; import { db } from '@/db'; import { orders } from '@/db/schema'; diff --git a/frontend/lib/tests/shop/restock-stale-stripe-orphan.test.ts b/frontend/lib/tests/shop/restock-stale-stripe-orphan.test.ts index 345b284b..d12bca02 100644 --- a/frontend/lib/tests/shop/restock-stale-stripe-orphan.test.ts +++ b/frontend/lib/tests/shop/restock-stale-stripe-orphan.test.ts @@ -1,6 +1,6 @@ import crypto from 'crypto'; import { eq } from 'drizzle-orm'; -import { describe, expect,it } from 'vitest'; +import { describe, expect, it } from 'vitest'; import { db } from '@/db'; import { orders } from '@/db/schema'; diff --git a/frontend/lib/tests/shop/restock-stuck-reserving-sweep.test.ts b/frontend/lib/tests/shop/restock-stuck-reserving-sweep.test.ts index 1aff157f..1d3ff5b3 100644 --- a/frontend/lib/tests/shop/restock-stuck-reserving-sweep.test.ts +++ b/frontend/lib/tests/shop/restock-stuck-reserving-sweep.test.ts @@ -1,6 +1,6 @@ import crypto from 'crypto'; import { eq, sql } from 'drizzle-orm'; -import { describe, expect,it } from 'vitest'; +import { describe, expect, it } from 'vitest'; import { db } from '@/db'; import { orders, products } from '@/db/schema'; diff --git a/frontend/lib/tests/shop/restock-sweep-claim.test.ts b/frontend/lib/tests/shop/restock-sweep-claim.test.ts index 09fb2da1..b670c47b 100644 --- a/frontend/lib/tests/shop/restock-sweep-claim.test.ts +++ b/frontend/lib/tests/shop/restock-sweep-claim.test.ts @@ -1,6 +1,6 @@ import crypto from 'crypto'; import { eq } from 'drizzle-orm'; -import { describe, expect,it } from 'vitest'; +import { describe, expect, it } from 'vitest'; import { db } from '@/db'; import { orders } from '@/db/schema'; diff --git a/frontend/lib/tests/shop/stripe-webhook-contract.test.ts b/frontend/lib/tests/shop/stripe-webhook-contract.test.ts index 10d8bd36..04399ff4 100644 --- a/frontend/lib/tests/shop/stripe-webhook-contract.test.ts +++ b/frontend/lib/tests/shop/stripe-webhook-contract.test.ts @@ -1,5 +1,5 @@ import { NextRequest } from 'next/server'; -import { afterEach,beforeEach, describe, expect, it, vi } from 'vitest'; +import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; vi.mock('@/lib/logging', async () => { const actual = await vi.importActual('@/lib/logging'); diff --git a/frontend/lib/tests/shop/stripe-webhook-mismatch.test.ts b/frontend/lib/tests/shop/stripe-webhook-mismatch.test.ts index 1a9a75df..77b50e8c 100644 --- a/frontend/lib/tests/shop/stripe-webhook-mismatch.test.ts +++ b/frontend/lib/tests/shop/stripe-webhook-mismatch.test.ts @@ -1,6 +1,6 @@ import { sql } from 'drizzle-orm'; import { NextRequest } from 'next/server'; -import { afterEach,beforeEach, describe, expect, it, vi } from 'vitest'; +import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import { db } from '@/db'; diff --git a/frontend/lib/validation/shop.ts b/frontend/lib/validation/shop.ts index e578a599..8fe979d2 100644 --- a/frontend/lib/validation/shop.ts +++ b/frontend/lib/validation/shop.ts @@ -13,7 +13,7 @@ import { paymentProviderValues, paymentStatusValues, } from '@/lib/shop/payments'; -export type { PaymentProvider,PaymentStatus } from '@/lib/shop/payments'; +export type { PaymentProvider, PaymentStatus } from '@/lib/shop/payments'; export const MAX_QUANTITY_PER_LINE = 20; diff --git a/frontend/package-lock.json b/frontend/package-lock.json index ca3ca380..a9df03db 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -9686,6 +9686,17 @@ } } }, + "node_modules/next-intl/node_modules/@swc/helpers": { + "version": "0.5.18", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.18.tgz", + "integrity": "sha512-TXTnIcNJQEKwThMMqBXsZ4VGAza6bvN4pa41Rkqoio6QBKMvo+5lexeTMScGCIxtzgQJzElcvIltani+adC5PQ==", + "license": "Apache-2.0", + "optional": true, + "peer": true, + "dependencies": { + "tslib": "^2.8.0" + } + }, "node_modules/next-themes": { "version": "0.4.6", "resolved": "https://registry.npmjs.org/next-themes/-/next-themes-0.4.6.tgz",