diff --git a/backend/package-lock.json b/backend/package-lock.json index 7fdcc42..fa383ab 100644 --- a/backend/package-lock.json +++ b/backend/package-lock.json @@ -1860,18 +1860,18 @@ } }, "node_modules/body-parser": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.3.0.tgz", - "integrity": "sha512-2cGmJupaNgg+QUwVLAucDuWuoMZ6EX9iHDRswZ5lsNYEmwPaRknMPCLZz07yTzVq/83p4o/wzbDZbBrTvGGTIw==", + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.4.0.tgz", + "integrity": "sha512-Ifk1KcLrxaGt1occQagQNFNNOqRt1LFuehEnHHzB8Z6cRgIxRU1TBaiIsUiCdA+gy5PL7Y1IX31DNKkRmxtXjQ==", "license": "MIT", "dependencies": { "bytes": "^3.1.2", - "content-type": "^2.0.0", + "content-type": "^2.1.0", "debug": "^4.4.3", "http-errors": "^2.0.1", - "iconv-lite": "^0.7.2", + "iconv-lite": "^0.7.3", "on-finished": "^2.4.1", - "qs": "^6.15.2", + "qs": "^6.16.1", "raw-body": "^3.0.2", "type-is": "^2.1.0" }, @@ -3744,9 +3744,9 @@ "license": "MIT" }, "node_modules/qs": { - "version": "6.16.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.16.0.tgz", - "integrity": "sha512-h6fhOIaRrID2CbEY2fqs+7t+UXZo+MLAnU5gRIq85uFtdiUPCdsApMlHhXogKVM4HM2DVbIjGNTTYH2OcmP1vA==", + "version": "6.17.1", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.17.1.tgz", + "integrity": "sha512-jd3COkaKVgGUW+ZHyEHCG9bH7RoaaiWuMgzsIBjUMVjLAaWGWpoUAVwljVvBHxRu/2qEHnadLGZrkutYUBPQJA==", "license": "BSD-3-Clause", "dependencies": { "es-define-property": "^1.0.1", diff --git a/backend/src/importMetArtworks.ts b/backend/src/importMetArtworks.ts index 68a66b3..7c08d1b 100644 --- a/backend/src/importMetArtworks.ts +++ b/backend/src/importMetArtworks.ts @@ -94,7 +94,7 @@ async function importArtworks() { country: artwork.country, city: artwork.city, culture: artwork.culture, - period: artwork.period, + period: artwork.period, }, }, { upsert: true }, diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 9dd1ad0..1ccc63c 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -4113,9 +4113,9 @@ } }, "node_modules/zod": { - "version": "4.6.5", - "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.5.tgz", - "integrity": "sha512-v5l/aFXZQeai4awLbOpSoHecE9UiMrnfx75tEXLjNonXVARxQ5mOeipTjROUchszUNCqnE+hqAMujRsRHsut2Q==", + "version": "4.6.7", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.7.tgz", + "integrity": "sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==", "dev": true, "license": "MIT", "funding": { diff --git a/frontend/src/components/AddToGalleryModal.tsx b/frontend/src/components/AddToGalleryModal.tsx index cf672e7..de1cccf 100644 --- a/frontend/src/components/AddToGalleryModal.tsx +++ b/frontend/src/components/AddToGalleryModal.tsx @@ -179,4 +179,4 @@ export default function AddToGalleryModal({ ); -} \ No newline at end of file +} diff --git a/frontend/src/components/Footer.tsx b/frontend/src/components/Footer.tsx index fd77cb5..d91e785 100644 --- a/frontend/src/components/Footer.tsx +++ b/frontend/src/components/Footer.tsx @@ -4,4 +4,4 @@ export default function Footer() {

© {new Date().getFullYear()} Artex. All rights reserved

); -} \ No newline at end of file +} diff --git a/frontend/src/components/GalleryCard.tsx b/frontend/src/components/GalleryCard.tsx index 7f8b07e..a1ed92c 100644 --- a/frontend/src/components/GalleryCard.tsx +++ b/frontend/src/components/GalleryCard.tsx @@ -61,4 +61,4 @@ export default function GalleryCard({

); -} \ No newline at end of file +} diff --git a/frontend/src/components/ProtectedRoute.tsx b/frontend/src/components/ProtectedRoute.tsx index 6366ab1..5e9515c 100644 --- a/frontend/src/components/ProtectedRoute.tsx +++ b/frontend/src/components/ProtectedRoute.tsx @@ -14,4 +14,4 @@ export default function ProtectedRoute({ children }: ProtectedRouteProps) { } return children; -} \ No newline at end of file +} diff --git a/frontend/src/hooks/useArtwork.ts b/frontend/src/hooks/useArtwork.ts index d3bf2cc..fdccb1b 100644 --- a/frontend/src/hooks/useArtwork.ts +++ b/frontend/src/hooks/useArtwork.ts @@ -70,4 +70,4 @@ export function useArtwork(id: number) { }, [id]); return { artwork, loading, error }; -} \ No newline at end of file +} diff --git a/frontend/src/hooks/useGalleryCoverImages.ts b/frontend/src/hooks/useGalleryCoverImages.ts index 8b049e5..321d892 100644 --- a/frontend/src/hooks/useGalleryCoverImages.ts +++ b/frontend/src/hooks/useGalleryCoverImages.ts @@ -59,10 +59,7 @@ export function useGalleryCoverImages(galleries: Gallery[]) { return result.data?.artwork?.image_url ?? null; } catch (error) { - console.error( - `Could not fetch artwork ${artworkId}:`, - error, - ); + console.error(`Could not fetch artwork ${artworkId}:`, error); return null; } @@ -86,4 +83,4 @@ export function useGalleryCoverImages(galleries: Gallery[]) { }, [galleries]); return coverImages; -} \ No newline at end of file +} diff --git a/frontend/src/pages/ArtworkDetailPage.tsx b/frontend/src/pages/ArtworkDetailPage.tsx index f6ff566..ab200d0 100644 --- a/frontend/src/pages/ArtworkDetailPage.tsx +++ b/frontend/src/pages/ArtworkDetailPage.tsx @@ -177,4 +177,4 @@ export default function ArtworkDetailPage() { )} ); -} \ No newline at end of file +} diff --git a/frontend/src/store/authStore.ts b/frontend/src/store/authStore.ts index efcd60f..a243e2e 100644 --- a/frontend/src/store/authStore.ts +++ b/frontend/src/store/authStore.ts @@ -28,4 +28,4 @@ export const useAuthStore = create()( storage: createJSONStorage(() => sessionStorage), }, ), -); \ No newline at end of file +);