diff --git a/package.json b/package.json index 7450753..1627280 100644 --- a/package.json +++ b/package.json @@ -1,83 +1,83 @@ { - "name": "image-description-generator", - "version": "0.0.1", - "packageManager": "pnpm@8.14.0", - "scripts": { - "knip": "knip", - "dev": "vite dev --host --open", - "build": "vite build", - "preview": "vite preview --host --open", - "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", - "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", - "lint": "prettier --check . && eslint .", - "format": "prettier --write .", - "tests": "npm run test:e2e && npm run test:unit", - "test:e2e": "playwright test", - "test:unit": "vitest -u", - "test:unit:ui": "vitest --ui", - "migration:generate": "drizzle-kit generate:pg", - "migration:push": "drizzle-kit push:pg", - "migration:pull": "drizzle-kit introspect:pg", - "migration:drop": "drizzle-kit drop", - "migration:check": "drizzle-kit check:pg" - }, - "devDependencies": { - "@bobbymannino/svelte-progress": "^2.3.0", - "@playwright/test": "^1.40.1", - "@sveltejs/adapter-auto": "^3.1.0", - "@sveltejs/enhanced-img": "^0.1.7", - "@sveltejs/kit": "^2.0.6", - "@sveltejs/vite-plugin-svelte": "^3.0.1", - "@testing-library/jest-dom": "^6.2.0", - "@testing-library/svelte": "^4.0.5", - "@total-typescript/ts-reset": "^0.5.1", - "@types/cookie": "^0.6.0", - "@types/dompurify": "^3.0.5", - "@types/eslint": "8.56.0", - "@types/jsdom": "^21.1.6", - "@types/node": "^20.10.6", - "@types/nodemailer": "^6.4.14", - "@typescript-eslint/eslint-plugin": "^6.18.0", - "@typescript-eslint/parser": "^6.18.0", - "@vitest/ui": "^1.1.3", - "autoprefixer": "^10.4.16", - "eslint": "^8.56.0", - "eslint-config-prettier": "^9.1.0", - "eslint-plugin-svelte": "^2.35.1", - "jsdom": "^23.1.0", - "knip": "^3.12.0", - "postcss": "^8.4.33", - "postcss-load-config": "^5.0.2", - "prettier": "^3.1.1", - "prettier-plugin-svelte": "^3.1.2", - "prettier-plugin-tailwindcss": "^0.5.11", - "svelte": "^4.2.8", - "svelte-check": "^3.6.2", - "svelte-meta-tags": "^3.1.0", - "sveltekit-superforms": "^1.13.1", - "tailwindcss": "^3.4.1", - "tslib": "^2.6.2", - "typescript": "^5.3.3", - "vite": "^5.0.11", - "vitest": "^1.1.3", - "zod": "^3.22.4" - }, - "type": "module", - "dependencies": { - "@vercel/analytics": "^1.1.1", - "bits-ui": "^0.9.9", - "clsx": "^2.1.0", - "dompurify": "^3.0.8", - "just-extend": "^6.2.0", - "lucide-svelte": "^0.303.0", - "mode-watcher": "^0.1.2", - "nodemailer": "^6.9.8", - "openai": "^4.24.1", - "postcss-preset-env": "^9.3.0", - "sharp": "^0.33.1", - "svelte-sonner": "^0.3.11", - "tailwind-merge": "^2.2.0", - "tailwind-variants": "^0.1.20", - "vite-plugin-kit-routes": "^0.2.12" - } -} + "name": "image-description-generator", + "version": "0.0.1", + "packageManager": "pnpm@8.14.0", + "scripts": { + "knip": "knip", + "dev": "vite dev --host --open", + "build": "vite build", + "preview": "vite preview --host --open", + "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", + "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", + "lint": "prettier --check . && eslint .", + "format": "prettier --write .", + "tests": "npm run test:e2e && npm run test:unit", + "test:e2e": "playwright test", + "test:unit": "vitest -u", + "test:unit:ui": "vitest --ui", + "migration:generate": "drizzle-kit generate:pg", + "migration:push": "drizzle-kit push:pg", + "migration:pull": "drizzle-kit introspect:pg", + "migration:drop": "drizzle-kit drop", + "migration:check": "drizzle-kit check:pg" + }, + "devDependencies": { + "@bobbymannino/svelte-progress": "^2.3.0", + "@playwright/test": "^1.40.1", + "@sveltejs/adapter-auto": "^3.1.0", + "@sveltejs/enhanced-img": "^0.1.7", + "@sveltejs/kit": "^2.0.6", + "@sveltejs/vite-plugin-svelte": "^3.0.1", + "@testing-library/jest-dom": "^6.2.0", + "@testing-library/svelte": "^4.0.5", + "@total-typescript/ts-reset": "^0.5.1", + "@types/cookie": "^0.6.0", + "@types/dompurify": "^3.0.5", + "@types/eslint": "8.56.0", + "@types/jsdom": "^21.1.6", + "@types/node": "^20.10.6", + "@types/nodemailer": "^6.4.14", + "@typescript-eslint/eslint-plugin": "^6.18.0", + "@typescript-eslint/parser": "^6.18.0", + "@vitest/ui": "^1.1.3", + "autoprefixer": "^10.4.16", + "eslint": "^8.56.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-svelte": "^2.35.1", + "jsdom": "^23.1.0", + "knip": "^3.12.0", + "postcss": "^8.4.33", + "postcss-load-config": "^5.0.2", + "prettier": "^3.1.1", + "prettier-plugin-svelte": "^3.1.2", + "prettier-plugin-tailwindcss": "^0.5.11", + "svelte": "^4.2.8", + "svelte-check": "^3.6.2", + "svelte-meta-tags": "^3.1.0", + "sveltekit-superforms": "^1.13.1", + "tailwindcss": "^3.4.1", + "tslib": "^2.6.2", + "typescript": "^5.3.3", + "vite": "^5.0.11", + "vitest": "^1.1.3", + "zod": "^3.22.4" + }, + "type": "module", + "dependencies": { + "@vercel/analytics": "^1.1.1", + "bits-ui": "^0.9.9", + "clsx": "^2.1.0", + "dompurify": "^3.0.8", + "just-extend": "^6.2.0", + "lucide-svelte": "^0.303.0", + "mode-watcher": "^0.1.2", + "nodemailer": "^6.9.8", + "openai": "^4.24.1", + "postcss-preset-env": "^9.3.0", + "sharp": "^0.33.0", + "svelte-sonner": "^0.3.11", + "tailwind-merge": "^2.2.0", + "tailwind-variants": "^0.1.20", + "vite-plugin-kit-routes": "^0.2.12" + } +} \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0278de5..1207a33 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -36,8 +36,8 @@ dependencies: specifier: ^9.3.0 version: 9.3.0(postcss@8.4.33) sharp: - specifier: ^0.33.1 - version: 0.33.1 + specifier: ^0.33.0 + version: 0.33.0 svelte-sonner: specifier: ^0.3.11 version: 0.3.11(svelte@4.2.8) @@ -949,6 +949,17 @@ packages: resolution: {integrity: sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==} dev: true + /@img/sharp-darwin-arm64@0.33.0: + resolution: {integrity: sha512-070tEheekI1LJWTGPC9WlQEa5UoKTXzzlORBHMX4TbfUxMiL336YHR8vBEUNsjse0RJCX8dZ4ZXwT595aEF1ug==} + engines: {glibc: '>=2.26', node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + optionalDependencies: + '@img/sharp-libvips-darwin-arm64': 1.0.0 + dev: false + optional: true + /@img/sharp-darwin-arm64@0.33.1: resolution: {integrity: sha512-esr2BZ1x0bo+wl7Gx2hjssYhjrhUsD88VQulI0FrG8/otRQUOxLWHMBd1Y1qo2Gfg2KUvXNpT0ASnV9BzJCexw==} engines: {glibc: '>=2.26', node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} @@ -957,6 +968,18 @@ packages: requiresBuild: true optionalDependencies: '@img/sharp-libvips-darwin-arm64': 1.0.0 + dev: true + optional: true + + /@img/sharp-darwin-x64@0.33.0: + resolution: {integrity: sha512-pu/nvn152F3qbPeUkr+4e9zVvEhD3jhwzF473veQfMPkOYo9aoWXSfdZH/E6F+nYC3qvFjbxbvdDbUtEbghLqw==} + engines: {glibc: '>=2.26', node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} + cpu: [x64] + os: [darwin] + requiresBuild: true + optionalDependencies: + '@img/sharp-libvips-darwin-x64': 1.0.0 + dev: false optional: true /@img/sharp-darwin-x64@0.33.1: @@ -967,6 +990,7 @@ packages: requiresBuild: true optionalDependencies: '@img/sharp-libvips-darwin-x64': 1.0.0 + dev: true optional: true /@img/sharp-libvips-darwin-arm64@1.0.0: @@ -1033,6 +1057,17 @@ packages: requiresBuild: true optional: true + /@img/sharp-linux-arm64@0.33.0: + resolution: {integrity: sha512-dcomVSrtgF70SyOr8RCOCQ8XGVThXwe71A1d8MGA+mXEVRJ/J6/TrCbBEJh9ddcEIIsrnrkolaEvYSHqVhswQw==} + engines: {glibc: '>=2.26', node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} + cpu: [arm64] + os: [linux] + requiresBuild: true + optionalDependencies: + '@img/sharp-libvips-linux-arm64': 1.0.0 + dev: false + optional: true + /@img/sharp-linux-arm64@0.33.1: resolution: {integrity: sha512-59B5GRO2d5N3tIfeGHAbJps7cLpuWEQv/8ySd9109ohQ3kzyCACENkFVAnGPX00HwPTQcaBNF7HQYEfZyZUFfw==} engines: {glibc: '>=2.26', node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} @@ -1041,6 +1076,18 @@ packages: requiresBuild: true optionalDependencies: '@img/sharp-libvips-linux-arm64': 1.0.0 + dev: true + optional: true + + /@img/sharp-linux-arm@0.33.0: + resolution: {integrity: sha512-4horD3wMFd5a0ddbDY8/dXU9CaOgHjEHALAddXgafoR5oWq5s8X61PDgsSeh4Qupsdo6ycfPPSSNBrfVQnwwrg==} + engines: {glibc: '>=2.28', node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} + cpu: [arm] + os: [linux] + requiresBuild: true + optionalDependencies: + '@img/sharp-libvips-linux-arm': 1.0.0 + dev: false optional: true /@img/sharp-linux-arm@0.33.1: @@ -1051,6 +1098,18 @@ packages: requiresBuild: true optionalDependencies: '@img/sharp-libvips-linux-arm': 1.0.0 + dev: true + optional: true + + /@img/sharp-linux-s390x@0.33.0: + resolution: {integrity: sha512-TiVJbx38J2rNVfA309ffSOB+3/7wOsZYQEOlKqOUdWD/nqkjNGrX+YQGz7nzcf5oy2lC+d37+w183iNXRZNngQ==} + engines: {glibc: '>=2.28', node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} + cpu: [s390x] + os: [linux] + requiresBuild: true + optionalDependencies: + '@img/sharp-libvips-linux-s390x': 1.0.0 + dev: false optional: true /@img/sharp-linux-s390x@0.33.1: @@ -1061,6 +1120,18 @@ packages: requiresBuild: true optionalDependencies: '@img/sharp-libvips-linux-s390x': 1.0.0 + dev: true + optional: true + + /@img/sharp-linux-x64@0.33.0: + resolution: {integrity: sha512-PaZM4Zi7/Ek71WgTdvR+KzTZpBqrQOFcPe7/8ZoPRlTYYRe43k6TWsf4GVH6XKRLMYeSp8J89RfAhBrSP4itNA==} + engines: {glibc: '>=2.26', node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} + cpu: [x64] + os: [linux] + requiresBuild: true + optionalDependencies: + '@img/sharp-libvips-linux-x64': 1.0.0 + dev: false optional: true /@img/sharp-linux-x64@0.33.1: @@ -1071,6 +1142,18 @@ packages: requiresBuild: true optionalDependencies: '@img/sharp-libvips-linux-x64': 1.0.0 + dev: true + optional: true + + /@img/sharp-linuxmusl-arm64@0.33.0: + resolution: {integrity: sha512-1QLbbN0zt+32eVrg7bb1lwtvEaZwlhEsY1OrijroMkwAqlHqFj6R33Y47s2XUv7P6Ie1PwCxK/uFnNqMnkd5kg==} + engines: {musl: '>=1.2.2', node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} + cpu: [arm64] + os: [linux] + requiresBuild: true + optionalDependencies: + '@img/sharp-libvips-linuxmusl-arm64': 1.0.0 + dev: false optional: true /@img/sharp-linuxmusl-arm64@0.33.1: @@ -1081,6 +1164,18 @@ packages: requiresBuild: true optionalDependencies: '@img/sharp-libvips-linuxmusl-arm64': 1.0.0 + dev: true + optional: true + + /@img/sharp-linuxmusl-x64@0.33.0: + resolution: {integrity: sha512-CecqgB/CnkvCWFhmfN9ZhPGMLXaEBXl4o7WtA6U3Ztrlh/s7FUKX4vNxpMSYLIrWuuzjiaYdfU3+Tdqh1xaHfw==} + engines: {musl: '>=1.2.2', node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} + cpu: [x64] + os: [linux] + requiresBuild: true + optionalDependencies: + '@img/sharp-libvips-linuxmusl-x64': 1.0.0 + dev: false optional: true /@img/sharp-linuxmusl-x64@0.33.1: @@ -1091,6 +1186,17 @@ packages: requiresBuild: true optionalDependencies: '@img/sharp-libvips-linuxmusl-x64': 1.0.0 + dev: true + optional: true + + /@img/sharp-wasm32@0.33.0: + resolution: {integrity: sha512-Hn4js32gUX9qkISlemZBUPuMs0k/xNJebUNl/L6djnU07B/HAA2KaxRVb3HvbU5fL242hLOcp0+tR+M8dvJUFw==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} + cpu: [wasm32] + requiresBuild: true + dependencies: + '@emnapi/runtime': 0.44.0 + dev: false optional: true /@img/sharp-wasm32@0.33.1: @@ -1100,6 +1206,16 @@ packages: requiresBuild: true dependencies: '@emnapi/runtime': 0.44.0 + dev: true + optional: true + + /@img/sharp-win32-ia32@0.33.0: + resolution: {integrity: sha512-5HfcsCZi3l5nPRF2q3bllMVMDXBqEWI3Q8KQONfzl0TferFE5lnsIG0A1YrntMAGqvkzdW6y1Ci1A2uTvxhfzg==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} + cpu: [ia32] + os: [win32] + requiresBuild: true + dev: false optional: true /@img/sharp-win32-ia32@0.33.1: @@ -1108,6 +1224,16 @@ packages: cpu: [ia32] os: [win32] requiresBuild: true + dev: true + optional: true + + /@img/sharp-win32-x64@0.33.0: + resolution: {integrity: sha512-i3DtP/2ce1yKFj4OzOnOYltOEL/+dp4dc4dJXJBv6god1AFTcmkaA99H/7SwOmkCOBQkbVvA3lCGm3/5nDtf9Q==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0', yarn: '>=3.2.0'} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: false optional: true /@img/sharp-win32-x64@0.33.1: @@ -1116,6 +1242,7 @@ packages: cpu: [x64] os: [win32] requiresBuild: true + dev: true optional: true /@internationalized/date@3.5.1: @@ -5164,6 +5291,36 @@ packages: has-property-descriptors: 1.0.1 dev: true + /sharp@0.33.0: + resolution: {integrity: sha512-99DZKudjm/Rmz+M0/26t4DKpXyywAOJaayGS9boEn7FvgtG0RYBi46uPE2c+obcJRtA3AZa0QwJot63gJQ1F0Q==} + engines: {libvips: '>=8.15.0', node: ^18.17.0 || ^20.3.0 || >=21.0.0} + requiresBuild: true + dependencies: + color: 4.2.3 + detect-libc: 2.0.2 + semver: 7.5.4 + optionalDependencies: + '@img/sharp-darwin-arm64': 0.33.0 + '@img/sharp-darwin-x64': 0.33.0 + '@img/sharp-libvips-darwin-arm64': 1.0.0 + '@img/sharp-libvips-darwin-x64': 1.0.0 + '@img/sharp-libvips-linux-arm': 1.0.0 + '@img/sharp-libvips-linux-arm64': 1.0.0 + '@img/sharp-libvips-linux-s390x': 1.0.0 + '@img/sharp-libvips-linux-x64': 1.0.0 + '@img/sharp-libvips-linuxmusl-arm64': 1.0.0 + '@img/sharp-libvips-linuxmusl-x64': 1.0.0 + '@img/sharp-linux-arm': 0.33.0 + '@img/sharp-linux-arm64': 0.33.0 + '@img/sharp-linux-s390x': 0.33.0 + '@img/sharp-linux-x64': 0.33.0 + '@img/sharp-linuxmusl-arm64': 0.33.0 + '@img/sharp-linuxmusl-x64': 0.33.0 + '@img/sharp-wasm32': 0.33.0 + '@img/sharp-win32-ia32': 0.33.0 + '@img/sharp-win32-x64': 0.33.0 + dev: false + /sharp@0.33.1: resolution: {integrity: sha512-iAYUnOdTqqZDb3QjMneBKINTllCJDZ3em6WaWy7NPECM4aHncvqHRm0v0bN9nqJxMiwamv5KIdauJ6lUzKDpTQ==} engines: {libvips: '>=8.15.0', node: ^18.17.0 || ^20.3.0 || >=21.0.0} @@ -5192,6 +5349,7 @@ packages: '@img/sharp-wasm32': 0.33.1 '@img/sharp-win32-ia32': 0.33.1 '@img/sharp-win32-x64': 0.33.1 + dev: true /shebang-command@2.0.0: resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==}