diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..2f54ef0f --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +node_modules/ +.env +dist diff --git a/README.md b/README.md deleted file mode 100644 index 4ef80b30..00000000 --- a/README.md +++ /dev/null @@ -1,42 +0,0 @@ -# ๐Ÿผ ํŒ๋‹ค๋งˆ์ผ“ ํ”„๋กœ์ ํŠธ - -> _์ด ์ €์žฅ์†Œ๋Š” ํŒ๋‹ค๋งˆ์ผ“ ํ”„๋กœ์ ํŠธ์˜ ๋ฐฑ์—”๋“œ ์ฝ”๋“œ๋ฅผ ๊ด€๋ฆฌํ•˜๋Š” ๊ณณ์ž…๋‹ˆ๋‹ค. ํ”„๋กœ์ ํŠธ๋ฅผ ํด๋ก ํ•˜์—ฌ ๊ฐœ๋ฐœ ํ™˜๊ฒฝ์„ ์„ค์ •ํ•˜๊ณ , ๊ฐ ๋ธŒ๋žœ์น˜์—์„œ ํ•ด๋‹น ์Šคํ”„๋ฆฐํŠธ ๋ฏธ์…˜์„ ์ˆ˜ํ–‰ํ•ด ์ฃผ์„ธ์š”!_ ๐Ÿ› ๏ธ - -## ์†Œ๊ฐœ - -์•ˆ๋…•ํ•˜์„ธ์š”! ํŒ๋‹ค๋งˆ์ผ“ ํ”„๋กœ์ ํŠธ์— ์˜ค์‹  ๊ฒƒ์„ ํ™˜์˜ํ•ฉ๋‹ˆ๋‹ค! ๐Ÿฅณ -ํŒ๋‹ค๋งˆ์ผ“์€ ๋”ฐ๋œปํ•œ ์ค‘๊ณ ๊ฑฐ๋ž˜๋ฅผ ์œ„ํ•œ ์ปค๋ฎค๋‹ˆํ‹ฐ ํ”Œ๋žซํผ์ด์—์š”. ์—ฌ๋Ÿฌ๋ถ„์€ ์ด๊ณณ์—์„œ ์ƒํ’ˆ์„ ๋“ฑ๋กํ•˜๊ณ , ๋‹ค๋ฅธ ์‚ฌ์šฉ์ž๋“ค๊ณผ ์†Œํ†ตํ•˜๋ฉฐ, ์ž์œ ๋กญ๊ฒŒ ์ด์•ผ๊ธฐ๋ฅผ ๋‚˜๋ˆŒ ์ˆ˜ ์žˆ์–ด์š”. ๋งค์ฃผ ์Šคํ”„๋ฆฐํŠธ ๋ฏธ์…˜์„ ํ†ตํ•ด ๊ธฐ๋Šฅ์„ ํ•˜๋‚˜์”ฉ ๋งŒ๋“ค์–ด ๊ฐ€๋ฉฐ ์„ฑ์žฅํ•ด ๋‚˜๊ฐ€๋Š” ์—ฌ์ •์„ ํ•จ๊ป˜ํ•ด์š”. ๐Ÿš€ - -![PandaMarket](https://github.com/user-attachments/assets/3784b99f-73c9-4349-a9a9-92b2a7563574) -_์œ„ ์ด๋ฏธ์ง€๋Š” ํŒ๋‹ค๋งˆ์ผ“์˜ ๋Œ€ํ‘œ ์ด๋ฏธ์ง€์ž…๋‹ˆ๋‹ค. ํ”„๋กœ์ ํŠธ๊ฐ€ ์ง„ํ–‰๋จ์— ๋”ฐ๋ผ ๋” ๋งŽ์€ ์ด๋ฏธ์ง€๋ฅผ ์ถ”๊ฐ€ํ•  ์˜ˆ์ •์ด์—์š”!_ ๐Ÿ“ธ - -## ์Šคํ”„๋ฆฐํŠธ ๋ฏธ์…˜์ด๋ž€? ๐Ÿค” - -์Šคํ”„๋ฆฐํŠธ ๋ฏธ์…˜์€ **ํ•˜๋‚˜์˜ ๊ฐœ์ธ ํ”„๋กœ์ ํŠธ๋ฅผ ๊ธธ๊ฒŒ ์ง„ํ–‰ํ•˜๋ฉด์„œ, ๊ทธ ๊ณผ์ •์—์„œ ์ฃผ๊ธฐ์ ์œผ๋กœ ํ”ผ๋“œ๋ฐฑ์„ ๋ฐ›์„ ์ˆ˜ ์žˆ๋Š” ์‹œ์Šคํ…œ**์ด์—์š”. ๊ฐ ์Šคํ”„๋ฆฐํŠธ๋งˆ๋‹ค ๋ฐฐ์šด ์ด๋ก ์„ ์ ์šฉํ•ด ๋ณด๊ณ , **๋ฉ˜ํ† ๋‹˜๊ป˜ ์ฝ”๋“œ ๋ฆฌ๋ทฐ๋ฅผ ๋ฐ›์•„๊ฐ€๋ฉฐ ์‹ค๋ ฅ์„ ์‘ฅ์‘ฅ ํ‚ค์›Œ๊ฐˆ ์ˆ˜ ์žˆ๋Š” ์ค‘์š”ํ•œ ๊ฐœ์ธ ๊ณผ์ œ**๋ž๋‹ˆ๋‹ค. ๐Ÿ’ช - -## ์ฃผ์š” ๊ธฐ๋Šฅ โœจ - -1. **์ƒํ’ˆ ๋“ฑ๋ก**: ๋‚ด๊ฐ€ ๊ฐ€์ง„ ๋ฌผ๊ฑด์„ ์˜ฌ๋ฆฌ๊ณ , ์‚ฌ์ง„๊ณผ ์„ค๋ช…์„ ์ถ”๊ฐ€ํ•ด ์ง์ ‘ ํŒ๋งคํ•  ์ˆ˜ ์žˆ์–ด์š”! -2. **๋ฌธ์˜ ๋Œ“๊ธ€**: ์ƒํ’ˆ์— ๋Œ€ํ•œ ๊ถ๊ธˆํ•œ ์ ์ด๋‚˜ ์˜๊ฒฌ์„ ์ž์œ ๋กญ๊ฒŒ ๋‚จ๊ธธ ์ˆ˜ ์žˆ๋‹ต๋‹ˆ๋‹ค. ๐Ÿ“ -3. **์ž์œ ๊ฒŒ์‹œํŒ**: ๋‹ค์–‘ํ•œ ์ฃผ์ œ๋กœ ์นœ๊ตฌ๋“ค๊ณผ ์ด์•ผ๊ธฐ๋ฅผ ๋‚˜๋ˆ„๊ณ , ์ •๋ณด๋ฅผ ๊ณต์œ ํ•  ์ˆ˜ ์žˆ๋Š” ๊ณต๊ฐ„์ด์—์š”! ๐Ÿ—ฃ๏ธ - -## ํ”„๋กœ์ ํŠธ ๋ธŒ๋žœ์น˜ ๊ตฌ์กฐ ๐Ÿ—๏ธ - -ํ”„๋กœ์ ํŠธ๋Š” ๋‹จ๊ณ„๋ณ„๋กœ ๋‚˜๋‰˜์–ด ์žˆ๊ณ , ๊ฐ ์Šคํ”„๋ฆฐํŠธ ๋ฏธ์…˜์— ๋งž๋Š” ๋ธŒ๋žœ์น˜๊ฐ€ ์žˆ์–ด์š”. ๊ฐ ๋ธŒ๋žœ์น˜๋ฅผ ํ†ตํ•ด ์ฒด๊ณ„์ ์œผ๋กœ ๊ฐœ๋ฐœํ•˜๋ฉฐ ํ•™์Šตํ•  ์ˆ˜ ์žˆ์–ด์š”. ๐ŸŽฏ - -### ๋ธŒ๋žœ์น˜ ์„ค๋ช… - -1. **node (part1): ์Šคํ”„๋ฆฐํŠธ ๋ฏธ์…˜ 4์˜ BE ์š”๊ตฌ์‚ฌํ•ญ** - - - ๋ฐฑ์—”๋“œ ์„œ๋ฒ„ ์„ค์ •๊ณผ ๊ฐ„๋‹จํ•œ API ๊ตฌํ˜„์„ ์œ„ํ•œ Express.js ํ”„๋กœ์ ํŠธ์˜ ์ดˆ๊ธฐ ์„ธํŒ…์ด ํฌํ•จ๋ผ์š”. - - **์Šคํ”„๋ฆฐํŠธ ๋ฏธ์…˜ 4**์˜ ๋ฐฑ์—”๋“œ ๋‚ด์šฉ์ด ํฌํ•จ๋ผ ์žˆ์–ด์š”. - -2. **express (part2~4): ์Šคํ”„๋ฆฐํŠธ ๋ฏธ์…˜ 6 ~ 12์˜ BE ์š”๊ตฌ์‚ฌํ•ญ** - - Express.js๋ฅผ ์ด์šฉํ•ด ๋” ๋ณต์žกํ•œ ๋ฐฑ์—”๋“œ ๊ธฐ๋Šฅ์„ ๊ตฌํ˜„ํ•˜๋Š” ๋ฏธ์…˜์ž…๋‹ˆ๋‹ค. ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์—ฐ๋™, ์ธ์ฆ ๋ฐ ๊ถŒํ•œ ๊ด€๋ฆฌ ๋“ฑ ๊ณ ๊ธ‰ API ์„ค๊ณ„๊ฐ€ ํฌํ•จ๋ฉ๋‹ˆ๋‹ค. - - **์Šคํ”„๋ฆฐํŠธ ๋ฏธ์…˜ 6๋ถ€ํ„ฐ 12๊นŒ์ง€**์˜ ๋ฐฑ์—”๋“œ ๋‚ด์šฉ์ด ๋“ค์–ด ์žˆ์–ด์š”. - -> _์Šคํ”„๋ฆฐํŠธ ๋ฏธ์…˜ ๋‚ด ํ”„๋ก ํŠธ์—”๋“œ ์š”๊ตฌ์‚ฌํ•ญ์€ [ํ”„๋ก ํŠธ์—”๋“œ ๋ ˆํฌ์ง€ํ† ๋ฆฌ](https://github.com/codeit-sprint-fullstack/2-Sprint-mission-FE)์˜ ๋ธŒ๋žœ์น˜์—์„œ ๊ด€๋ฆฌํ•ด์ฃผ์„ธ์š”_ - ---- - -๋ณธ ํ”„๋กœ์ ํŠธ๋Š” [์ฝ”๋“œ์ž‡](https://www.codeit.kr)์˜ ์†Œ์œ ์ด๋ฉฐ, ๊ต์œก ๋ชฉ์ ์œผ๋กœ๋งŒ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค. ยฉ 2024 Codeit. All rights reserved. diff --git a/sprint11/.vscode/settings.json b/sprint11/.vscode/settings.json new file mode 100644 index 00000000..e69de29b diff --git a/sprint11/README sprint11.md b/sprint11/README sprint11.md new file mode 100644 index 00000000..4add74e8 --- /dev/null +++ b/sprint11/README sprint11.md @@ -0,0 +1,37 @@ +# ์Šคํ”„๋ฆฐํŠธ ๋ฏธ์…˜ 11 ์‹œ์•ˆ ํ™•์ธ + +์•„๋ž˜ ๋งํฌ๋ฅผ ํ†ตํ•ด ๊ฐ•์˜ ํ•™์Šต ํ›„ ๋งŒ๋“ค์–ด๋ด์•ผ ํ•  ์‹ค์Šต ๊ณผ์ œ ๋””์ž์ธ์„ ํ™•์ธํ•ด ๋ณด์„ธ์š” + +- [์Šคํ”„๋ฆฐํŠธ ๋ฏธ์…˜ 11 Figma ๋””์ž์ธ ํ™•์ธํ•˜๋Ÿฌ ๋ฐ”๋กœ๊ฐ€๊ธฐ](https://www.figma.com/design/EWfmnBJU3fdkeHKyYBQW6L/%5B%EC%8A%A4%ED%94%84%EB%A6%B0%ED%84%B0%EC%9A%A9%5D-%ED%8C%90%EB%8B%A4%EB%A7%88%EC%BC%93?node-id=16034-14726&t=QOkQFFiW9383Kxlw-1) + +## ์š”๊ตฌ์‚ฌํ•ญ +### ๊ธฐ๋ณธ ์š”๊ตฌ์‚ฌํ•ญ +#### ๊ณตํ†ต + +- [x] Github์— ์œ„ํด๋ฆฌ ๋ฏธ์…˜ PR์„ ๋งŒ๋“ค์–ด ์ฃผ์„ธ์š”. +- [x] React ๋ฐ Express๋ฅผ ์‚ฌ์šฉํ•ด ์ง„ํ–‰ํ•ฉ๋‹ˆ๋‹ค. +- [x] TypeScript๋ฅผ ํ™œ์šฉํ•ด ํ”„๋กœ์ ํŠธ์˜ ํ•„์š”ํ•œ ๊ณณ์— ํƒ€์ž…์„ ๋ช…์‹œํ•ด ์ฃผ์„ธ์š”. +- [x] any ํƒ€์ž…์˜ ์‚ฌ์šฉ์€ ์ตœ์†Œํ™”ํ•ด ์ฃผ์„ธ์š”. +- [x] ๋ณต์žกํ•œ ๊ฐ์ฒด ๊ตฌ์กฐ๋‚˜ ๋ฐฐ์—ด ๊ตฌ์กฐ๋ฅผ ๊ฐ€์ง„ ๋ณ€์ˆ˜์— ์ธํ„ฐํŽ˜์ด์Šค ๋˜๋Š” ํƒ€์ž… ๋ณ„์นญ์„ ์‚ฌ์šฉํ•˜์„ธ์š”. +- [x] Union, Intersection, Generics ๋“ฑ ๊ณ ๊ธ‰ ํƒ€์ž…์„ ์ ๊ทน์ ์œผ๋กœ ์‚ฌ์šฉํ•ด ์ฃผ์„ธ์š”. +- [x] ํƒ€์ž… ๋ณ„์นญ ๋˜๋Š” ์œ ํ‹ธ๋ฆฌํ‹ฐ ํƒ€์ž…์„ ์‚ฌ์šฉํ•ด ํƒ€์ž… ๋ณต์žก์„ฑ์„ ์ค„์—ฌ์ฃผ์„ธ์š”. +- [x] ํƒ€์ž…์Šคํฌ๋ฆฝํŠธ ์ปดํŒŒ์ผ๋Ÿฌ๊ฐ€ ์—๋Ÿฌ ์—†์ด ์ •์ƒ์ ์œผ๋กœ ์ž‘๋™ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. + + + +#### ํ”„๋ก ํŠธ์—”๋“œ + +- [x] ๊ธฐ์กด React(ํ˜น์€ Next) ํ”„๋กœ์ ํŠธ๋ฅผ ํƒ€์ž…์Šคํฌ๋ฆฝํŠธ ํ”„๋กœ์ ํŠธ๋กœ ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜ ํ•ด์ฃผ์„ธ์š”. +- [x] TypeScript๋ฅผ ํ™œ์šฉํ•ด ํ”„๋กœ์ ํŠธ์˜ ํ•„์š”ํ•œ ๊ณณ์— ํƒ€์ž…์„ ๋ช…์‹œํ•ด ์ฃผ์„ธ์š”. + + + +#### ๋ฐฑ์—”๋“œ + +- [x] ๊ธฐ์กด Express.js ํ”„๋กœ์ ํŠธ๋ฅผ ํƒ€์ž…์Šคํฌ๋ฆฝํŠธ ํ”„๋กœ์ ํŠธ๋กœ ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜ ํ•ด์ฃผ์„ธ์š”. +- [x] tsconfig.json ํŒŒ์ผ์„ ์ƒ์„ฑํ•˜๊ณ , ํ•„์š”ํ•œ ์ปดํŒŒ์ผ๋Ÿฌ ์˜ต์…˜์„ ์„ค์ •ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. (์˜ˆ: outDir). +- [x] TypeScript ๊ด€๋ จ ๋ช…๋ น์–ด๋ฅผ package.json์— ์„ค์ •ํ•ด ์ฃผ์„ธ์š”. (์˜ˆ: ๋นŒ๋“œ ๋ฐ ๊ฐœ๋ฐœ ์„œ๋ฒ„ ์‹คํ–‰ ๋ช…๋ น์–ด). +- [x] ts-node์™€ nodemon์„ ์‚ฌ์šฉํ•˜์—ฌ ๊ฐœ๋ฐœ ํ™˜๊ฒฝ์„ ๊ตฌ์„ฑํ•ฉ๋‹ˆ๋‹ค. +- [x] nodemon๊ณผ ํ•จ๊ป˜ ts-node๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ . ts ํŒŒ์ผ์ด ๋ณ€๊ฒฝ๋  ๋•Œ ์„œ๋ฒ„๋ฅผ ์ž๋™์œผ๋กœ ์žฌ์‹œ์ž‘ํ•˜๋„๋ก ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค. +- [x] Mongoose๋‚˜ Prisma ๋“ฑ ORM์„ ์‚ฌ์šฉํ•˜๋Š” ๊ฒฝ์šฐ, ๋ชจ๋ธ์— ๋Œ€ํ•œ ์ธํ„ฐํŽ˜์ด์Šค ๋˜๋Š” ํƒ€์ž…์„ ์ •์˜ํ•ฉ๋‹ˆ๋‹ค. +- [x] ํ•„์š”ํ•œ ๊ฒฝ์šฐ, declare๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ํƒ€์ž…์„ ์˜ค๋ฒ„๋ผ์ด๋“œํ•˜๊ฑฐ๋‚˜ ํ™•์žฅํ•ฉ๋‹ˆ๋‹ค. diff --git a/sprint11/http/test.http b/sprint11/http/test.http new file mode 100644 index 00000000..4ccf9f11 --- /dev/null +++ b/sprint11/http/test.http @@ -0,0 +1,10 @@ +GET http://localhost:3100/uploads/1731471235283-รฌยธย„รฌยธย„ รฌย†ยœรซยญย‰รฌยนย˜ รฌย‹ยœรฌย ยˆ.png + +### +GET http://localhost:3100 + +### +GET http://localhost:3100/products?page=1&pageSize=10 + +### +GET http://localhost:3100/articles?page=1&pageSize=10 diff --git a/sprint11/package-lock.json b/sprint11/package-lock.json new file mode 100644 index 00000000..6b9ff87d --- /dev/null +++ b/sprint11/package-lock.json @@ -0,0 +1,3976 @@ +{ + "name": "sprint11", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "sprint11", + "version": "1.0.0", + "dependencies": { + "@prisma/client": "^5.22.0", + "bcrypt": "^5.1.1", + "cookie-parser": "^1.4.7", + "cors": "^2.8.5", + "express": "^4.21.1", + "express-jwt": "^8.5.1", + "is-email": "^1.0.2", + "is-uuid": "^1.0.2", + "jsonwebtoken": "^9.0.2", + "morgan": "^1.10.0", + "multer": "^1.4.5-lts.1", + "passport": "^0.7.0", + "passport-google-oauth20": "^2.0.0", + "passport-jwt": "^4.0.1", + "passport-local": "^1.0.0", + "path": "^0.12.7", + "superstruct": "^2.0.2", + "url": "^0.11.4" + }, + "devDependencies": { + "@types/bcrypt": "^5.0.2", + "@types/cookie-parser": "^1.4.8", + "@types/cors": "^2.8.17", + "@types/express": "^5.0.0", + "@types/is-email": "^1.0.0", + "@types/is-uuid": "^1.0.2", + "@types/morgan": "^1.9.9", + "@types/multer": "^1.4.12", + "@types/passport": "^1.0.17", + "@types/passport-google-oauth20": "^2.0.16", + "@types/passport-jwt": "^4.0.1", + "eslint": "^9.16.0", + "nodemon": "^3.0.1", + "prisma": "^5.20.0", + "ts-node": "^10.9.2", + "typescript": "^5.7.2" + } + }, + "node_modules/@cspotcode/source-map-support": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "0.3.9" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.1.tgz", + "integrity": "sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", + "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/config-array": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.19.1.tgz", + "integrity": "sha512-fo6Mtm5mWyKjA/Chy1BYTdn5mGJoDNjC7C64ug20ADsRDGrA85bN3uK3MaKbeRkRuuIEAR5N33Jr1pbm411/PA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/object-schema": "^2.1.5", + "debug": "^4.3.1", + "minimatch": "^3.1.2" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/config-array/node_modules/debug": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/@eslint/config-array/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@eslint/core": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.9.1.tgz", + "integrity": "sha512-GuUdqkyyzQI5RMIWkHhvTWLCyLo1jNK3vzkSyaExH5kHPDHcuL2VOpHjmMY+y3+NC69qAKToBqldTBgYeLSr9Q==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.2.0.tgz", + "integrity": "sha512-grOjVNN8P3hjJn/eIETF1wwd12DdnwFDoyceUJLYYdkpbwq3nLi+4fqrTAONx7XDALqlL220wC/RHSC/QTI/0w==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^10.0.1", + "globals": "^14.0.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/debug": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/@eslint/eslintrc/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@eslint/js": { + "version": "9.16.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.16.0.tgz", + "integrity": "sha512-tw2HxzQkrbeuvyj1tG2Yqq+0H9wGoI2IMk4EOsQeX+vmd75FtJAzf+gTA69WF+baUKRYQ3x2kbLE08js5OsTVg==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/object-schema": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.5.tgz", + "integrity": "sha512-o0bhxnL89h5Bae5T318nFoFzGy+YE5i/gGkoPAgkmTVdRKTiv3p8JHevPiPaMwoloKfEiiaHlawCqaZMqRm+XQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.4.tgz", + "integrity": "sha512-zSkKow6H5Kdm0ZUQUB2kV5JIXqoG0+uH5YADhaEHswm664N9Db8dXSi0nMJpacpMf+MyyglF1vnZohpEg5yUtg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "levn": "^0.4.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@humanfs/core": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", + "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.6", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz", + "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/core": "^0.19.1", + "@humanwhocodes/retry": "^0.3.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz", + "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/retry": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.1.tgz", + "integrity": "sha512-c7hNEllBlenFTHBky65mhq8WD2kbN9Q6gk0bTk8lSBvc554jpXSkST1iePudpt7+A/AQvuHs9EMqjHDXMY1lrA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", + "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "node_modules/@mapbox/node-pre-gyp": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.11.tgz", + "integrity": "sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==", + "license": "BSD-3-Clause", + "dependencies": { + "detect-libc": "^2.0.0", + "https-proxy-agent": "^5.0.0", + "make-dir": "^3.1.0", + "node-fetch": "^2.6.7", + "nopt": "^5.0.0", + "npmlog": "^5.0.1", + "rimraf": "^3.0.2", + "semver": "^7.3.5", + "tar": "^6.1.11" + }, + "bin": { + "node-pre-gyp": "bin/node-pre-gyp" + } + }, + "node_modules/@prisma/client": { + "version": "5.22.0", + "resolved": "https://registry.npmjs.org/@prisma/client/-/client-5.22.0.tgz", + "integrity": "sha512-M0SVXfyHnQREBKxCgyo7sffrKttwE6R8PMq330MIUF0pTwjUhLbW84pFDlf06B27XyCR++VtjugEnIHdr07SVA==", + "hasInstallScript": true, + "license": "Apache-2.0", + "engines": { + "node": ">=16.13" + }, + "peerDependencies": { + "prisma": "*" + }, + "peerDependenciesMeta": { + "prisma": { + "optional": true + } + } + }, + "node_modules/@prisma/debug": { + "version": "5.22.0", + "resolved": "https://registry.npmjs.org/@prisma/debug/-/debug-5.22.0.tgz", + "integrity": "sha512-AUt44v3YJeggO2ZU5BkXI7M4hu9BF2zzH2iF2V5pyXT/lRTyWiElZ7It+bRH1EshoMRxHgpYg4VB6rCM+mG5jQ==", + "devOptional": true, + "license": "Apache-2.0" + }, + "node_modules/@prisma/engines": { + "version": "5.22.0", + "resolved": "https://registry.npmjs.org/@prisma/engines/-/engines-5.22.0.tgz", + "integrity": "sha512-UNjfslWhAt06kVL3CjkuYpHAWSO6L4kDCVPegV6itt7nD1kSJavd3vhgAEhjglLJJKEdJ7oIqDJ+yHk6qO8gPA==", + "devOptional": true, + "hasInstallScript": true, + "license": "Apache-2.0", + "dependencies": { + "@prisma/debug": "5.22.0", + "@prisma/engines-version": "5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2", + "@prisma/fetch-engine": "5.22.0", + "@prisma/get-platform": "5.22.0" + } + }, + "node_modules/@prisma/engines-version": { + "version": "5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2", + "resolved": "https://registry.npmjs.org/@prisma/engines-version/-/engines-version-5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2.tgz", + "integrity": "sha512-2PTmxFR2yHW/eB3uqWtcgRcgAbG1rwG9ZriSvQw+nnb7c4uCr3RAcGMb6/zfE88SKlC1Nj2ziUvc96Z379mHgQ==", + "devOptional": true, + "license": "Apache-2.0" + }, + "node_modules/@prisma/fetch-engine": { + "version": "5.22.0", + "resolved": "https://registry.npmjs.org/@prisma/fetch-engine/-/fetch-engine-5.22.0.tgz", + "integrity": "sha512-bkrD/Mc2fSvkQBV5EpoFcZ87AvOgDxbG99488a5cexp5Ccny+UM6MAe/UFkUC0wLYD9+9befNOqGiIJhhq+HbA==", + "devOptional": true, + "license": "Apache-2.0", + "dependencies": { + "@prisma/debug": "5.22.0", + "@prisma/engines-version": "5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2", + "@prisma/get-platform": "5.22.0" + } + }, + "node_modules/@prisma/get-platform": { + "version": "5.22.0", + "resolved": "https://registry.npmjs.org/@prisma/get-platform/-/get-platform-5.22.0.tgz", + "integrity": "sha512-pHhpQdr1UPFpt+zFfnPazhulaZYCUqeIcPpJViYoq9R+D/yw4fjE+CtnsnKzPYm0ddUbeXUzjGVGIRVgPDCk4Q==", + "devOptional": true, + "license": "Apache-2.0", + "dependencies": { + "@prisma/debug": "5.22.0" + } + }, + "node_modules/@tsconfig/node10": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.11.tgz", + "integrity": "sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tsconfig/node12": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tsconfig/node14": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tsconfig/node16": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", + "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/bcrypt": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@types/bcrypt/-/bcrypt-5.0.2.tgz", + "integrity": "sha512-6atioO8Y75fNcbmj0G7UjI9lXN2pQ/IGJ2FWT4a/btd0Lk9lQalHLKhkgKVZ3r+spnmWUKfbMi1GEe9wyHQfNQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/body-parser": { + "version": "1.19.5", + "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.5.tgz", + "integrity": "sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/connect": "*", + "@types/node": "*" + } + }, + "node_modules/@types/connect": { + "version": "3.4.38", + "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz", + "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/cookie-parser": { + "version": "1.4.8", + "resolved": "https://registry.npmjs.org/@types/cookie-parser/-/cookie-parser-1.4.8.tgz", + "integrity": "sha512-l37JqFrOJ9yQfRQkljb41l0xVphc7kg5JTjjr+pLRZ0IyZ49V4BQ8vbF4Ut2C2e+WH4al3xD3ZwYwIUfnbT4NQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@types/express": "*" + } + }, + "node_modules/@types/cors": { + "version": "2.8.17", + "resolved": "https://registry.npmjs.org/@types/cors/-/cors-2.8.17.tgz", + "integrity": "sha512-8CGDvrBj1zgo2qE+oS3pOCyYNqCPryMWY2bGfwA0dcfopWGgxs+78df0Rs3rc9THP4JkOhLsAa+15VdpAqkcUA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/estree": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", + "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/express": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@types/express/-/express-5.0.0.tgz", + "integrity": "sha512-DvZriSMehGHL1ZNLzi6MidnsDhUZM/x2pRdDIKdwbUNqqwHxMlRdkxtn6/EPKyqKpHqTl/4nRZsRNLpZxZRpPQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/body-parser": "*", + "@types/express-serve-static-core": "^5.0.0", + "@types/qs": "*", + "@types/serve-static": "*" + } + }, + "node_modules/@types/express-serve-static-core": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-5.0.2.tgz", + "integrity": "sha512-vluaspfvWEtE4vcSDlKRNer52DvOGrB2xv6diXy6UKyKW0lqZiWHGNApSyxOv+8DE5Z27IzVvE7hNkxg7EXIcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*", + "@types/qs": "*", + "@types/range-parser": "*", + "@types/send": "*" + } + }, + "node_modules/@types/http-errors": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.4.tgz", + "integrity": "sha512-D0CFMMtydbJAegzOyHjtiKPLlvnm3iTZyZRSZoLq2mRhDdmLfIWOCYPfQJ4cu2erKghU++QvjcUjp/5h7hESpA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/is-email": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@types/is-email/-/is-email-1.0.0.tgz", + "integrity": "sha512-b/76ooKpYY/b+oPrOuc/pmM5eag+ZlzctPsKcRCIKs+TFzh0FL58OeXtSPkbXt3uKNK84YCKHmjnoREtwve5Kg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/is-uuid": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@types/is-uuid/-/is-uuid-1.0.2.tgz", + "integrity": "sha512-S+gWwUEApOjGCCO5LQrft4kciGWatvB0LyiyWTXSlDkclZBr6glSgstET573GsC5QPFdw2NeOw2PHOOMuTDFSQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/jsonwebtoken": { + "version": "9.0.7", + "resolved": "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-9.0.7.tgz", + "integrity": "sha512-ugo316mmTYBl2g81zDFnZ7cfxlut3o+/EQdaP7J8QN2kY6lJ22hmQYCK5EHcJHbrW+dkCGSCPgbG8JtYj6qSrg==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/mime": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.5.tgz", + "integrity": "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/morgan": { + "version": "1.9.9", + "resolved": "https://registry.npmjs.org/@types/morgan/-/morgan-1.9.9.tgz", + "integrity": "sha512-iRYSDKVaC6FkGSpEVVIvrRGw0DfJMiQzIn3qr2G5B3C//AWkulhXgaBd7tS9/J79GWSYMTHGs7PfI5b3Y8m+RQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/multer": { + "version": "1.4.12", + "resolved": "https://registry.npmjs.org/@types/multer/-/multer-1.4.12.tgz", + "integrity": "sha512-pQ2hoqvXiJt2FP9WQVLPRO+AmiIm/ZYkavPlIQnx282u4ZrVdztx0pkh3jjpQt0Kz+YI0YhSG264y08UJKoUQg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/express": "*" + } + }, + "node_modules/@types/node": { + "version": "22.10.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.2.tgz", + "integrity": "sha512-Xxr6BBRCAOQixvonOye19wnzyDiUtTeqldOOmj3CkeblonbccA12PFwlufvRdrpjXxqnmUaeiU5EOA+7s5diUQ==", + "license": "MIT", + "dependencies": { + "undici-types": "~6.20.0" + } + }, + "node_modules/@types/oauth": { + "version": "0.9.6", + "resolved": "https://registry.npmjs.org/@types/oauth/-/oauth-0.9.6.tgz", + "integrity": "sha512-H9TRCVKBNOhZZmyHLqFt9drPM9l+ShWiqqJijU1B8P3DX3ub84NjxDuy+Hjrz+fEca5Kwip3qPMKNyiLgNJtIA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/passport": { + "version": "1.0.17", + "resolved": "https://registry.npmjs.org/@types/passport/-/passport-1.0.17.tgz", + "integrity": "sha512-aciLyx+wDwT2t2/kJGJR2AEeBz0nJU4WuRX04Wu9Dqc5lSUtwu0WERPHYsLhF9PtseiAMPBGNUOtFjxZ56prsg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/express": "*" + } + }, + "node_modules/@types/passport-google-oauth20": { + "version": "2.0.16", + "resolved": "https://registry.npmjs.org/@types/passport-google-oauth20/-/passport-google-oauth20-2.0.16.tgz", + "integrity": "sha512-ayXK2CJ7uVieqhYOc6k/pIr5pcQxOLB6kBev+QUGS7oEZeTgIs1odDobXRqgfBPvXzl0wXCQHftV5220czZCPA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/express": "*", + "@types/passport": "*", + "@types/passport-oauth2": "*" + } + }, + "node_modules/@types/passport-jwt": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@types/passport-jwt/-/passport-jwt-4.0.1.tgz", + "integrity": "sha512-Y0Ykz6nWP4jpxgEUYq8NoVZeCQPo1ZndJLfapI249g1jHChvRfZRO/LS3tqu26YgAS/laI1qx98sYGz0IalRXQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/jsonwebtoken": "*", + "@types/passport-strategy": "*" + } + }, + "node_modules/@types/passport-oauth2": { + "version": "1.4.17", + "resolved": "https://registry.npmjs.org/@types/passport-oauth2/-/passport-oauth2-1.4.17.tgz", + "integrity": "sha512-ODiAHvso6JcWJ6ZkHHroVp05EHGhqQN533PtFNBkg8Fy5mERDqsr030AX81M0D69ZcaMvhF92SRckEk2B0HYYg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/express": "*", + "@types/oauth": "*", + "@types/passport": "*" + } + }, + "node_modules/@types/passport-strategy": { + "version": "0.2.38", + "resolved": "https://registry.npmjs.org/@types/passport-strategy/-/passport-strategy-0.2.38.tgz", + "integrity": "sha512-GC6eMqqojOooq993Tmnmp7AUTbbQSgilyvpCYQjT+H6JfG/g6RGc7nXEniZlp0zyKJ0WUdOiZWLBZft9Yug1uA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/express": "*", + "@types/passport": "*" + } + }, + "node_modules/@types/qs": { + "version": "6.9.17", + "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.17.tgz", + "integrity": "sha512-rX4/bPcfmvxHDv0XjfJELTTr+iB+tn032nPILqHm5wbthUUUuVtNGGqzhya9XUxjTP8Fpr0qYgSZZKxGY++svQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/range-parser": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz", + "integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/send": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.4.tgz", + "integrity": "sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/mime": "^1", + "@types/node": "*" + } + }, + "node_modules/@types/serve-static": { + "version": "1.15.7", + "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.7.tgz", + "integrity": "sha512-W8Ym+h8nhuRwaKPaDw34QUkwsGi6Rc4yYqvKFo5rm2FUEhCFbzVWrxXUxuKK8TASjWsysJY0nsmNCGhCOIsrOw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/http-errors": "*", + "@types/node": "*", + "@types/send": "*" + } + }, + "node_modules/abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", + "license": "ISC" + }, + "node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "license": "MIT", + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/acorn": { + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz", + "integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/acorn-walk": { + "version": "8.3.4", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.4.tgz", + "integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "acorn": "^8.11.0" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "license": "MIT", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/agent-base/node_modules/debug": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/agent-base/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "license": "ISC", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/append-field": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/append-field/-/append-field-1.0.0.tgz", + "integrity": "sha512-klpgFSWLW1ZEs8svjfb7g4qWY0YS5imI82dTg+QahUvJ8YqAY0P10Uk8tTyh9ZGuYEZEMaeJYCF5BFuX552hsw==", + "license": "MIT" + }, + "node_modules/aproba": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz", + "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==", + "license": "ISC" + }, + "node_modules/are-we-there-yet": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz", + "integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==", + "deprecated": "This package is no longer supported.", + "license": "ISC", + "dependencies": { + "delegates": "^1.0.0", + "readable-stream": "^3.6.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/are-we-there-yet/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "license": "MIT", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true, + "license": "MIT" + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true, + "license": "Python-2.0" + }, + "node_modules/array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", + "license": "MIT" + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "license": "MIT" + }, + "node_modules/base64url": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/base64url/-/base64url-3.0.1.tgz", + "integrity": "sha512-ir1UPr3dkwexU7FdV8qBBbNDRUhMmIekYMFZfi+C/sLNnRESKPl23nB9b2pltqfOQNnGzsDdId90AEtG5tCx4A==", + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/basic-auth": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz", + "integrity": "sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==", + "license": "MIT", + "dependencies": { + "safe-buffer": "5.1.2" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/basic-auth/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "license": "MIT" + }, + "node_modules/bcrypt": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/bcrypt/-/bcrypt-5.1.1.tgz", + "integrity": "sha512-AGBHOG5hPYZ5Xl9KXzU5iKq9516yEmvCKDg3ecP5kX2aB6UqTeXZxk2ELnDgDm6BQSMlLt9rDB4LoSMx0rYwww==", + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "@mapbox/node-pre-gyp": "^1.0.11", + "node-addon-api": "^5.0.0" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/binary-extensions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/body-parser": { + "version": "1.20.3", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz", + "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==", + "license": "MIT", + "dependencies": { + "bytes": "3.1.2", + "content-type": "~1.0.5", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.13.0", + "raw-body": "2.5.2", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==", + "license": "BSD-3-Clause" + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "license": "MIT" + }, + "node_modules/busboy": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", + "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", + "dependencies": { + "streamsearch": "^1.1.0" + }, + "engines": { + "node": ">=10.16.0" + } + }, + "node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/call-bind": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", + "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.0", + "es-define-property": "^1.0.0", + "get-intrinsic": "^1.2.4", + "set-function-length": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.1.tgz", + "integrity": "sha512-BhYE+WDaywFg2TBWYNXAE+8B1ATnThNBqXHP5nQu0jWJdVvY2hvkpyB3qOmtmDePiS5/BDQ8wASEWGMWRG148g==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.2.tgz", + "integrity": "sha512-0lk0PHFe/uz0vl527fG9CgdE9WdafjDbCXvBbs+LUv000TVt2Jjhqbs4Jwm8gz070w8xXyEAxrPOMullsxXeGg==", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "get-intrinsic": "^1.2.5" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/chalk/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/chalk/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/chokidar": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chownr": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", + "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "license": "MIT" + }, + "node_modules/color-support": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", + "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", + "license": "ISC", + "bin": { + "color-support": "bin.js" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "license": "MIT" + }, + "node_modules/concat-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", + "engines": [ + "node >= 0.8" + ], + "license": "MIT", + "dependencies": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^2.2.2", + "typedarray": "^0.0.6" + } + }, + "node_modules/console-control-strings": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", + "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==", + "license": "ISC" + }, + "node_modules/content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "license": "MIT", + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz", + "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-parser": { + "version": "1.4.7", + "resolved": "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.4.7.tgz", + "integrity": "sha512-nGUvgXnotP3BsjiLX2ypbQnWoGUPIIfHQNZkkC668ntrzGWEZVW70HDEB1qnNGMicPje6EttlIgzo51YSwNQGw==", + "license": "MIT", + "dependencies": { + "cookie": "0.7.2", + "cookie-signature": "1.0.6" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", + "license": "MIT" + }, + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "license": "MIT" + }, + "node_modules/cors": { + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", + "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", + "license": "MIT", + "dependencies": { + "object-assign": "^4", + "vary": "^1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/define-data-property": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "license": "MIT", + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/delegates": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", + "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==", + "license": "MIT" + }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "license": "MIT", + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/detect-libc": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.3.tgz", + "integrity": "sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==", + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.0.tgz", + "integrity": "sha512-9+Sj30DIu+4KvHqMfLUGLFYL2PkURSYMVXJyXe92nFRvlYq5hBjLEhblKB+vkd/WVlUYMWigiY07T91Fkk0+4A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "license": "Apache-2.0", + "dependencies": { + "safe-buffer": "^5.0.1" + } + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", + "license": "MIT" + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "license": "MIT" + }, + "node_modules/encodeurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", + "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.0.0.tgz", + "integrity": "sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", + "license": "MIT" + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "9.16.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.16.0.tgz", + "integrity": "sha512-whp8mSQI4C8VXd+fLgSM0lh3UlmcFtVwUQjyKCFfsp+2ItAIYhlq/hqGahGqHE6cv9unM41VlqKk2VtKYR2TaA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.12.1", + "@eslint/config-array": "^0.19.0", + "@eslint/core": "^0.9.0", + "@eslint/eslintrc": "^3.2.0", + "@eslint/js": "9.16.0", + "@eslint/plugin-kit": "^0.2.3", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.1", + "@types/estree": "^1.0.6", + "@types/json-schema": "^7.0.15", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.5", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^8.2.0", + "eslint-visitor-keys": "^4.2.0", + "espree": "^10.3.0", + "esquery": "^1.5.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^8.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } + } + }, + "node_modules/eslint-scope": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.2.0.tgz", + "integrity": "sha512-PHlWUfG6lvPc3yvP5A4PNyBL1W8fkDUccmI21JUu/+GKZBoH/W5u6usENXUrWFRsyoW5ACUjFGgAFQp5gUlb/A==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", + "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/debug": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/eslint/node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/eslint/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/espree": { + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz", + "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.14.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^4.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/express": { + "version": "4.21.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz", + "integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==", + "license": "MIT", + "dependencies": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "1.20.3", + "content-disposition": "0.5.4", + "content-type": "~1.0.4", + "cookie": "0.7.1", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "1.3.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "merge-descriptors": "1.0.3", + "methods": "~1.1.2", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.12", + "proxy-addr": "~2.0.7", + "qs": "6.13.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "0.19.0", + "serve-static": "1.16.2", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/express-jwt": { + "version": "8.5.1", + "resolved": "https://registry.npmjs.org/express-jwt/-/express-jwt-8.5.1.tgz", + "integrity": "sha512-Dv6QjDLpR2jmdb8M6XQXiCcpEom7mK8TOqnr0/TngDKsG2DHVkO8+XnVxkJVN7BuS1I3OrGw6N8j5DaaGgkDRQ==", + "license": "MIT", + "dependencies": { + "@types/jsonwebtoken": "^9", + "express-unless": "^2.1.3", + "jsonwebtoken": "^9.0.0" + }, + "engines": { + "node": ">= 8.0.0" + } + }, + "node_modules/express-unless": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/express-unless/-/express-unless-2.1.3.tgz", + "integrity": "sha512-wj4tLMyCVYuIIKHGt0FhCtIViBcwzWejX0EjNxveAa6dG+0XBCQhMbx+PnkLkFCxLC69qoFrxds4pIyL88inaQ==", + "license": "MIT" + }, + "node_modules/express/node_modules/cookie": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz", + "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true, + "license": "MIT" + }, + "node_modules/file-entry-cache": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "flat-cache": "^4.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/finalhandler": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz", + "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==", + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "statuses": "2.0.1", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.4" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/flatted": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.2.tgz", + "integrity": "sha512-AiwGJM8YcNOaobumgtng+6NHuOqC3A7MixFeDafM3X9cIUM+xUXoS5Vfgf+OihAYe20fxqNM9yPBXJzRtZ/4eA==", + "dev": true, + "license": "ISC" + }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fs-minipass": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", + "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/fs-minipass/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "license": "ISC" + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gauge": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz", + "integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==", + "deprecated": "This package is no longer supported.", + "license": "ISC", + "dependencies": { + "aproba": "^1.0.3 || ^2.0.0", + "color-support": "^1.1.2", + "console-control-strings": "^1.0.0", + "has-unicode": "^2.0.1", + "object-assign": "^4.1.1", + "signal-exit": "^3.0.0", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "wide-align": "^1.1.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/get-intrinsic": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.6.tgz", + "integrity": "sha512-qxsEs+9A+u85HhllWJJFicJfPDhRmjzoYdl64aMWW9yRIJmSyxdn8IEkuIM530/7T+lv0TIHd8L6Q/ra0tEoeA==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "dunder-proto": "^1.0.0", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "function-bind": "^1.1.2", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/globals": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "license": "MIT", + "dependencies": { + "es-define-property": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-unicode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", + "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==", + "license": "ISC" + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "license": "MIT", + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "license": "MIT", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/https-proxy-agent/node_modules/debug": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/https-proxy-agent/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/ignore-by-default": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", + "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==", + "dev": true, + "license": "ISC" + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "license": "ISC" + }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "license": "MIT", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "license": "MIT", + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-email": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-email/-/is-email-1.0.2.tgz", + "integrity": "sha512-UojUgD2EhDTBQ2SGKwrK9edce5phRzgLsP+V5+Uu2Swi+uvjVXgH3zduM3HhT9iaC/9Kq19/TYUbP0jPoi6ioA==", + "license": "SEE LICENSE IN LICENSE" + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-uuid": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-uuid/-/is-uuid-1.0.2.tgz", + "integrity": "sha512-tCByphFcJgf2qmiMo5hMCgNAquNSagOetVetDvBXswGkNfoyEMvGH1yDlF8cbZbKnbVBr4Y5/rlpMz9umxyBkQ==", + "license": "MIT" + }, + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "license": "MIT" + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/jsonwebtoken": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.2.tgz", + "integrity": "sha512-PRp66vJ865SSqOlgqS8hujT5U4AOgMfhrwYIuIhfKaoSCZcirrmASQr8CX7cUg+RMih+hgznrjp99o+W4pJLHQ==", + "license": "MIT", + "dependencies": { + "jws": "^3.2.2", + "lodash.includes": "^4.3.0", + "lodash.isboolean": "^3.0.3", + "lodash.isinteger": "^4.0.4", + "lodash.isnumber": "^3.0.3", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "lodash.once": "^4.0.0", + "ms": "^2.1.1", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=12", + "npm": ">=6" + } + }, + "node_modules/jsonwebtoken/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/jwa": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", + "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", + "license": "MIT", + "dependencies": { + "buffer-equal-constant-time": "1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/jws": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", + "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", + "license": "MIT", + "dependencies": { + "jwa": "^1.4.1", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash.includes": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", + "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==", + "license": "MIT" + }, + "node_modules/lodash.isboolean": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", + "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==", + "license": "MIT" + }, + "node_modules/lodash.isinteger": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", + "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==", + "license": "MIT" + }, + "node_modules/lodash.isnumber": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", + "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==", + "license": "MIT" + }, + "node_modules/lodash.isplainobject": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", + "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==", + "license": "MIT" + }, + "node_modules/lodash.isstring": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", + "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==", + "license": "MIT" + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/lodash.once": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", + "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==", + "license": "MIT" + }, + "node_modules/make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "license": "MIT", + "dependencies": { + "semver": "^6.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true, + "license": "ISC" + }, + "node_modules/math-intrinsics": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.0.0.tgz", + "integrity": "sha512-4MqMiKP90ybymYvsut0CH2g4XWbfLtmlCkXmtmdcDCxNB+mQcu1w/1+L/VD7vi/PSv7X2JYV7SCcR+jiPXnQtA==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/merge-descriptors": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", + "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "license": "MIT", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/minipass": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", + "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", + "license": "ISC", + "engines": { + "node": ">=8" + } + }, + "node_modules/minizlib": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", + "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", + "license": "MIT", + "dependencies": { + "minipass": "^3.0.0", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/minizlib/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "license": "MIT", + "dependencies": { + "minimist": "^1.2.6" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, + "node_modules/morgan": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.10.0.tgz", + "integrity": "sha512-AbegBVI4sh6El+1gNwvD5YIck7nSA36weD7xvIxG4in80j/UoK8AEGaWnnz8v1GxonMCltmlNs5ZKbGvl9b1XQ==", + "license": "MIT", + "dependencies": { + "basic-auth": "~2.0.1", + "debug": "2.6.9", + "depd": "~2.0.0", + "on-finished": "~2.3.0", + "on-headers": "~1.0.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/morgan/node_modules/on-finished": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", + "integrity": "sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww==", + "license": "MIT", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" + }, + "node_modules/multer": { + "version": "1.4.5-lts.1", + "resolved": "https://registry.npmjs.org/multer/-/multer-1.4.5-lts.1.tgz", + "integrity": "sha512-ywPWvcDMeH+z9gQq5qYHCCy+ethsk4goepZ45GLD63fOu0YcNecQxi64nDs3qluZB+murG3/D4dJ7+dGctcCQQ==", + "license": "MIT", + "dependencies": { + "append-field": "^1.0.0", + "busboy": "^1.0.0", + "concat-stream": "^1.5.2", + "mkdirp": "^0.5.4", + "object-assign": "^4.1.1", + "type-is": "^1.6.4", + "xtend": "^4.0.0" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT" + }, + "node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/node-addon-api": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.1.0.tgz", + "integrity": "sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA==", + "license": "MIT" + }, + "node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "license": "MIT", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/nodemon": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-3.1.7.tgz", + "integrity": "sha512-hLj7fuMow6f0lbB0cD14Lz2xNjwsyruH251Pk4t/yIitCFJbmY1myuLlHm/q06aST4jg6EgAh74PIBBrRqpVAQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "chokidar": "^3.5.2", + "debug": "^4", + "ignore-by-default": "^1.0.1", + "minimatch": "^3.1.2", + "pstree.remy": "^1.1.8", + "semver": "^7.5.3", + "simple-update-notifier": "^2.0.0", + "supports-color": "^5.5.0", + "touch": "^3.1.0", + "undefsafe": "^2.0.5" + }, + "bin": { + "nodemon": "bin/nodemon.js" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/nodemon" + } + }, + "node_modules/nodemon/node_modules/debug": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/nodemon/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/nopt": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz", + "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==", + "license": "ISC", + "dependencies": { + "abbrev": "1" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npmlog": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz", + "integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==", + "deprecated": "This package is no longer supported.", + "license": "ISC", + "dependencies": { + "are-we-there-yet": "^2.0.0", + "console-control-strings": "^1.1.0", + "gauge": "^3.0.0", + "set-blocking": "^2.0.0" + } + }, + "node_modules/oauth": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/oauth/-/oauth-0.10.0.tgz", + "integrity": "sha512-1orQ9MT1vHFGQxhuy7E/0gECD3fd2fCC+PIX+/jgmU/gI3EpRocXtmtvxCO5x3WZ443FLTLFWNDjl5MPJf9u+Q==", + "license": "MIT" + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-inspect": { + "version": "1.13.3", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.3.tgz", + "integrity": "sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "license": "MIT", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/on-headers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", + "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/passport": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/passport/-/passport-0.7.0.tgz", + "integrity": "sha512-cPLl+qZpSc+ireUvt+IzqbED1cHHkDoVYMo30jbJIdOOjQ1MQYZBPiNvmi8UM6lJuOpTPXJGZQk0DtC4y61MYQ==", + "license": "MIT", + "dependencies": { + "passport-strategy": "1.x.x", + "pause": "0.0.1", + "utils-merge": "^1.0.1" + }, + "engines": { + "node": ">= 0.4.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/jaredhanson" + } + }, + "node_modules/passport-google-oauth20": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/passport-google-oauth20/-/passport-google-oauth20-2.0.0.tgz", + "integrity": "sha512-KSk6IJ15RoxuGq7D1UKK/8qKhNfzbLeLrG3gkLZ7p4A6DBCcv7xpyQwuXtWdpyR0+E0mwkpjY1VfPOhxQrKzdQ==", + "license": "MIT", + "dependencies": { + "passport-oauth2": "1.x.x" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/passport-jwt": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/passport-jwt/-/passport-jwt-4.0.1.tgz", + "integrity": "sha512-UCKMDYhNuGOBE9/9Ycuoyh7vP6jpeTp/+sfMJl7nLff/t6dps+iaeE0hhNkKN8/HZHcJ7lCdOyDxHdDoxoSvdQ==", + "license": "MIT", + "dependencies": { + "jsonwebtoken": "^9.0.0", + "passport-strategy": "^1.0.0" + } + }, + "node_modules/passport-local": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/passport-local/-/passport-local-1.0.0.tgz", + "integrity": "sha512-9wCE6qKznvf9mQYYbgJ3sVOHmCWoUNMVFoZzNoznmISbhnNNPhN9xfY3sLmScHMetEJeoY7CXwfhCe7argfQow==", + "dependencies": { + "passport-strategy": "1.x.x" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/passport-oauth2": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/passport-oauth2/-/passport-oauth2-1.8.0.tgz", + "integrity": "sha512-cjsQbOrXIDE4P8nNb3FQRCCmJJ/utnFKEz2NX209f7KOHPoX18gF7gBzBbLLsj2/je4KrgiwLLGjf0lm9rtTBA==", + "license": "MIT", + "dependencies": { + "base64url": "3.x.x", + "oauth": "0.10.x", + "passport-strategy": "1.x.x", + "uid2": "0.0.x", + "utils-merge": "1.x.x" + }, + "engines": { + "node": ">= 0.4.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/jaredhanson" + } + }, + "node_modules/passport-strategy": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/passport-strategy/-/passport-strategy-1.0.0.tgz", + "integrity": "sha512-CB97UUvDKJde2V0KDWWB3lyf6PC3FaZP7YxZ2G8OAtn9p4HI9j9JLP9qjOGZFvyl8uwNT8qM+hGnz/n16NI7oA==", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/path": { + "version": "0.12.7", + "resolved": "https://registry.npmjs.org/path/-/path-0.12.7.tgz", + "integrity": "sha512-aXXC6s+1w7otVF9UletFkFcDsJeO7lSZBPUQhtb5O0xJe8LtYhj/GxldoL09bBj9+ZmE2hNoHqQSFMN5fikh4Q==", + "license": "MIT", + "dependencies": { + "process": "^0.11.1", + "util": "^0.10.3" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-to-regexp": { + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz", + "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==", + "license": "MIT" + }, + "node_modules/pause": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/pause/-/pause-0.0.1.tgz", + "integrity": "sha512-KG8UEiEVkR3wGEb4m5yZkVCzigAD+cVEJck2CzYZO37ZGJfctvVptVO192MwrtPhzONn6go8ylnOdMhKqi4nfg==" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prisma": { + "version": "5.22.0", + "resolved": "https://registry.npmjs.org/prisma/-/prisma-5.22.0.tgz", + "integrity": "sha512-vtpjW3XuYCSnMsNVBjLMNkTj6OZbudcPPTPYHqX0CJfpcdWciI1dM8uHETwmDxxiqEwCIE6WvXucWUetJgfu/A==", + "devOptional": true, + "hasInstallScript": true, + "license": "Apache-2.0", + "dependencies": { + "@prisma/engines": "5.22.0" + }, + "bin": { + "prisma": "build/index.js" + }, + "engines": { + "node": ">=16.13" + }, + "optionalDependencies": { + "fsevents": "2.3.3" + } + }, + "node_modules/process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "license": "MIT", + "engines": { + "node": ">= 0.6.0" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "license": "MIT" + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "license": "MIT", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/pstree.remy": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", + "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==", + "dev": true, + "license": "MIT" + }, + "node_modules/punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==", + "license": "MIT" + }, + "node_modules/qs": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", + "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", + "license": "BSD-3-Clause", + "dependencies": { + "side-channel": "^1.0.6" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", + "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", + "license": "MIT", + "dependencies": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/readable-stream/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "license": "MIT" + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", + "license": "ISC", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "license": "MIT" + }, + "node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/send": { + "version": "0.19.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz", + "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==", + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/send/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/serve-static": { + "version": "1.16.2", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz", + "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==", + "license": "MIT", + "dependencies": { + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.19.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", + "license": "ISC" + }, + "node_modules/set-function-length": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", + "license": "MIT", + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", + "license": "ISC" + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/side-channel": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "license": "ISC" + }, + "node_modules/simple-update-notifier": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz", + "integrity": "sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/streamsearch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", + "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==", + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/string_decoder/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "license": "MIT" + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/superstruct": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/superstruct/-/superstruct-2.0.2.tgz", + "integrity": "sha512-uV+TFRZdXsqXTL2pRvujROjdZQ4RAlBUS5BTh9IGm+jTqQntYThciG/qu57Gs69yjnVUSqdxF9YLmSnpupBW9A==", + "license": "MIT", + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/tar": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz", + "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==", + "license": "ISC", + "dependencies": { + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "minipass": "^5.0.0", + "minizlib": "^2.1.1", + "mkdirp": "^1.0.3", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/tar/node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "license": "MIT", + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "license": "MIT", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/touch": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.1.tgz", + "integrity": "sha512-r0eojU4bI8MnHr8c5bNo7lJDdI2qXlWWJk6a9EAFG7vbhTjElYhBVS3/miuE0uOuoLdb8Mc/rVfsmm6eo5o9GA==", + "dev": true, + "license": "ISC", + "bin": { + "nodetouch": "bin/nodetouch.js" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "license": "MIT" + }, + "node_modules/ts-node": { + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", + "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-esm": "dist/bin-esm.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } + } + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "license": "MIT", + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==", + "license": "MIT" + }, + "node_modules/typescript": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.2.tgz", + "integrity": "sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/uid2": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/uid2/-/uid2-0.0.4.tgz", + "integrity": "sha512-IevTus0SbGwQzYh3+fRsAMTVVPOoIVufzacXcHPmdlle1jUpq7BRL+mw3dgeLanvGZdwwbWhRV6XrcFNdBmjWA==", + "license": "MIT" + }, + "node_modules/undefsafe": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz", + "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==", + "dev": true, + "license": "MIT" + }, + "node_modules/undici-types": { + "version": "6.20.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", + "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", + "license": "MIT" + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/uri-js/node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/url": { + "version": "0.11.4", + "resolved": "https://registry.npmjs.org/url/-/url-0.11.4.tgz", + "integrity": "sha512-oCwdVC7mTuWiPyjLUz/COz5TLk6wgp0RCsN+wHZ2Ekneac9w8uuV0njcbbie2ME+Vs+d6duwmYuR3HgQXs1fOg==", + "license": "MIT", + "dependencies": { + "punycode": "^1.4.1", + "qs": "^6.12.3" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/util": { + "version": "0.10.4", + "resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz", + "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==", + "license": "MIT", + "dependencies": { + "inherits": "2.0.3" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "license": "MIT" + }, + "node_modules/util/node_modules/inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==", + "license": "ISC" + }, + "node_modules/utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", + "license": "MIT", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/v8-compile-cache-lib": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", + "dev": true, + "license": "MIT" + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "license": "BSD-2-Clause" + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "license": "MIT", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wide-align": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", + "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", + "license": "ISC", + "dependencies": { + "string-width": "^1.0.2 || 2 || 3 || 4" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "license": "ISC" + }, + "node_modules/xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "license": "MIT", + "engines": { + "node": ">=0.4" + } + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "license": "ISC" + }, + "node_modules/yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/sprint11/package.json b/sprint11/package.json new file mode 100644 index 00000000..69646c5a --- /dev/null +++ b/sprint11/package.json @@ -0,0 +1,51 @@ +{ + "dependencies": { + "@prisma/client": "^5.22.0", + "bcrypt": "^5.1.1", + "cookie-parser": "^1.4.7", + "cors": "^2.8.5", + "express": "^4.21.1", + "express-jwt": "^8.5.1", + "is-email": "^1.0.2", + "is-uuid": "^1.0.2", + "jsonwebtoken": "^9.0.2", + "morgan": "^1.10.0", + "multer": "^1.4.5-lts.1", + "passport": "^0.7.0", + "passport-google-oauth20": "^2.0.0", + "passport-jwt": "^4.0.1", + "passport-local": "^1.0.0", + "path": "^0.12.7", + "superstruct": "^2.0.2", + "url": "^0.11.4" + }, + "name": "sprint11", + "version": "1.0.0", + "main": "index.js", + "devDependencies": { + "@types/bcrypt": "^5.0.2", + "@types/cookie-parser": "^1.4.8", + "@types/cors": "^2.8.17", + "@types/express": "^5.0.0", + "@types/is-email": "^1.0.0", + "@types/is-uuid": "^1.0.2", + "@types/morgan": "^1.9.9", + "@types/multer": "^1.4.12", + "@types/passport": "^1.0.17", + "@types/passport-google-oauth20": "^2.0.16", + "@types/passport-jwt": "^4.0.1", + "eslint": "^9.16.0", + "nodemon": "^3.0.1", + "prisma": "^5.20.0", + "ts-node": "^10.9.2", + "typescript": "^5.7.2" + }, + "scripts": { + "build": "tsc", + "start": "node dist/src/app.js", + "dev": "nodemon --watch src src/app.ts" + }, + "prisma": { + "seed": "node dist/prisma/seed.js" + } +} diff --git a/sprint11/prisma/migrations/20241111015341_init/migration.sql b/sprint11/prisma/migrations/20241111015341_init/migration.sql new file mode 100644 index 00000000..db64bf46 --- /dev/null +++ b/sprint11/prisma/migrations/20241111015341_init/migration.sql @@ -0,0 +1,106 @@ +-- CreateTable +CREATE TABLE "User" ( + "id" SERIAL NOT NULL, + "email" TEXT NOT NULL, + "nickname" TEXT, + "image" TEXT, + "encryptedPassword" TEXT, + "refreshToken" TEXT, + "provider" TEXT NOT NULL DEFAULT 'local', + "providerId" TEXT, + "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updatedAt" TIMESTAMP(3) NOT NULL, + + CONSTRAINT "User_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "Product" ( + "id" TEXT NOT NULL, + "name" TEXT NOT NULL, + "description" TEXT NOT NULL, + "price" DOUBLE PRECISION NOT NULL, + "tags" TEXT[], + "images" TEXT[], + "favoriteCount" INTEGER NOT NULL, + "ownerId" INTEGER NOT NULL, + "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updatedAt" TIMESTAMP(3) NOT NULL, + + CONSTRAINT "Product_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "Article" ( + "id" TEXT NOT NULL, + "title" TEXT NOT NULL, + "authorId" INTEGER, + "content" TEXT NOT NULL, + "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updatedAt" TIMESTAMP(3) NOT NULL, + + CONSTRAINT "Article_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "ProductComment" ( + "id" TEXT NOT NULL, + "content" TEXT NOT NULL, + "productId" TEXT, + "commenterId" INTEGER, + "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updatedAt" TIMESTAMP(3) NOT NULL, + + CONSTRAINT "ProductComment_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "ArticleComment" ( + "id" TEXT NOT NULL, + "content" TEXT NOT NULL, + "articleId" TEXT, + "commenterId" INTEGER, + "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updatedAt" TIMESTAMP(3) NOT NULL, + + CONSTRAINT "ArticleComment_pkey" PRIMARY KEY ("id") +); + +-- CreateIndex +CREATE UNIQUE INDEX "User_email_key" ON "User"("email"); + +-- CreateIndex +CREATE UNIQUE INDEX "User_nickname_key" ON "User"("nickname"); + +-- CreateIndex +CREATE UNIQUE INDEX "User_providerId_key" ON "User"("providerId"); + +-- CreateIndex +CREATE INDEX "ProductComment_productId_createdAt_idx" ON "ProductComment"("productId", "createdAt" DESC); + +-- CreateIndex +CREATE INDEX "ProductComment_commenterId_updatedAt_idx" ON "ProductComment"("commenterId", "updatedAt" DESC); + +-- CreateIndex +CREATE INDEX "ArticleComment_articleId_createdAt_idx" ON "ArticleComment"("articleId", "createdAt" DESC); + +-- CreateIndex +CREATE INDEX "ArticleComment_commenterId_updatedAt_idx" ON "ArticleComment"("commenterId", "updatedAt" DESC); + +-- AddForeignKey +ALTER TABLE "Product" ADD CONSTRAINT "Product_ownerId_fkey" FOREIGN KEY ("ownerId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "Article" ADD CONSTRAINT "Article_authorId_fkey" FOREIGN KEY ("authorId") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "ProductComment" ADD CONSTRAINT "ProductComment_productId_fkey" FOREIGN KEY ("productId") REFERENCES "Product"("id") ON DELETE SET NULL ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "ProductComment" ADD CONSTRAINT "ProductComment_commenterId_fkey" FOREIGN KEY ("commenterId") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "ArticleComment" ADD CONSTRAINT "ArticleComment_articleId_fkey" FOREIGN KEY ("articleId") REFERENCES "Article"("id") ON DELETE SET NULL ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "ArticleComment" ADD CONSTRAINT "ArticleComment_commenterId_fkey" FOREIGN KEY ("commenterId") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE; diff --git a/sprint11/prisma/migrations/20241111063708_add_favorite_count/migration.sql b/sprint11/prisma/migrations/20241111063708_add_favorite_count/migration.sql new file mode 100644 index 00000000..d9594ed7 --- /dev/null +++ b/sprint11/prisma/migrations/20241111063708_add_favorite_count/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE "Article" ADD COLUMN "favoriteCount" INTEGER NOT NULL DEFAULT 0; diff --git a/sprint11/prisma/migrations/20241112012702_add_favorites/migration.sql b/sprint11/prisma/migrations/20241112012702_add_favorites/migration.sql new file mode 100644 index 00000000..3b79b5fa --- /dev/null +++ b/sprint11/prisma/migrations/20241112012702_add_favorites/migration.sql @@ -0,0 +1,27 @@ +-- CreateTable +CREATE TABLE "ProductFavorite" ( + "userId" INTEGER NOT NULL, + "productId" TEXT NOT NULL, + + CONSTRAINT "ProductFavorite_pkey" PRIMARY KEY ("userId","productId") +); + +-- CreateTable +CREATE TABLE "ArticleFavorite" ( + "userId" INTEGER NOT NULL, + "articleId" TEXT NOT NULL, + + CONSTRAINT "ArticleFavorite_pkey" PRIMARY KEY ("userId","articleId") +); + +-- AddForeignKey +ALTER TABLE "ProductFavorite" ADD CONSTRAINT "ProductFavorite_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "ProductFavorite" ADD CONSTRAINT "ProductFavorite_productId_fkey" FOREIGN KEY ("productId") REFERENCES "Product"("id") ON DELETE CASCADE ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "ArticleFavorite" ADD CONSTRAINT "ArticleFavorite_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "ArticleFavorite" ADD CONSTRAINT "ArticleFavorite_articleId_fkey" FOREIGN KEY ("articleId") REFERENCES "Article"("id") ON DELETE CASCADE ON UPDATE CASCADE; diff --git a/sprint11/prisma/migrations/20241113021324_add_images_on_article/migration.sql b/sprint11/prisma/migrations/20241113021324_add_images_on_article/migration.sql new file mode 100644 index 00000000..6faa5b71 --- /dev/null +++ b/sprint11/prisma/migrations/20241113021324_add_images_on_article/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE "Article" ADD COLUMN "images" TEXT[]; diff --git a/sprint11/prisma/migrations/migration_lock.toml b/sprint11/prisma/migrations/migration_lock.toml new file mode 100644 index 00000000..fbffa92c --- /dev/null +++ b/sprint11/prisma/migrations/migration_lock.toml @@ -0,0 +1,3 @@ +# Please do not edit this file manually +# It should be added in your version-control system (i.e. Git) +provider = "postgresql" \ No newline at end of file diff --git a/sprint11/prisma/mock.ts b/sprint11/prisma/mock.ts new file mode 100644 index 00000000..810d7111 --- /dev/null +++ b/sprint11/prisma/mock.ts @@ -0,0 +1,1348 @@ +export const PRODUCT_DATA = [ + { + ownerId: 1, + name: '์ฟ ์ฟ  ๋ฐฅ์†ฅ', + description: '์ฟ ์ฟ ํ•˜์„ธ์š”~~์ฟ ์ฟ ํ•˜์„ธ์š”~~', + price: 310000, + tags: ['์ฟ ์ฟ ์ฟ ์ฟ ์ฟธ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/92/1725209779217/CRP-DHP0610FD.png' + ], + favoriteCount: 0 + }, + { + ownerId: 1, + name: 'ํ† ์Šคํ„ฐ', + description: 'ํ† ์ŠคํŠธ๋ฅผ ๋งŒ๋“ค๊ธฐ ์œ„ํ•œ ํ† ์Šคํ„ฐ~', + price: 19000, + tags: ['ํ† ์Šคํ„ฐ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/72/1724836584916/2.jpg' + ], + favoriteCount: 0 + }, + { + ownerId: 1, + name: 'ํ™”์‚ฌํ•œ๋ถ„์œ„๊ธฐ์˜์ˆ˜๋ จ', + description: '๋ฌด๋ฃŒ ์ด๋ฏธ์ง€ ๊ฝƒ, ์ˆ˜๋ จ, water lily', + price: 12000, + tags: ['๊ฝƒ', '์ˆ˜๋ จ', 'water lily'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/36/1724120702896/water-lily-8175845_1280.jpg' + ], + favoriteCount: 1 + }, + { + ownerId: 1, + name: '๋ฐ์€๋ถ„์œ„๊ธฐ์˜๋ฒฝ์ง€์™€์ „', + description: '๋ฌด๋ฃŒ ์ด๋ฏธ์ง€ ์ „๋“ฑ, ๋ฒฝ์ง€, ์ธํ…Œ๋ฆฌ์–ด', + price: 36000, + tags: ['์ „๋“ฑ', '๋ฒฝ์ง€', '์ธํ…Œ๋ฆฌ์–ด'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/36/1724119838524/pexels-colour-creation-28649-112811.jpg' + ], + favoriteCount: 1 + }, + { + ownerId: 1, + name: '๊ฐค๋Ÿญ์‹œ๋ถ4', + description: '๋˜ ๋‹ค๋ฅธ ๊ฐค๋Ÿญ์‹œ๋ฅผ ๋งŒ๋‚˜๋ณด์„ธ์š”', + price: 1000000, + tags: [], + images: [ + 'https://images.samsung.com/kdp/event/sec/2024/0301_galaxy_book4_ultra/buying/slide_v7/gbu_buying_defalut_pc.jpg' + ], + favoriteCount: 1 + }, + { + ownerId: 1, + name: '๊ฐค๋Ÿญ์‹œ ํƒญ S7', + description: '์‚ผ์„ฑ ๊ฐค๋Ÿญ์‹œ ํƒญ S7', + price: 350000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991844193/5146532.png' + ], + favoriteCount: 6 + }, + { + ownerId: 1, + name: '๋ณด์Šค ํ—ค๋“œํฐ', + description: '๋ณด์Šค ๋…ธ์ด์ฆˆ ์บ”์Šฌ๋ง ํ—ค๋“œํฐ 700', + price: 350000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991827255/3514562.png' + ], + favoriteCount: 12 + }, + { + ownerId: 1, + name: '์‚ฌ๋ฌด์šฉ ์˜์ž', + description: 'ํŽธ์•ˆํ•œ ์‚ฌ๋ฌด์šฉ ์˜์ž', + price: 120000, + tags: ['๊ฐ€๊ตฌ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991812368/2313561.png' + ], + favoriteCount: 4 + }, + { + ownerId: 1, + name: '์Šค๋‹ˆ์ปค์ฆˆ', + description: 'ํŽธ์•ˆํ•œ ์Šค๋‹ˆ์ปค์ฆˆํŽธ์•ˆํ•œ ์Šค๋‹ˆ์ปค์ฆˆ', + price: 100000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991853452/5389615.png' + ], + favoriteCount: 10 + }, + { + ownerId: 1, + name: '๋ ˆ๋…ธ๋ฒ„ ๋…ธํŠธ๋ถ', + description: '๋ ˆ๋…ธ๋ฒ„ ์•„์ด๋””์–ดํŒจ๋“œ 5', + price: 800000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991798558/321351.png' + ], + favoriteCount: 4 + }, + { + ownerId: 1, + name: '๊ฐค๋Ÿญ์‹œ S21', + description: '์‚ผ์„ฑ ๊ฐค๋Ÿญ์‹œ S21', + price: 600000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991786504/31563.png' + ], + favoriteCount: 8 + }, + { + ownerId: 1, + name: '์•„์ดํŒจ๋“œ', + description: '์• ํ”Œ ์•„์ดํŒจ๋“œ 10.2์ธ์น˜', + price: 450000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991756711/21353.png' + ], + favoriteCount: 15 + }, + { + ownerId: 1, + name: 'ํ€ธ์‚ฌ์ด์ฆˆ ์นจ๋Œ€', + description: 'ํ€ธ์‚ฌ์ด์ฆˆ ์นจ๋Œ€ ํ”„๋ ˆ์ž„', + price: 500000, + tags: ['๊ฐ€๊ตฌ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991744735/2113.png' + ], + favoriteCount: 6 + }, + { + ownerId: 1, + name: 'ํŒ๋‹ค์ธํ˜•', + description: '๊ท€์—ฌ์šด ํŒ๋‹ค์ธํ˜•์ž…๋‹ˆ๋‹ค', + price: 30000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991725132/233.png' + ], + favoriteCount: 7 + }, + { + ownerId: 1, + name: '๋งฅ๋ถ ํ”„๋กœ', + description: '์• ํ”Œ ๋งฅ๋ถ ํ”„๋กœ 13์ธ์น˜', + price: 1500000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991786504/31563.png' + ], + favoriteCount: 7 + }, + { + ownerId: 1, + name: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ', + description: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค. ์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค.', + price: 100000, + tags: [], + images: [], + favoriteCount: 10 + }, + { + ownerId: 1, + name: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ2', + description: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค. ์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค.', + price: 100000, + tags: [], + images: [], + favoriteCount: 10 + }, + { + ownerId: 1, + name: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ3', + description: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค. ์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค.', + price: 100000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991853452/5389615.png' + ], + favoriteCount: 10 + }, + { + ownerId: 1, + name: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ4', + description: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค. ์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค.', + price: 100000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991853452/5389615.png' + ], + favoriteCount: 10 + }, + { + ownerId: 1, + name: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ5', + description: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค. ์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค.', + price: 100000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991853452/5389615.png' + ], + favoriteCount: 10 + }, + { + ownerId: 1, + name: 'ํ…Œ์ŠคํŠธ๋ฐ์ดํ„ฐ', + description: '๊ท€์—ฌ์šด ํŒ๋‹ค์ธํ˜•์ž…๋‹ˆ๋‹ค', + price: 30000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991725132/233.png' + ], + favoriteCount: 7 + }, + { + ownerId: 1, + name: 'ํ…Œ์ŠคํŠธ๋ฐ์ดํ„ฐ2', + description: '๊ท€์—ฌ์šด ํŒ๋‹ค์ธํ˜•์ž…๋‹ˆ๋‹ค', + price: 30000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991725132/233.png' + ], + favoriteCount: 7 + }, + { + ownerId: 1, + name: 'ํ…Œ์ŠคํŠธ๋ฐ์ดํ„ฐ3', + description: '๊ท€์—ฌ์šด ํŒ๋‹ค์ธํ˜•์ž…๋‹ˆ๋‹ค', + price: 30000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991725132/233.png' + ], + favoriteCount: 7 + }, + { + ownerId: 1, + name: 'ํ…Œ์ŠคํŠธ๋ฐ์ดํ„ฐ4', + description: '๊ท€์—ฌ์šด ํŒ๋‹ค์ธํ˜•์ž…๋‹ˆ๋‹ค', + price: 30000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991725132/233.png' + ], + favoriteCount: 7 + }, + { + ownerId: 1, + name: 'ํ…Œ์ŠคํŠธ๋ฐ์ดํ„ฐ5', + description: '๊ท€์—ฌ์šด ํŒ๋‹ค์ธํ˜•์ž…๋‹ˆ๋‹ค', + price: 30000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991725132/233.png' + ], + favoriteCount: 7 + }, + { + ownerId: 1, + name: '๊ฒ€์ƒ‰ ํ…Œ์ŠคํŠธ์šฉ', + description: '์ฟ ์ฟ ํ•˜์„ธ์š”~~์ฟ ์ฟ ํ•˜์„ธ์š”~~', + price: 310000, + tags: ['์ฟ ์ฟ ์ฟ ์ฟ ์ฟธ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/92/1725209779217/CRP-DHP0610FD.png' + ], + favoriteCount: 0 + }, + { + ownerId: 1, + name: '๊ฒ€์ƒ‰ ํ…Œ์ŠคํŠธ์šฉ2', + description: '์ฟ ์ฟ ํ•˜์„ธ์š”~~์ฟ ์ฟ ํ•˜์„ธ์š”~~', + price: 310000, + tags: ['์ฟ ์ฟ ์ฟ ์ฟ ์ฟธ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/92/1725209779217/CRP-DHP0610FD.png' + ], + favoriteCount: 0 + }, + { + ownerId: 1, + name: '๊ฒ€์ƒ‰ ํ…Œ์ŠคํŠธ์šฉ3', + description: '์ฟ ์ฟ ํ•˜์„ธ์š”~~์ฟ ์ฟ ํ•˜์„ธ์š”~~', + price: 310000, + tags: ['์ฟ ์ฟ ์ฟ ์ฟ ์ฟธ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/92/1725209779217/CRP-DHP0610FD.png' + ], + favoriteCount: 0 + }, + { + ownerId: 1, + name: '๊ฒ€์ƒ‰ ํ…Œ์ŠคํŠธ์šฉ4', + description: '์ฟ ์ฟ ํ•˜์„ธ์š”~~์ฟ ์ฟ ํ•˜์„ธ์š”~~', + price: 310000, + tags: ['์ฟ ์ฟ ์ฟ ์ฟ ์ฟธ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/92/1725209779217/CRP-DHP0610FD.png' + ], + favoriteCount: 0 + }, + { + ownerId: 1, + name: '๊ฒ€์ƒ‰ ํ…Œ์ŠคํŠธ์šฉ5', + description: '์ฟ ์ฟ ํ•˜์„ธ์š”~~์ฟ ์ฟ ํ•˜์„ธ์š”~~', + price: 310000, + tags: ['์ฟ ์ฟ ์ฟ ์ฟ ์ฟธ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/92/1725209779217/CRP-DHP0610FD.png' + ], + favoriteCount: 0 + }, + { + ownerId: 1, + name: '์ฟ ์ฟ  ๋ฐฅ์†ฅ', + description: '์ฟ ์ฟ ํ•˜์„ธ์š”~~์ฟ ์ฟ ํ•˜์„ธ์š”~~', + price: 310000, + tags: ['์ฟ ์ฟ ์ฟ ์ฟ ์ฟธ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/92/1725209779217/CRP-DHP0610FD.png' + ], + favoriteCount: 0 + }, + { + ownerId: 1, + name: 'ํ† ์Šคํ„ฐ', + description: 'ํ† ์ŠคํŠธ๋ฅผ ๋งŒ๋“ค๊ธฐ ์œ„ํ•œ ํ† ์Šคํ„ฐ~', + price: 19000, + tags: ['ํ† ์Šคํ„ฐ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/72/1724836584916/2.jpg' + ], + favoriteCount: 0 + }, + { + ownerId: 1, + name: 'ํ™”์‚ฌํ•œ๋ถ„์œ„๊ธฐ์˜์ˆ˜๋ จ', + description: '๋ฌด๋ฃŒ ์ด๋ฏธ์ง€ ๊ฝƒ, ์ˆ˜๋ จ, water lily', + price: 12000, + tags: ['๊ฝƒ', '์ˆ˜๋ จ', 'water lily'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/36/1724120702896/water-lily-8175845_1280.jpg' + ], + favoriteCount: 1 + }, + { + ownerId: 1, + name: '๋ฐ์€๋ถ„์œ„๊ธฐ์˜๋ฒฝ์ง€์™€์ „', + description: '๋ฌด๋ฃŒ ์ด๋ฏธ์ง€ ์ „๋“ฑ, ๋ฒฝ์ง€, ์ธํ…Œ๋ฆฌ์–ด', + price: 36000, + tags: ['์ „๋“ฑ', '๋ฒฝ์ง€', '์ธํ…Œ๋ฆฌ์–ด'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/36/1724119838524/pexels-colour-creation-28649-112811.jpg' + ], + favoriteCount: 1 + }, + { + ownerId: 1, + name: '๊ฐค๋Ÿญ์‹œ๋ถ4', + description: '๋˜ ๋‹ค๋ฅธ ๊ฐค๋Ÿญ์‹œ๋ฅผ ๋งŒ๋‚˜๋ณด์„ธ์š”', + price: 1000000, + tags: [], + images: [ + 'https://images.samsung.com/kdp/event/sec/2024/0301_galaxy_book4_ultra/buying/slide_v7/gbu_buying_defalut_pc.jpg' + ], + favoriteCount: 1 + }, + { + ownerId: 1, + name: '๊ฐค๋Ÿญ์‹œ ํƒญ S7', + description: '์‚ผ์„ฑ ๊ฐค๋Ÿญ์‹œ ํƒญ S7', + price: 350000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991844193/5146532.png' + ], + favoriteCount: 6 + }, + { + ownerId: 1, + name: '๋ณด์Šค ํ—ค๋“œํฐ', + description: '๋ณด์Šค ๋…ธ์ด์ฆˆ ์บ”์Šฌ๋ง ํ—ค๋“œํฐ 700', + price: 350000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991827255/3514562.png' + ], + favoriteCount: 12 + }, + { + ownerId: 1, + name: '์‚ฌ๋ฌด์šฉ ์˜์ž', + description: 'ํŽธ์•ˆํ•œ ์‚ฌ๋ฌด์šฉ ์˜์ž', + price: 120000, + tags: ['๊ฐ€๊ตฌ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991812368/2313561.png' + ], + favoriteCount: 4 + }, + { + ownerId: 1, + name: '์Šค๋‹ˆ์ปค์ฆˆ', + description: 'ํŽธ์•ˆํ•œ ์Šค๋‹ˆ์ปค์ฆˆํŽธ์•ˆํ•œ ์Šค๋‹ˆ์ปค์ฆˆ', + price: 100000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991853452/5389615.png' + ], + favoriteCount: 10 + }, + { + ownerId: 1, + name: '๋ ˆ๋…ธ๋ฒ„ ๋…ธํŠธ๋ถ', + description: '๋ ˆ๋…ธ๋ฒ„ ์•„์ด๋””์–ดํŒจ๋“œ 5', + price: 800000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991798558/321351.png' + ], + favoriteCount: 4 + }, + { + ownerId: 1, + name: '๊ฐค๋Ÿญ์‹œ S21', + description: '์‚ผ์„ฑ ๊ฐค๋Ÿญ์‹œ S21', + price: 600000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991786504/31563.png' + ], + favoriteCount: 8 + }, + { + ownerId: 1, + name: '์•„์ดํŒจ๋“œ', + description: '์• ํ”Œ ์•„์ดํŒจ๋“œ 10.2์ธ์น˜', + price: 450000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991756711/21353.png' + ], + favoriteCount: 15 + }, + { + ownerId: 1, + name: 'ํ€ธ์‚ฌ์ด์ฆˆ ์นจ๋Œ€', + description: 'ํ€ธ์‚ฌ์ด์ฆˆ ์นจ๋Œ€ ํ”„๋ ˆ์ž„', + price: 500000, + tags: ['๊ฐ€๊ตฌ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991744735/2113.png' + ], + favoriteCount: 6 + }, + { + ownerId: 1, + name: 'ํŒ๋‹ค์ธํ˜•', + description: '๊ท€์—ฌ์šด ํŒ๋‹ค์ธํ˜•์ž…๋‹ˆ๋‹ค', + price: 30000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991725132/233.png' + ], + favoriteCount: 7 + }, + { + ownerId: 1, + name: '๋งฅ๋ถ ํ”„๋กœ', + description: '์• ํ”Œ ๋งฅ๋ถ ํ”„๋กœ 13์ธ์น˜', + price: 1500000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991786504/31563.png' + ], + favoriteCount: 7 + }, + { + ownerId: 1, + name: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ', + description: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค. ์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค.', + price: 100000, + tags: [], + images: [], + favoriteCount: 10 + }, + { + ownerId: 1, + name: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ2', + description: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค. ์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค.', + price: 100000, + tags: [], + images: [], + favoriteCount: 10 + }, + { + ownerId: 1, + name: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ3', + description: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค. ์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค.', + price: 100000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991853452/5389615.png' + ], + favoriteCount: 10 + }, + { + ownerId: 1, + name: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ4', + description: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค. ์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค.', + price: 100000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991853452/5389615.png' + ], + favoriteCount: 10 + }, + { + ownerId: 1, + name: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ5', + description: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค. ์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค.', + price: 100000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991853452/5389615.png' + ], + favoriteCount: 10 + }, + { + ownerId: 1, + name: 'ํ…Œ์ŠคํŠธ๋ฐ์ดํ„ฐ', + description: '๊ท€์—ฌ์šด ํŒ๋‹ค์ธํ˜•์ž…๋‹ˆ๋‹ค', + price: 30000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991725132/233.png' + ], + favoriteCount: 7 + }, + { + ownerId: 1, + name: 'ํ…Œ์ŠคํŠธ๋ฐ์ดํ„ฐ2', + description: '๊ท€์—ฌ์šด ํŒ๋‹ค์ธํ˜•์ž…๋‹ˆ๋‹ค', + price: 30000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991725132/233.png' + ], + favoriteCount: 7 + }, + { + ownerId: 1, + name: 'ํ…Œ์ŠคํŠธ๋ฐ์ดํ„ฐ3', + description: '๊ท€์—ฌ์šด ํŒ๋‹ค์ธํ˜•์ž…๋‹ˆ๋‹ค', + price: 30000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991725132/233.png' + ], + favoriteCount: 7 + }, + { + ownerId: 1, + name: 'ํ…Œ์ŠคํŠธ๋ฐ์ดํ„ฐ4', + description: '๊ท€์—ฌ์šด ํŒ๋‹ค์ธํ˜•์ž…๋‹ˆ๋‹ค', + price: 30000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991725132/233.png' + ], + favoriteCount: 7 + }, + { + ownerId: 1, + name: 'ํ…Œ์ŠคํŠธ๋ฐ์ดํ„ฐ5', + description: '๊ท€์—ฌ์šด ํŒ๋‹ค์ธํ˜•์ž…๋‹ˆ๋‹ค', + price: 30000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991725132/233.png' + ], + favoriteCount: 7 + }, + { + ownerId: 1, + name: '๊ฒ€์ƒ‰ ํ…Œ์ŠคํŠธ์šฉ', + description: '์ฟ ์ฟ ํ•˜์„ธ์š”~~์ฟ ์ฟ ํ•˜์„ธ์š”~~', + price: 310000, + tags: ['์ฟ ์ฟ ์ฟ ์ฟ ์ฟธ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/92/1725209779217/CRP-DHP0610FD.png' + ], + favoriteCount: 0 + }, + { + ownerId: 1, + name: '๊ฒ€์ƒ‰ ํ…Œ์ŠคํŠธ์šฉ2', + description: '์ฟ ์ฟ ํ•˜์„ธ์š”~~์ฟ ์ฟ ํ•˜์„ธ์š”~~', + price: 310000, + tags: ['์ฟ ์ฟ ์ฟ ์ฟ ์ฟธ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/92/1725209779217/CRP-DHP0610FD.png' + ], + favoriteCount: 0 + }, + { + ownerId: 1, + name: '๊ฒ€์ƒ‰ ํ…Œ์ŠคํŠธ์šฉ3', + description: '์ฟ ์ฟ ํ•˜์„ธ์š”~~์ฟ ์ฟ ํ•˜์„ธ์š”~~', + price: 310000, + tags: ['์ฟ ์ฟ ์ฟ ์ฟ ์ฟธ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/92/1725209779217/CRP-DHP0610FD.png' + ], + favoriteCount: 0 + }, + { + ownerId: 1, + name: '๊ฒ€์ƒ‰ ํ…Œ์ŠคํŠธ์šฉ4', + description: '์ฟ ์ฟ ํ•˜์„ธ์š”~~์ฟ ์ฟ ํ•˜์„ธ์š”~~', + price: 310000, + tags: ['์ฟ ์ฟ ์ฟ ์ฟ ์ฟธ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/92/1725209779217/CRP-DHP0610FD.png' + ], + favoriteCount: 0 + }, + { + ownerId: 1, + name: '๊ฒ€์ƒ‰ ํ…Œ์ŠคํŠธ์šฉ5', + description: '์ฟ ์ฟ ํ•˜์„ธ์š”~~์ฟ ์ฟ ํ•˜์„ธ์š”~~', + price: 310000, + tags: ['์ฟ ์ฟ ์ฟ ์ฟ ์ฟธ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/92/1725209779217/CRP-DHP0610FD.png' + ], + favoriteCount: 0 + }, + { + ownerId: 1, + name: '์ฟ ์ฟ  ๋ฐฅ์†ฅ', + description: '์ฟ ์ฟ ํ•˜์„ธ์š”~~์ฟ ์ฟ ํ•˜์„ธ์š”~~', + price: 310000, + tags: ['์ฟ ์ฟ ์ฟ ์ฟ ์ฟธ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/92/1725209779217/CRP-DHP0610FD.png' + ], + favoriteCount: 0 + }, + { + ownerId: 1, + name: 'ํ† ์Šคํ„ฐ', + description: 'ํ† ์ŠคํŠธ๋ฅผ ๋งŒ๋“ค๊ธฐ ์œ„ํ•œ ํ† ์Šคํ„ฐ~', + price: 19000, + tags: ['ํ† ์Šคํ„ฐ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/72/1724836584916/2.jpg' + ], + favoriteCount: 0 + }, + { + ownerId: 1, + name: 'ํ™”์‚ฌํ•œ๋ถ„์œ„๊ธฐ์˜์ˆ˜๋ จ', + description: '๋ฌด๋ฃŒ ์ด๋ฏธ์ง€ ๊ฝƒ, ์ˆ˜๋ จ, water lily', + price: 12000, + tags: ['๊ฝƒ', '์ˆ˜๋ จ', 'water lily'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/36/1724120702896/water-lily-8175845_1280.jpg' + ], + favoriteCount: 1 + }, + { + ownerId: 1, + name: '๋ฐ์€๋ถ„์œ„๊ธฐ์˜๋ฒฝ์ง€์™€์ „', + description: '๋ฌด๋ฃŒ ์ด๋ฏธ์ง€ ์ „๋“ฑ, ๋ฒฝ์ง€, ์ธํ…Œ๋ฆฌ์–ด', + price: 36000, + tags: ['์ „๋“ฑ', '๋ฒฝ์ง€', '์ธํ…Œ๋ฆฌ์–ด'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/36/1724119838524/pexels-colour-creation-28649-112811.jpg' + ], + favoriteCount: 1 + }, + { + ownerId: 1, + name: '๊ฐค๋Ÿญ์‹œ๋ถ4', + description: '๋˜ ๋‹ค๋ฅธ ๊ฐค๋Ÿญ์‹œ๋ฅผ ๋งŒ๋‚˜๋ณด์„ธ์š”', + price: 1000000, + tags: [], + images: [ + 'https://images.samsung.com/kdp/event/sec/2024/0301_galaxy_book4_ultra/buying/slide_v7/gbu_buying_defalut_pc.jpg' + ], + favoriteCount: 1 + }, + { + ownerId: 1, + name: '๊ฐค๋Ÿญ์‹œ ํƒญ S7', + description: '์‚ผ์„ฑ ๊ฐค๋Ÿญ์‹œ ํƒญ S7', + price: 350000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991844193/5146532.png' + ], + favoriteCount: 6 + }, + { + ownerId: 1, + name: '๋ณด์Šค ํ—ค๋“œํฐ', + description: '๋ณด์Šค ๋…ธ์ด์ฆˆ ์บ”์Šฌ๋ง ํ—ค๋“œํฐ 700', + price: 350000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991827255/3514562.png' + ], + favoriteCount: 12 + }, + { + ownerId: 1, + name: '์‚ฌ๋ฌด์šฉ ์˜์ž', + description: 'ํŽธ์•ˆํ•œ ์‚ฌ๋ฌด์šฉ ์˜์ž', + price: 120000, + tags: ['๊ฐ€๊ตฌ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991812368/2313561.png' + ], + favoriteCount: 4 + }, + { + ownerId: 1, + name: '์Šค๋‹ˆ์ปค์ฆˆ', + description: 'ํŽธ์•ˆํ•œ ์Šค๋‹ˆ์ปค์ฆˆํŽธ์•ˆํ•œ ์Šค๋‹ˆ์ปค์ฆˆ', + price: 100000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991853452/5389615.png' + ], + favoriteCount: 10 + }, + { + ownerId: 1, + name: '๋ ˆ๋…ธ๋ฒ„ ๋…ธํŠธ๋ถ', + description: '๋ ˆ๋…ธ๋ฒ„ ์•„์ด๋””์–ดํŒจ๋“œ 5', + price: 800000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991798558/321351.png' + ], + favoriteCount: 4 + }, + { + ownerId: 1, + name: '๊ฐค๋Ÿญ์‹œ S21', + description: '์‚ผ์„ฑ ๊ฐค๋Ÿญ์‹œ S21', + price: 600000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991786504/31563.png' + ], + favoriteCount: 8 + }, + { + ownerId: 1, + name: '์•„์ดํŒจ๋“œ', + description: '์• ํ”Œ ์•„์ดํŒจ๋“œ 10.2์ธ์น˜', + price: 450000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991756711/21353.png' + ], + favoriteCount: 15 + }, + { + ownerId: 1, + name: 'ํ€ธ์‚ฌ์ด์ฆˆ ์นจ๋Œ€', + description: 'ํ€ธ์‚ฌ์ด์ฆˆ ์นจ๋Œ€ ํ”„๋ ˆ์ž„', + price: 500000, + tags: ['๊ฐ€๊ตฌ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991744735/2113.png' + ], + favoriteCount: 6 + }, + { + ownerId: 1, + name: 'ํŒ๋‹ค์ธํ˜•', + description: '๊ท€์—ฌ์šด ํŒ๋‹ค์ธํ˜•์ž…๋‹ˆ๋‹ค', + price: 30000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991725132/233.png' + ], + favoriteCount: 7 + }, + { + ownerId: 1, + name: '๋งฅ๋ถ ํ”„๋กœ', + description: '์• ํ”Œ ๋งฅ๋ถ ํ”„๋กœ 13์ธ์น˜', + price: 1500000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991786504/31563.png' + ], + favoriteCount: 7 + }, + { + ownerId: 1, + name: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ', + description: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค. ์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค.', + price: 100000, + tags: [], + images: [], + favoriteCount: 10 + }, + { + ownerId: 1, + name: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ2', + description: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค. ์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค.', + price: 100000, + tags: [], + images: [], + favoriteCount: 10 + }, + { + ownerId: 1, + name: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ3', + description: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค. ์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค.', + price: 100000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991853452/5389615.png' + ], + favoriteCount: 10 + }, + { + ownerId: 1, + name: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ4', + description: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค. ์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค.', + price: 100000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991853452/5389615.png' + ], + favoriteCount: 10 + }, + { + ownerId: 1, + name: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ5', + description: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค. ์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค.', + price: 100000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991853452/5389615.png' + ], + favoriteCount: 10 + }, + { + ownerId: 1, + name: 'ํ…Œ์ŠคํŠธ๋ฐ์ดํ„ฐ', + description: '๊ท€์—ฌ์šด ํŒ๋‹ค์ธํ˜•์ž…๋‹ˆ๋‹ค', + price: 30000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991725132/233.png' + ], + favoriteCount: 7 + }, + { + ownerId: 1, + name: 'ํ…Œ์ŠคํŠธ๋ฐ์ดํ„ฐ2', + description: '๊ท€์—ฌ์šด ํŒ๋‹ค์ธํ˜•์ž…๋‹ˆ๋‹ค', + price: 30000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991725132/233.png' + ], + favoriteCount: 7 + }, + { + ownerId: 1, + name: 'ํ…Œ์ŠคํŠธ๋ฐ์ดํ„ฐ3', + description: '๊ท€์—ฌ์šด ํŒ๋‹ค์ธํ˜•์ž…๋‹ˆ๋‹ค', + price: 30000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991725132/233.png' + ], + favoriteCount: 7 + }, + { + ownerId: 1, + name: 'ํ…Œ์ŠคํŠธ๋ฐ์ดํ„ฐ4', + description: '๊ท€์—ฌ์šด ํŒ๋‹ค์ธํ˜•์ž…๋‹ˆ๋‹ค', + price: 30000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991725132/233.png' + ], + favoriteCount: 7 + }, + { + ownerId: 1, + name: 'ํ…Œ์ŠคํŠธ๋ฐ์ดํ„ฐ5', + description: '๊ท€์—ฌ์šด ํŒ๋‹ค์ธํ˜•์ž…๋‹ˆ๋‹ค', + price: 30000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991725132/233.png' + ], + favoriteCount: 7 + }, + { + ownerId: 1, + name: '๊ฒ€์ƒ‰ ํ…Œ์ŠคํŠธ์šฉ', + description: '์ฟ ์ฟ ํ•˜์„ธ์š”~~์ฟ ์ฟ ํ•˜์„ธ์š”~~', + price: 310000, + tags: ['์ฟ ์ฟ ์ฟ ์ฟ ์ฟธ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/92/1725209779217/CRP-DHP0610FD.png' + ], + favoriteCount: 0 + }, + { + ownerId: 1, + name: '๊ฒ€์ƒ‰ ํ…Œ์ŠคํŠธ์šฉ2', + description: '์ฟ ์ฟ ํ•˜์„ธ์š”~~์ฟ ์ฟ ํ•˜์„ธ์š”~~', + price: 310000, + tags: ['์ฟ ์ฟ ์ฟ ์ฟ ์ฟธ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/92/1725209779217/CRP-DHP0610FD.png' + ], + favoriteCount: 0 + }, + { + ownerId: 1, + name: '๊ฒ€์ƒ‰ ํ…Œ์ŠคํŠธ์šฉ3', + description: '์ฟ ์ฟ ํ•˜์„ธ์š”~~์ฟ ์ฟ ํ•˜์„ธ์š”~~', + price: 310000, + tags: ['์ฟ ์ฟ ์ฟ ์ฟ ์ฟธ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/92/1725209779217/CRP-DHP0610FD.png' + ], + favoriteCount: 0 + }, + { + ownerId: 1, + name: '๊ฒ€์ƒ‰ ํ…Œ์ŠคํŠธ์šฉ4', + description: '์ฟ ์ฟ ํ•˜์„ธ์š”~~์ฟ ์ฟ ํ•˜์„ธ์š”~~', + price: 310000, + tags: ['์ฟ ์ฟ ์ฟ ์ฟ ์ฟธ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/92/1725209779217/CRP-DHP0610FD.png' + ], + favoriteCount: 0 + }, + { + ownerId: 1, + name: '๊ฒ€์ƒ‰ ํ…Œ์ŠคํŠธ์šฉ5', + description: '์ฟ ์ฟ ํ•˜์„ธ์š”~~์ฟ ์ฟ ํ•˜์„ธ์š”~~', + price: 310000, + tags: ['์ฟ ์ฟ ์ฟ ์ฟ ์ฟธ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/92/1725209779217/CRP-DHP0610FD.png' + ], + favoriteCount: 0 + }, + { + ownerId: 1, + name: '์ฟ ์ฟ  ๋ฐฅ์†ฅ', + description: '์ฟ ์ฟ ํ•˜์„ธ์š”~~์ฟ ์ฟ ํ•˜์„ธ์š”~~', + price: 310000, + tags: ['์ฟ ์ฟ ์ฟ ์ฟ ์ฟธ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/92/1725209779217/CRP-DHP0610FD.png' + ], + favoriteCount: 0 + }, + { + ownerId: 1, + name: 'ํ† ์Šคํ„ฐ', + description: 'ํ† ์ŠคํŠธ๋ฅผ ๋งŒ๋“ค๊ธฐ ์œ„ํ•œ ํ† ์Šคํ„ฐ~', + price: 19000, + tags: ['ํ† ์Šคํ„ฐ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/72/1724836584916/2.jpg' + ], + favoriteCount: 0 + }, + { + ownerId: 1, + name: 'ํ™”์‚ฌํ•œ๋ถ„์œ„๊ธฐ์˜์ˆ˜๋ จ', + description: '๋ฌด๋ฃŒ ์ด๋ฏธ์ง€ ๊ฝƒ, ์ˆ˜๋ จ, water lily', + price: 12000, + tags: ['๊ฝƒ', '์ˆ˜๋ จ', 'water lily'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/36/1724120702896/water-lily-8175845_1280.jpg' + ], + favoriteCount: 1 + }, + { + ownerId: 1, + name: '๋ฐ์€๋ถ„์œ„๊ธฐ์˜๋ฒฝ์ง€์™€์ „', + description: '๋ฌด๋ฃŒ ์ด๋ฏธ์ง€ ์ „๋“ฑ, ๋ฒฝ์ง€, ์ธํ…Œ๋ฆฌ์–ด', + price: 36000, + tags: ['์ „๋“ฑ', '๋ฒฝ์ง€', '์ธํ…Œ๋ฆฌ์–ด'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/36/1724119838524/pexels-colour-creation-28649-112811.jpg' + ], + favoriteCount: 1 + }, + { + ownerId: 1, + name: '๊ฐค๋Ÿญ์‹œ๋ถ4', + description: '๋˜ ๋‹ค๋ฅธ ๊ฐค๋Ÿญ์‹œ๋ฅผ ๋งŒ๋‚˜๋ณด์„ธ์š”', + price: 1000000, + tags: [], + images: [ + 'https://images.samsung.com/kdp/event/sec/2024/0301_galaxy_book4_ultra/buying/slide_v7/gbu_buying_defalut_pc.jpg' + ], + favoriteCount: 1 + }, + { + ownerId: 1, + name: '๊ฐค๋Ÿญ์‹œ ํƒญ S7', + description: '์‚ผ์„ฑ ๊ฐค๋Ÿญ์‹œ ํƒญ S7', + price: 350000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991844193/5146532.png' + ], + favoriteCount: 6 + }, + { + ownerId: 1, + name: '๋ณด์Šค ํ—ค๋“œํฐ', + description: '๋ณด์Šค ๋…ธ์ด์ฆˆ ์บ”์Šฌ๋ง ํ—ค๋“œํฐ 700', + price: 350000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991827255/3514562.png' + ], + favoriteCount: 12 + }, + { + ownerId: 1, + name: '์‚ฌ๋ฌด์šฉ ์˜์ž', + description: 'ํŽธ์•ˆํ•œ ์‚ฌ๋ฌด์šฉ ์˜์ž', + price: 120000, + tags: ['๊ฐ€๊ตฌ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991812368/2313561.png' + ], + favoriteCount: 4 + }, + { + ownerId: 1, + name: '์Šค๋‹ˆ์ปค์ฆˆ', + description: 'ํŽธ์•ˆํ•œ ์Šค๋‹ˆ์ปค์ฆˆํŽธ์•ˆํ•œ ์Šค๋‹ˆ์ปค์ฆˆ', + price: 100000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991853452/5389615.png' + ], + favoriteCount: 10 + }, + { + ownerId: 1, + name: '๋ ˆ๋…ธ๋ฒ„ ๋…ธํŠธ๋ถ', + description: '๋ ˆ๋…ธ๋ฒ„ ์•„์ด๋””์–ดํŒจ๋“œ 5', + price: 800000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991798558/321351.png' + ], + favoriteCount: 4 + }, + { + ownerId: 1, + name: '๊ฐค๋Ÿญ์‹œ S21', + description: '์‚ผ์„ฑ ๊ฐค๋Ÿญ์‹œ S21', + price: 600000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991786504/31563.png' + ], + favoriteCount: 8 + }, + { + ownerId: 1, + name: '์•„์ดํŒจ๋“œ', + description: '์• ํ”Œ ์•„์ดํŒจ๋“œ 10.2์ธ์น˜', + price: 450000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991756711/21353.png' + ], + favoriteCount: 15 + }, + { + ownerId: 1, + name: 'ํ€ธ์‚ฌ์ด์ฆˆ ์นจ๋Œ€', + description: 'ํ€ธ์‚ฌ์ด์ฆˆ ์นจ๋Œ€ ํ”„๋ ˆ์ž„', + price: 500000, + tags: ['๊ฐ€๊ตฌ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991744735/2113.png' + ], + favoriteCount: 6 + }, + { + ownerId: 1, + name: 'ํŒ๋‹ค์ธํ˜•', + description: '๊ท€์—ฌ์šด ํŒ๋‹ค์ธํ˜•์ž…๋‹ˆ๋‹ค', + price: 30000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991725132/233.png' + ], + favoriteCount: 7 + }, + { + ownerId: 1, + name: '๋งฅ๋ถ ํ”„๋กœ', + description: '์• ํ”Œ ๋งฅ๋ถ ํ”„๋กœ 13์ธ์น˜', + price: 1500000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991786504/31563.png' + ], + favoriteCount: 7 + }, + { + ownerId: 1, + name: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ', + description: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค. ์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค.', + price: 100000, + tags: [], + images: [], + favoriteCount: 10 + }, + { + ownerId: 1, + name: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ2', + description: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค. ์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค.', + price: 100000, + tags: [], + images: [], + favoriteCount: 10 + }, + { + ownerId: 1, + name: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ3', + description: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค. ์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค.', + price: 100000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991853452/5389615.png' + ], + favoriteCount: 10 + }, + { + ownerId: 1, + name: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ4', + description: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค. ์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค.', + price: 100000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991853452/5389615.png' + ], + favoriteCount: 10 + }, + { + ownerId: 1, + name: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ5', + description: '์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค. ์ดˆ๊ธฐ ๋ฐ์ดํ„ฐ์ž…๋‹ˆ๋‹ค.', + price: 100000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991853452/5389615.png' + ], + favoriteCount: 10 + }, + { + ownerId: 1, + name: 'ํ…Œ์ŠคํŠธ๋ฐ์ดํ„ฐ', + description: '๊ท€์—ฌ์šด ํŒ๋‹ค์ธํ˜•์ž…๋‹ˆ๋‹ค', + price: 30000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991725132/233.png' + ], + favoriteCount: 7 + }, + { + ownerId: 1, + name: 'ํ…Œ์ŠคํŠธ๋ฐ์ดํ„ฐ2', + description: '๊ท€์—ฌ์šด ํŒ๋‹ค์ธํ˜•์ž…๋‹ˆ๋‹ค', + price: 30000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991725132/233.png' + ], + favoriteCount: 7 + }, + { + ownerId: 1, + name: 'ํ…Œ์ŠคํŠธ๋ฐ์ดํ„ฐ3', + description: '๊ท€์—ฌ์šด ํŒ๋‹ค์ธํ˜•์ž…๋‹ˆ๋‹ค', + price: 30000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991725132/233.png' + ], + favoriteCount: 7 + }, + { + ownerId: 1, + name: 'ํ…Œ์ŠคํŠธ๋ฐ์ดํ„ฐ4', + description: '๊ท€์—ฌ์šด ํŒ๋‹ค์ธํ˜•์ž…๋‹ˆ๋‹ค', + price: 30000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991725132/233.png' + ], + favoriteCount: 7 + }, + { + ownerId: 1, + name: 'ํ…Œ์ŠคํŠธ๋ฐ์ดํ„ฐ5', + description: '๊ท€์—ฌ์šด ํŒ๋‹ค์ธํ˜•์ž…๋‹ˆ๋‹ค', + price: 30000, + tags: [], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/3/1721991725132/233.png' + ], + favoriteCount: 7 + }, + { + ownerId: 1, + name: '๊ฒ€์ƒ‰ ํ…Œ์ŠคํŠธ์šฉ', + description: '์ฟ ์ฟ ํ•˜์„ธ์š”~~์ฟ ์ฟ ํ•˜์„ธ์š”~~', + price: 310000, + tags: ['์ฟ ์ฟ ์ฟ ์ฟ ์ฟธ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/92/1725209779217/CRP-DHP0610FD.png' + ], + favoriteCount: 0 + }, + { + ownerId: 1, + name: '๊ฒ€์ƒ‰ ํ…Œ์ŠคํŠธ์šฉ2', + description: '์ฟ ์ฟ ํ•˜์„ธ์š”~~์ฟ ์ฟ ํ•˜์„ธ์š”~~', + price: 310000, + tags: ['์ฟ ์ฟ ์ฟ ์ฟ ์ฟธ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/92/1725209779217/CRP-DHP0610FD.png' + ], + favoriteCount: 0 + }, + { + ownerId: 1, + name: '๊ฒ€์ƒ‰ ํ…Œ์ŠคํŠธ์šฉ3', + description: '์ฟ ์ฟ ํ•˜์„ธ์š”~~์ฟ ์ฟ ํ•˜์„ธ์š”~~', + price: 310000, + tags: ['์ฟ ์ฟ ์ฟ ์ฟ ์ฟธ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/92/1725209779217/CRP-DHP0610FD.png' + ], + favoriteCount: 0 + }, + { + ownerId: 1, + name: '๊ฒ€์ƒ‰ ํ…Œ์ŠคํŠธ์šฉ4', + description: '์ฟ ์ฟ ํ•˜์„ธ์š”~~์ฟ ์ฟ ํ•˜์„ธ์š”~~', + price: 310000, + tags: ['์ฟ ์ฟ ์ฟ ์ฟ ์ฟธ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/92/1725209779217/CRP-DHP0610FD.png' + ], + favoriteCount: 0 + }, + { + ownerId: 1, + name: '๊ฒ€์ƒ‰ ํ…Œ์ŠคํŠธ์šฉ5', + description: '์ฟ ์ฟ ํ•˜์„ธ์š”~~์ฟ ์ฟ ํ•˜์„ธ์š”~~', + price: 310000, + tags: ['์ฟ ์ฟ ์ฟ ์ฟ ์ฟธ'], + images: [ + 'https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/92/1725209779217/CRP-DHP0610FD.png' + ], + favoriteCount: 0 + } +]; + +export const USER_DATA = [ + { + email: "A@example.com", + nickname: "A", + password: "123123", + encryptedPassword: "..." + }, + { + email: "B@example.com", + nickname: "B", + password: "123123" + }, + { + email: "C@example.com", + nickname: "C", + password: "123123" + }, + { + email: "D@example.com", + nickname: "D", + password: "123123" + }, + { + email: "E@example.com", + nickname: "E", + password: "123123" + }, +]; + +export const ARTICLE_DATA = [ + { "title": "Article 1", "authorId": 11, "content": "Content of article 1.", "createdAt": "2023-10-01T00:00:00Z", "updatedAt": "2023-10-01T00:00:00Z" }, + { "title": "Article 2", "authorId": 12, "content": "Content of article 2.", "createdAt": "2023-10-02T00:00:00Z", "updatedAt": "2023-10-02T00:00:00Z" }, + { "title": "Article 3", "authorId": 13, "content": "Content of article 3.", "createdAt": "2023-10-03T00:00:00Z", "updatedAt": "2023-10-03T00:00:00Z" }, + { "title": "Article 4", "authorId": 14, "content": "Content of article 4.", "createdAt": "2023-10-04T00:00:00Z", "updatedAt": "2023-10-04T00:00:00Z" }, + { "title": "Article 5", "authorId": 15, "content": "Content of article 5.", "createdAt": "2023-10-05T00:00:00Z", "updatedAt": "2023-10-05T00:00:00Z" }, + { "title": "Article 6", "authorId": 11, "content": "Content of article 6.", "createdAt": "2023-10-06T00:00:00Z", "updatedAt": "2023-10-06T00:00:00Z" }, + { "title": "Article 7", "authorId": 12, "content": "Content of article 7.", "createdAt": "2023-10-07T00:00:00Z", "updatedAt": "2023-10-07T00:00:00Z" }, + { "title": "Article 8", "authorId": 13, "content": "Content of article 8.", "createdAt": "2023-10-08T00:00:00Z", "updatedAt": "2023-10-08T00:00:00Z" }, + { "title": "Article 9", "authorId": 14, "content": "Content of article 9.", "createdAt": "2023-10-09T00:00:00Z", "updatedAt": "2023-10-09T00:00:00Z" }, + { "title": "Article 10", "authorId": 15, "content": "Content of article 10.", "createdAt": "2023-10-10T00:00:00Z", "updatedAt": "2023-10-10T00:00:00Z" } +]; \ No newline at end of file diff --git a/sprint11/prisma/schema.prisma b/sprint11/prisma/schema.prisma new file mode 100644 index 00000000..275b2289 --- /dev/null +++ b/sprint11/prisma/schema.prisma @@ -0,0 +1,109 @@ +// This is your Prisma schema file, +// learn more about it in the docs: https://pris.ly/d/prisma-schema + +// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions? +// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init + +generator client { + provider = "prisma-client-js" +} + +datasource db { + provider = "postgresql" + url = env("DATABASE_URL") +} + +model User { + id Int @id @default(autoincrement()) + email String @unique + nickname String? @unique + image String? + encryptedPassword String? + refreshToken String? + provider String @default("local") + providerId String? @unique + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + product Product[] + productComments ProductComment[] + articles Article[] + articleComments ArticleComment[] + productFavorites ProductFavorite[] + articleFavorites ArticleFavorite[] +} + +model Product { + id String @id @default(uuid()) + name String + description String + price Float + tags String[] + images String[] + favoriteCount Int + ownerId Int + owner User @relation(fields: [ownerId], references: [id]) + productComments ProductComment[] + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + ProductFavorite ProductFavorite[] +} + +model ProductFavorite { + user User @relation(fields: [userId], references: [id], onDelete: Cascade) + product Product @relation(fields: [productId], references: [id], onDelete: Cascade) + userId Int + productId String + + @@id([userId, productId]) +} + +model Article { + id String @id @default(uuid()) + title String + favoriteCount Int @default(0) + authorId Int? + author User? @relation(fields: [authorId], references: [id], onDelete: SetNull) + content String + images String[] + articleComments ArticleComment[] + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + ArticleFavorite ArticleFavorite[] +} + +model ArticleFavorite { + user User @relation(fields: [userId], references: [id], onDelete: Cascade) + article Article @relation(fields: [articleId], references: [id], onDelete: Cascade) + userId Int + articleId String + + @@id([userId, articleId]) +} + +model ProductComment { + id String @id @default(uuid()) + content String + productId String? + product Product? @relation(fields: [productId], references: [id], onDelete: SetNull) + commenterId Int? + commenter User? @relation(fields: [commenterId], references: [id], onDelete: SetNull) + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + + @@index([productId, createdAt(sort: Desc)]) + @@index([commenterId, updatedAt(sort: Desc)]) +} + +model ArticleComment { + id String @id @default(uuid()) + content String + articleId String? + article Article? @relation(fields: [articleId], references: [id], onDelete: SetNull) + commenterId Int? + commenter User? @relation(fields: [commenterId], references: [id], onDelete: SetNull) + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + + @@index([articleId, createdAt(sort: Desc)]) + @@index([commenterId, updatedAt(sort: Desc)]) +} diff --git a/sprint11/prisma/seed.ts b/sprint11/prisma/seed.ts new file mode 100644 index 00000000..f3c63695 --- /dev/null +++ b/sprint11/prisma/seed.ts @@ -0,0 +1,49 @@ +import { PRODUCT_DATA, USER_DATA, ARTICLE_DATA } from "./mock"; +import userService from '../src/services/userService'; +import { PrismaClient } from "@prisma/client"; + +const prisma = new PrismaClient(); + +const getRandomInt = (len: number) => { + return Math.floor(Math.random()*len) +} + +async function main() { + await prisma.product.deleteMany(); + await prisma.article.deleteMany(); + await prisma.user.deleteMany(); + let userId = 1; + for (const user of USER_DATA) { + user.encryptedPassword = await userService.hashingPassword(user.password); + const { password, ...rest } = user; + await prisma.user.create({ + data: { ...rest, id: userId } + }); + userId += 1; + } + const users = await prisma.user.findMany(); + console.log(users); + const usersLength = users.length; + PRODUCT_DATA.forEach(async product => { + product.ownerId = users[getRandomInt(usersLength)].id; + await prisma.product.create({ + data: { ...product } + }) + }); + ARTICLE_DATA.forEach(async article => { + article.authorId = users[getRandomInt(usersLength)].id; + await prisma.article.create({ + data: { ...article } + }) + }) +} + +main() + .then(async () => { + await prisma.$disconnect(); + }) + .catch(async (e) => { + console.error(e); + await prisma.$disconnect(); + process.exit(1); + }); diff --git a/sprint11/src/app.ts b/sprint11/src/app.ts new file mode 100644 index 00000000..3762550f --- /dev/null +++ b/sprint11/src/app.ts @@ -0,0 +1,31 @@ +import express from "express"; +import cors from "cors"; +import cookieParser from "cookie-parser"; +import userController from "./controllers/userController"; +import productController from "./controllers/productController"; +import articleController from "./controllers/articleController"; +import errorHandler from "./middlewares/errorHandler"; +import morgan from "morgan"; +import path from "node:path"; +import process from "node:process"; + +const app = express(); +app.use(cors({ + origin: "https://2-sprint-mission-fe-six.vercel.app", + // origin: "http://localhost:3000", // Front-End ๋‹จ ์ฃผ์†Œ. + credentials: true, // ์ฟ ํ‚ค๋ฅผ ๋ฐ›๊ธฐ ์œ„ํ•œ ์„ค์ •. +})); +app.use(express.json()); +app.use(cookieParser()); +app.use(morgan("dev")); + +// const __dirname = path.dirname(__filename); +app.use("/uploads", express.static(path.join(__dirname, "../uploads"))); +app.use("/account", userController); +app.use("/products", productController); +app.use("/articles", articleController); + +app.use(errorHandler); + +const port = process.env.PORT || 3100; +app.listen(port, () => console.log(`Server on port: ${port}`)); diff --git a/sprint11/src/config/passport.ts b/sprint11/src/config/passport.ts new file mode 100644 index 00000000..ec991f39 --- /dev/null +++ b/sprint11/src/config/passport.ts @@ -0,0 +1,32 @@ +import passport from 'passport'; +// import localStrategy from '../middlewares/passport/localStrategy'; +// import userRepository from '../repositories/userRepository'; +import { accessTokenStrategy, refreshTokenStrategy } from '../middlewares/passport/jwtStrategy'; +import googleStrategy from '../middlewares/passport/googleStrategy'; + +passport.use(googleStrategy); + +passport.use('access-token', accessTokenStrategy); +passport.use('refresh-token', refreshTokenStrategy); + +// passport.use(localStrategy); + +// // ์ง๋ ฌํ™”: JS ๊ฐ์ฒด -> ํŒŒ์ผ ์ €์žฅ์ด๋‚˜ ๋„คํŠธ์› ์ „์†ก์šฉ์œผ๋กœ ๋ณ€ํ™˜ ๋ฐ”์ดํŠธ ๋ฐฐ์—ด๋กœ ์ค„์„ ์„œ์•ผํ•œ๋‹ค. +// // ์„ธ์…˜ ๊ธฐ๋ฐ˜: ์„œ๋ฒ„์— (ํŒŒ์ผ๋กœ) ์ €์žฅํ•  ๋ฐ์ดํ„ฐ๊ฐ€ ๋ญ๋‹ค? user.id +// passport.serializeUser((user, done) => { +// done(null, user.id); +// }); + +// // ๋ฐ˜์ง๋ ฌํ™”(์ง๋ ฌํ™”ํ•ด์ œ): ํŒŒ์ผ์˜ ๋‚ด์šฉ์ด๋‚˜ ๋„คํŠธ์›์œผ๋กœ ๋ฐ›์€ ๋ฐ์ดํ„ฐ -> JS ๊ฐ์ฒด๋กœ ๋ณ€ํ™˜ +// // ์„ธ์…˜ ๊ธฐ๋ฐ˜: ์‹ค์ œ (๋น„์ฆˆ๋‹ˆ์Šค) ๋กœ์ง์—์„œ user.id์— ๋Œ€์‘ํ•˜๋Š” JS ๊ฐ์ฒด๋ฅผ ๋ญ๋ผ๊ณ  ์ƒ๊ฐํ•ด์•ผ ํ•˜๋‚˜. user +// passport.deserializeUser(async (id, done) => { +// try { +// // id๋ฅผ ์ด์šฉํ•ด ์‚ฌ์šฉ์ž ์ •๋ณด๋ฅผ ์กฐํšŒ +// const user = await userRepository.findById(id); +// done(null, user); +// } catch (error) { +// done(error); +// } +// }); + +export default passport; diff --git a/sprint11/src/config/prisma.ts b/sprint11/src/config/prisma.ts new file mode 100644 index 00000000..b5bf6ce8 --- /dev/null +++ b/sprint11/src/config/prisma.ts @@ -0,0 +1,5 @@ +import { PrismaClient } from "@prisma/client"; + +const prisma = new PrismaClient(); + +export default prisma; diff --git a/sprint11/src/controllers/articleController.ts b/sprint11/src/controllers/articleController.ts new file mode 100644 index 00000000..4c2115f6 --- /dev/null +++ b/sprint11/src/controllers/articleController.ts @@ -0,0 +1,223 @@ +import express from "express"; + +import articleService from "../services/articleService"; +import articleCommentService from "../services/articleCommentService"; +import auth from "../middlewares/auth"; +import passport from "../config/passport"; +import { CreateArticleComment, PatchArticle } from "../structs"; +import HttpStatus from "../httpStatus"; +import { assert } from "superstruct"; +import multer from "multer"; +import { FilteredUser } from "../services/userService"; +import { CreateArticle } from "../structs"; + +const articleController = express.Router(); + +const storage = multer.diskStorage({ + destination: (_req, _file, cb) => { + cb(null, "uploads/"); + }, + filename: (_req, file, cb) => { + cb(null, `${Date.now()}-${file.originalname}`); + }, +}); +const upload = multer({ storage: storage }); + +articleController.post( + "/", + passport.authenticate("access-token", { session: false }), + upload.array("images", 3), + async (req, res, next) => { + try { + const { id: userId } = req.user as FilteredUser; + const files = req.files as Express.Multer.File[]; + const data = { + ...req.body, + authorId: userId, + images: files.map((file) => `/uploads/${file.filename}`), + }; + data.favoriteCount = 0; + assert(data, CreateArticle); + const article = await articleService.create(data); + res.send(article); + } catch (err) { + next(err); + } + }, +); + +articleController.post( + "/:articleId/comments", + passport.authenticate("access-token", { session: false }), + async (req, res, next) => { + try { + const { id: userId } = req.user as FilteredUser; + req.body.commenterId = userId; + assert(req.body, CreateArticleComment); + const body = req.body; + const { articleId } = req.params; + const articleComment = await articleCommentService.create( + articleId, + userId, + body.content, + ); + res.send(articleComment); + } catch (err) { + next(err); + } + }, +); + +articleController.patch( + "/:articleId/comments/:commentId", + passport.authenticate("access-token", { session: false }), + auth.verifyArticleCommentAuth, + async (req, res, next) => { + try { + const { id: userId } = req.user as FilteredUser; + req.body.commenterId = userId; + assert(req.body, CreateArticleComment); + const body = req.body; + const { articleId, commentId } = req.params; + const articleComment = await articleCommentService.updateById(commentId, { + ...body, + articleId, + }); + res.send(articleComment); + } catch (err) { + next(err); + } + }, +); + +articleController.delete( + "/:articleId/comments/:commentId", + passport.authenticate("access-token", { session: false }), + auth.verifyArticleCommentAuth, + async (req, res, next) => { + try { + const { commentId } = req.params; + const articleComment = await articleCommentService.deleteById(commentId); + res.status(HttpStatus.NO_CONTENT).send(articleComment); + } catch (err) { + next(err); + } + }, +); + +articleController.patch( + "/:articleId", + passport.authenticate("access-token", { session: false }), + auth.verifyArticleAuth, + async (req, res, next) => { + try { + assert(req.body, PatchArticle); + const { articleId } = req.params; + const article = await articleService.updateById(articleId, req.body); + res.send(article); + } catch (err) { + next(err); + } + }, +); + +articleController.get("/", async (req, res, next) => { + try { + const { page, pageSize, sort, keyword } = req.query; + const result = await articleService.getArticles({ + page: parseInt(page as string), + pageSize: parseInt(pageSize as string), + sort: sort as string, + keyword: keyword as string, + }); + res.send(result); + } catch (err) { + next(err); + } +}); + +articleController.get( + "/:articleId", + passport.authenticate("access-token", { session: false }), + async (req, res, next) => { + try { + const { articleId } = req.params; + const { id: userId } = req.user as FilteredUser; + const article = await articleService.getById(articleId, userId); + if (!article) { + res.status(HttpStatus.NOT_FOUND).send(); + return; + } + res.send(article); + } catch (err) { + next(err); + } + }, +); + +articleController.get("/:articleId/comments", async (req, res, next) => { + try { + const { articleId } = req.params; + const articleComments = await articleCommentService.findManyComments( + articleId, + ); + if (!articleComments) { + res.status(HttpStatus.NOT_FOUND).send(); + return; + } + res.send(articleComments); + } catch (err) { + next(err); + } +}); + +articleController.delete( + "/:articleId", + passport.authenticate("access-token", { session: false }), + auth.verifyArticleAuth, + async (req, res, next) => { + try { + const { articleId } = req.params; + const article = await articleService.deleteById(articleId); + res.status(HttpStatus.NO_CONTENT).send(article); + } catch (err) { + next(err); + } + }, +); + +articleController.post( + "/:articleId/favorite", + passport.authenticate("access-token", { session: false }), + async (req, res, next) => { + try { + const { articleId } = req.params; + const { id: userId } = req.user as FilteredUser; + const [favorite] = await articleService.favorite(articleId, userId); + res.send(favorite); + } catch (err) { + next(err); + } + }, +); + +articleController.delete( + "/:articleId/favorite", + passport.authenticate("access-token", { session: false }), + async (req, res, next) => { + try { + const { articleId } = req.params; + const { id: userId } = req.user as FilteredUser; + const [favorite] = await articleService.unfavorite(articleId, userId); + if (!favorite) { + res.status(HttpStatus.NO_CONTENT).send(); + return; + } + res.send(favorite); + } catch (err) { + next(err); + } + }, +); + +export default articleController; diff --git a/sprint11/src/controllers/productController.ts b/sprint11/src/controllers/productController.ts new file mode 100644 index 00000000..3bc8b272 --- /dev/null +++ b/sprint11/src/controllers/productController.ts @@ -0,0 +1,207 @@ +import express from "express"; + +import productService from "../services/productService"; +import productCommentService from "../services/productCommentService"; +import { + CreateProduct, + CreateProductComment, + PatchProduct, +} from "../structs"; +import { assert } from "superstruct"; +import auth from "../middlewares/auth"; +import passport from "../config/passport"; +import HttpStatus from "../httpStatus"; +import { FilteredUser } from "../services/userService"; + +const productController = express.Router(); + +productController.post( + "/", + passport.authenticate("access-token", { session: false }), + async (req, res, next) => { + try { + const { id: userId } = req.user as FilteredUser; + req.body.ownerId = userId; + req.body.favoriteCount = 0; + assert(req.body, CreateProduct); + const createdProduct = await productService.create(req.body); + res.json(createdProduct); + } catch (err) { + next(err); + } + }, +); + +productController.get( + "/:productId", + passport.authenticate("access-token", { session: false }), + async (req, res, next) => { + try { + const { productId } = req.params; + const { id: userId } = req.user as FilteredUser; + const product = await productService.getById(productId, userId); + res.json(product); + } catch (err) { + next(err); + } + }, +); + +productController.get("/:productId/comments", async (req, res, next) => { + try { + const { productId } = req.params; + const products = await productCommentService.findManyComments(productId); + res.json(products); + } catch (err) { + next(err); + } +}); + +productController.post( + "/:productId/comments", + passport.authenticate("access-token", { session: false }), + async (req, res, next) => { + try { + const { id: userId } = req.user as FilteredUser; + req.body.commenterId = userId; + assert(req.body, CreateProductComment); + const { productId } = req.params; + const productComment = await productCommentService.create({ + ...req.body, + productId, + }); + res.status(HttpStatus.CREATED).send(productComment); + } catch (err) { + next(err); + } + }, +); + +productController.patch( + "/:productId/comments/:commentId", + passport.authenticate("access-token", { session: false }), + auth.verifyProductCommentAuth, + async (req, res, next) => { + try { + const { _productId, commentId } = req.params; + const { id: userId } = req.user as FilteredUser; + req.body.commenterId = userId; + assert(req.body, CreateProductComment); + const productComment = await productCommentService.update( + commentId, + req.body, + ); + res.send(productComment); + } catch (err) { + next(err); + } + }, +); + +productController.delete( + "/:productId/comments/:commentId", + passport.authenticate("access-token", { session: false }), + auth.verifyProductCommentAuth, + async (req, res, next) => { + try { + const { commentId } = req.params; + const productComment = await productCommentService.deleteById(commentId); + res.status(HttpStatus.NO_CONTENT).send(productComment); + } catch (err) { + next(err); + } + }, +); + +productController.patch( + "/:productId", + passport.authenticate("access-token", { session: false }), + auth.verifyProductAuth, + async (req, res, next) => { + try { + assert(req.body, PatchProduct); + const { productId } = req.params; + const product = await productService.updateById(productId, req.body); + res.send(product); + } catch (err) { + next(err); + } + }, +); + +productController.get("/", async (req, res, next) => { + try { + const { page, pageSize, sort, keyword } = req.query; + const result = await productService.getProducts({ + page: parseInt(page as string), + pageSize: parseInt(pageSize as string), + sort: sort as string, + keyword: keyword as string, + }); + res.send(result); + } catch (err) { + next(err); + } +}); + +productController.get( + "/:productId", + passport.authenticate("access-token", { session: false }), + async (req, res, next) => { + try { + const { productId } = req.params; + const { id: userId } = req.user as FilteredUser; + const product = await productService.getById(productId, userId); + res.send(product); + } catch (err) { + next(err); + } + }, +); + +productController.delete( + "/:productId", + passport.authenticate("access-token", { session: false }), + auth.verifyProductAuth, + async (req, res, next) => { + try { + const { productId } = req.params; + const product = await productService.deleteById(productId); + res.status(HttpStatus.NO_CONTENT).send(product); + } catch (err) { + next(err); + } + }, +); + +productController.post( + "/:productId/favorite", + passport.authenticate("access-token", { session: false }), + async (req, res, next) => { + try { + const { productId } = req.params; + const { id: userId } = req.user as FilteredUser; + const [favorite] = await productService.favorite(productId, userId); + res.status(HttpStatus.CREATED).send(favorite); + } catch (err) { + next(err); + } + }, +); + +productController.delete( + "/:productId/favorite", + passport.authenticate("access-token", { session: false }), + async (req, res, next) => { + try { + const { productId } = req.params; + const { id: userId } = req.user as FilteredUser; + const [favorite] = await productService.unfavorite(productId, userId); + res.status(HttpStatus.NO_CONTENT).send(favorite); + } catch (err) { + next(err); + } + }, +); + +export default productController; diff --git a/sprint11/src/controllers/reviewController.ts b/sprint11/src/controllers/reviewController.ts new file mode 100644 index 00000000..646702dc --- /dev/null +++ b/sprint11/src/controllers/reviewController.ts @@ -0,0 +1,92 @@ +// import express from "express"; + +// import reviewService from "../services/reviewService.ts"; +// import auth from "../middlewares/auth.ts"; +// import passport from "../config/passport.ts"; +// import { FilteredUser } from "../services/userService.ts"; +// import { CustomError } from "../../dist/src/types/types.js"; +// import HttpStatus from "../httpStatus.ts"; + +// const reviewController = express.Router(); + +// reviewController.post( +// "/", +// // auth.verifyAccessToken, +// passport.authenticate("access-token", { session: false }), +// async (req, res, next) => { +// console.log(req.user); +// const user: FilteredUser | null = req.user ?? null; +// const userId = user?.id; // req.user.userId +// if (!userId) { +// next(new CustomError("Unauthorized", HttpStatus.UNAUTHORIZED)); +// } +// try { +// const createdReview = await reviewService.create({ +// ...req.body, +// authorId: userId, +// }); +// res.status(HttpStatus.CREATED).json(createdReview); +// return; +// } catch (error) { +// return next(error); +// } +// }, +// ); + +// reviewController.get("/:id", async (req, res, next) => { +// const { id } = req.params; +// try { +// const review = await reviewService.getById(id); +// res.json(review); +// return; +// } catch (error) { +// return next(error); +// } +// }); + +// reviewController.get("/", async (_req, res, next) => { +// try { +// const reviews = await reviewService.getAll(); +// res.json(reviews); +// return; +// } catch (error) { +// return next(error); +// } +// }); + +// reviewController.put( +// "/:id", +// // auth.verifyAccessToken, +// passport.authenticate("access-token", { session: false }), +// auth.verifyReviewAuth, +// async (req, res, next) => { +// try { +// const updatedReview = await reviewService.update( +// req.params.id, +// req.body, +// ); +// res.json(updatedReview); +// return; +// } catch (error) { +// return next(error); +// } +// }, +// ); + +// reviewController.delete( +// "/:id", +// // auth.verifyAccessToken, +// passport.authenticate("access-token", { session: false }), +// auth.verifyReviewAuth, +// async (req, res, next) => { +// try { +// const deletedReview = await reviewService.deleteById(req.params.id); +// res.status(204).json(deletedReview); +// return; +// } catch (error) { +// return next(error); +// } +// }, +// ); + +// export default reviewController; diff --git a/sprint11/src/controllers/userController.ts b/sprint11/src/controllers/userController.ts new file mode 100644 index 00000000..48f506d8 --- /dev/null +++ b/sprint11/src/controllers/userController.ts @@ -0,0 +1,255 @@ +import express, { Response } from "express"; +import userService, { FilteredUser } from "../services/userService"; +import passport from "../config/passport"; +import HttpStatus from "../httpStatus"; + +const RENEW_TOKEN_PATH = "/renew-token"; +const userController = express.Router(); + +const setRefreshTokenCookie = (res: Response, refreshToken: string) => { + res.cookie("refreshToken", refreshToken, { + httpOnly: true, + sameSite: "none", + secure: false, // TODO: must be secure! + // domain: 'localhost', + path: `/account${RENEW_TOKEN_PATH}`, + maxAge: 7 * 24 * 60 * 60 * 1000, + }); +}; + +userController.post("/users", async (req, res, next) => { + try { + const user = await userService.createUser(req.body); + const accessToken = userService.createToken(user.id, "access"); + const refreshToken = userService.createToken(user.id, "refresh"); + await userService.updateUser(user.id, { refreshToken }); + setRefreshTokenCookie(res, refreshToken); + res.status(HttpStatus.CREATED).json({ accessToken, user }); + } catch (error) { + next(error); + } +}); + +// ํ† ํฐ ๊ธฐ๋ฐ˜ +userController.post("/login", async (req, res, next) => { + const { email, password } = req.body; + try { + const user = await userService.getUser(email, password); + const accessToken = userService.createToken(user.id, "access"); + const refreshToken = userService.createToken(user.id, "refresh"); + await userService.updateUser(user.id, { refreshToken }); + setRefreshTokenCookie(res, refreshToken); + res.json({ accessToken, user }); // filter ๋œ user ์ •๋ณด + } catch (error) { + next(error); + } +}); + +userController.get( + "/auth/google", + passport.authenticate("google", { scope: ["profile", "email"] }), +); + +userController.get( + "/auth/google/callback", + passport.authenticate("google"), + (req, res, next) => { + try { + const { id: userId } = req.user as FilteredUser; + const accessToken = userService.createToken(userId, "access"); + const refreshToken = userService.createToken(userId, "refresh"); + setRefreshTokenCookie(res, refreshToken); + res.json({ accessToken, user: req.user }); + } catch (err) { + next(err); + } + }, +); + +userController.post( + RENEW_TOKEN_PATH, + passport.authenticate("refresh-token", { session: false }), + async (req, res, next) => { + try { + const { refreshToken } = req.cookies; + const { id: userId } = req.user as FilteredUser; + const { accessToken, newRefreshToken } = await userService.refreshToken( + userId, + refreshToken, + ); + await userService.updateUser(userId, { refreshToken: newRefreshToken }); // ์ถ”๊ฐ€ + setRefreshTokenCookie(res, newRefreshToken); + res.json({ accessToken }); + } catch (err) { + next(err); + } + }, +); + +// ์„ธ์…˜ ๊ธฐ๋ฐ˜ +// userController.post('/session-login', +// passport.authenticate('local'), +// async (req, res, next) => { +// const user = req.user; +// return res.json(user); +// }); + +// userController.post('/token/refresh', +// auth.verifyRefreshToken, +// async (req, res, next) => { +// try { +// const { refreshToken } = req.cookies; +// const { userId } = req.auth; +// const { accessToken, newRefreshToken } = await userService.refreshToken(userId, refreshToken); +// await userService.updateUser(userId, { refreshToken: newRefreshToken }); // ์ถ”๊ฐ€ +// res.cookie('refreshToken', newRefreshToken, { // ์ถ”๊ฐ€ +// httpOnly: true, +// sameSite: 'none', +// secure: true, +// path: '/token/refresh', +// }); +// return res.json({ accessToken }); +// } catch (error) { +// return next(error); +// } +// }); + +// userController.post('/session-login', async (req, res, next) => { +// const { email, password } = req.body + +// try { +// const user = await userService.getUser(email, password); +// req.session.userId = user.id; +// return res.json(user); +// } catch (error) { +// next(error); +// } +// }); + +///////////////////////////////////////////////////// +// Users +///////////////////////////////////////////////////// + +// userController.patch("/users/:id", async (req, res) => { +// assert(req.body, PatchUser); +// const { id } = req.params; +// const user = await prisma.user.update({ +// where: { id }, +// data: req.body, +// }); +// res.send(user); +// }); + +// userController.get("/users", async (req, res) => { +// const { offset = 0, limit = 10, sort = "recent", keyword = "" } = req.query; +// const query = keyword ? { +// OR: [{ +// email: { contains: keyword } +// }, +// { +// nickname: { contains: keyword } +// }] +// } +// : {}; +// let orderBy; +// switch (orderBy) { +// case "oldest": +// orderBy = { createdAt: "asc" }; +// break; +// case "recent": +// default: +// orderBy = { createdAt: "desc" }; +// } +// const totalCount = await prisma.user.count({ +// where: query, +// }); +// const users = await prisma.user.findMany({ +// where: query, +// orderBy, +// skip: parseInt(offset), +// take: parseInt(limit), +// }); +// res.send({ list: users, totalCount }); +// }); + +// userController.get("/users/:id", async (req, res) => { +// const { id } = req.params; +// const user = await prisma.user.findUniqueOrThrow({ +// where: { id }, +// }); +// res.send(user); +// }); + +// userController.get("/users/:userId/productComments", async (req, res) => { +// const { userId } = req.params; +// const { cursor, limit = 10, sort = "recent" } = req.query; +// let orderBy; +// switch (sort) { +// case "oldest": +// orderBy = { updatedAt: "asc" }; +// break; +// case "recent": +// default: +// orderBy = { updatedAt: "desc" }; +// } +// const productComments = await prisma.productComment.findMany({ +// orderBy, +// where: { +// commenterId: userId, +// }, +// cursor: cursor ? { +// id: cursor, +// }: undefined, +// skip: cursor ? 1 : 0, +// take: parseInt(limit), +// select: { +// id: true, +// content: true, +// createdAt: true, +// updatedAt: true, +// }, +// }); +// res.send(productComments); +// }); + +// userController.get("/users/:userId/articleComments", async (req, res) => { +// const { userId } = req.params; +// const { cursor, limit = 10, sort = "recent" } = req.query; +// let orderBy; +// switch (sort) { +// case "oldest": +// orderBy = { updatedAt: "asc" }; +// break; +// case "recent": +// default: +// orderBy = { updatedAt: "desc" }; +// } +// const articleComments = await prisma.articleComment.findMany({ +// orderBy, +// where: { +// commenterId: userId, +// }, +// cursor: cursor ? { +// id: cursor, +// } : undefined, +// skip: cursor ? 1 : 0, +// take: parseInt(limit), +// select: { +// id: true, +// content: true, +// createdAt: true, +// updatedAt: true, +// }, +// }); +// res.send(articleComments); +// }); + +// userController.delete("/users/:id", async (req, res) => { +// const { id } = req.params; +// const user = await prisma.user.delete({ +// where: { id }, +// }); +// res.status(HttpStatus.NO_CONTENT).send(user); +// }); + +export default userController; diff --git a/sprint11/src/httpStatus.ts b/sprint11/src/httpStatus.ts new file mode 100644 index 00000000..7d733621 --- /dev/null +++ b/sprint11/src/httpStatus.ts @@ -0,0 +1,16 @@ +enum HttpStatus { + SUCCESS = 200, + CREATED = 201, + ACCEPTED = 202, + NON_AUTHORITATIVE_INFORMATION = 203, + NO_CONTENT = 204, + NOT_MODIFIED = 304, + BAD_REQUEST = 400, + UNAUTHORIZED = 401, + FORBIDDEN = 403, + NOT_FOUND = 404, + UNPROCESSABLE_CONTENT = 422, + SERVER_ERROR = 500, +}; + +export default HttpStatus; diff --git a/sprint11/src/middlewares/auth.ts b/sprint11/src/middlewares/auth.ts new file mode 100644 index 00000000..519a0e0d --- /dev/null +++ b/sprint11/src/middlewares/auth.ts @@ -0,0 +1,193 @@ +import { expressjwt } from "express-jwt"; +// import reviewRepository from "../repositories/reviewRepository"; +import productCommentRepository from "../repositories/productCommentRepository"; +import productRepository from "../repositories/productRepository"; +import articleCommentRepository from "../repositories/articleCommentRepository"; +import articleRepository from "../repositories/articleRepository"; +import { Secret } from "jsonwebtoken"; +import { NextFunction, Request, Response } from "express"; +import { CustomError } from "../types/types"; +import HttpStatus from "../httpStatus"; +import { FilteredUser } from "../services/userService"; +import process from "node:process"; + +const verifyAccessToken = expressjwt({ + secret: process.env.JWT_SECRET as Secret, + algorithms: ["HS256"], + requestProperty: "user", +}); + +const verifyRefreshToken = expressjwt({ + secret: process.env.JWT_SECRET as Secret, + algorithms: ["HS256"], + getToken: (req) => req.cookies.refreshToken, +}); + +// async function verifyReviewAuth( +// req: Request, +// _res: Response, +// next: NextFunction, +// ) { +// const { id: reviewId } = req.params; +// try { +// const review = await reviewRepository.getById(reviewId); + +// if (!review) { +// throw new CustomError("Review not found", HttpStatus.NOT_FOUND); +// } + +// const { id: userId } = req.user as FilteredUser; + +// if (review.authorId !== user?.id) { +// throw new CustomError("Forbidden", HttpStatus.FORBIDDEN); +// } + +// return next(); +// } catch (error) { +// return next(error); +// } +// } + +async function verifyProductCommentAuth( + req: Request, + _res: Response, + next: NextFunction, +) { + const { commentId } = req.params; + try { + const comment = await productCommentRepository.getById(commentId); + + if (!comment) { + throw new CustomError("Product-Comment not found", HttpStatus.NOT_FOUND); + } + + const { id: userId } = req.user as FilteredUser; + if (comment.commenterId !== userId) { + throw new CustomError("Forbidden", HttpStatus.FORBIDDEN); + } + + return next(); + } catch (error) { + return next(error); + } +} + +async function verifyProductAuth( + req: Request, + _res: Response, + next: NextFunction, +) { + const { productId } = req.params; + try { + const product = await productRepository.getById(productId); + + if (!product) { + throw new CustomError("Product not found", HttpStatus.NOT_FOUND); + } + + const { id: userId } = req.user as FilteredUser; + if (product.ownerId !== userId) { + throw new CustomError("Forbidden", HttpStatus.FORBIDDEN); + } + + return next(); + } catch (error) { + return next(error); + } +} + +async function verifyArticleCommentAuth( + req: Request, + _res: Response, + next: NextFunction, +) { + const { commentId } = req.params; + try { + const comment = await articleCommentRepository.getById(commentId); + + if (!comment) { + throw new CustomError("Article-Comment not found", HttpStatus.NOT_FOUND); + } + + const { id: userId } = req.user as FilteredUser; + if (comment.commenter?.id !== userId) { + throw new CustomError("Forbidden", HttpStatus.FORBIDDEN); + } + + return next(); + } catch (error) { + return next(error); + } +} + +async function verifyArticleAuth( + req: Request, + _res: Response, + next: NextFunction, +) { + const { articleId } = req.params; + try { + const article = await articleRepository.getById(articleId); + + if (!article) { + throw new CustomError("Article not found", HttpStatus.NOT_FOUND); + } + + const { id: userId } = req.user as FilteredUser; + if (article.authorId !== userId) { + throw new CustomError("Forbidden", HttpStatus.FORBIDDEN); + } + + return next(); + } catch (error) { + return next(error); + } +} + +// async function verifySessionLogin(req: Request, res: Response, next: NextFunction) { +// // ์„ธ์…˜์—์„œ ์‚ฌ์šฉ์ž ์ •๋ณด๋ฅผ ์ฝ์–ด์˜ด +// try { +// const { userId } = req.session; + +// if (!userId) { +// // ๋กœ๊ทธ์ธ๋˜์–ด์žˆ์ง€ ์•Š์œผ๋ฉด ์ธ์ฆ ์‹คํŒจ +// throwUnauthorizedError(); +// } + +// const user = await userRepository.findById(req.session.userId); + +// if (!user) { +// throwUnauthorizedError(); +// } + +// // ์ดํ›„ ํŽธ๋ฆฌ์„ฑ์„ ์œ„ํ•œ ์œ ์ € ์ •๋ณด ์ „๋‹ฌ +// req.user = { +// id: req.session.userId, +// email: user.email, +// name: user.name, +// provider: user.provider, +// providerId: user.providerId, +// }; +// // ์‚ฌ์šฉ์ž๊ฐ€ ๋กœ๊ทธ์ธ๋˜์–ด ์žˆ๋‹ค๋ฉด ๋‹ค์Œ ๋ฏธ๋“ค์›จ์–ด ์ฒ˜๋ฆฌ +// next(); +// } catch (error) { +// next(error); +// } +// } + +// function passportAuthenticateSession(req: Request, res: Response, next: NextFunction) { +// if (!req.isAuthenticated()) { +// return res.status(401).json({ message: 'Unauthorized' }); +// } +// return next(); +// } + +export default { + verifyAccessToken, + verifyRefreshToken, + // verifyReviewAuth, + verifyProductCommentAuth, + verifyProductAuth, + verifyArticleCommentAuth, + verifyArticleAuth, +}; diff --git a/sprint11/src/middlewares/errorHandler.ts b/sprint11/src/middlewares/errorHandler.ts new file mode 100644 index 00000000..9b25faab --- /dev/null +++ b/sprint11/src/middlewares/errorHandler.ts @@ -0,0 +1,41 @@ +import { ErrorRequestHandler } from "express"; +import HttpStatus from "../httpStatus"; +import { Prisma } from "@prisma/client"; + +const errorHandler: ErrorRequestHandler = (error, req, res, _next) => { + let status = error?.code | error?.status; + if (status === 0) { + status = 500; + } + console.log(error.name); + console.log(error.message); + if ( + error.name === "StructError" || + error instanceof Prisma.PrismaClientValidationError + ) { + res.status(HttpStatus.BAD_REQUEST).send({ + name: error.name, + message: error.message, + }); + return; + } else if ( + error instanceof Prisma.PrismaClientKnownRequestError && + error.code === "P2025" + ) { + res.status(HttpStatus.NOT_FOUND).send({ + name: error.name, + message: error.message, + }); + return; + } + res.status(status).json({ + path: req.path, + method: req.method, + code: error?.code, + message: error.message ?? "Internal Server Error", + data: error.data ?? undefined, + date: new Date(), + }); +}; + +export default errorHandler; diff --git a/sprint11/src/middlewares/passport/googleStrategy.ts b/sprint11/src/middlewares/passport/googleStrategy.ts new file mode 100644 index 00000000..7902dd00 --- /dev/null +++ b/sprint11/src/middlewares/passport/googleStrategy.ts @@ -0,0 +1,42 @@ +import { + Profile, + Strategy as GoogleStrategy, + VerifyCallback, +} from "passport-google-oauth20"; +import userService from "../../services/userService"; +import process from "node:process"; + +const googleStrategyOptions: { + clientID: string; + clientSecret: string; + callbackURL: string; + passReqToCallback: false; +} = { + clientID: process.env.GOOGLE_CLIENT_ID as string, + clientSecret: process.env.GOOGLE_CLIENT_SECRET as string, + callbackURL: "/account/auth/google/callback", + passReqToCallback: false, +}; + +async function verify( + _accessToken: string, + _refreshToken: string, + profile: Profile, + done: VerifyCallback, +) { + try { + const user = await userService.oauthCreateOrUpdate( + profile.provider, + profile.id, + profile.displayName, + profile.emails?.[0]?.value, + ); + done(null, user); + } catch (err) { + done(err, false); + } +} + +const googleStrategy = new GoogleStrategy(googleStrategyOptions, verify); + +export default googleStrategy; diff --git a/sprint11/src/middlewares/passport/jwtStrategy.ts b/sprint11/src/middlewares/passport/jwtStrategy.ts new file mode 100644 index 00000000..941e459c --- /dev/null +++ b/sprint11/src/middlewares/passport/jwtStrategy.ts @@ -0,0 +1,44 @@ +import { ExtractJwt, Strategy as JwtStrategy } from "passport-jwt"; +import userService, { FilteredUser } from "../../services/userService"; +import { Request } from "express"; +import process from "node:process"; + +const accessTokenOptions = { + jwtFromRequest: ExtractJwt.fromAuthHeaderAsBearerToken(), + secretOrKey: process.env.JWT_SECRET as string, + // issuer: 'enter issuer here', + // audience: 'enter audience here', +}; + +const cookieExtractor = function (req: Request) { + let token = null; + if (req && req.cookies) { + token = req.cookies["refreshToken"]; + } + return token; +}; + +const refreshTokenOptions = { + jwtFromRequest: cookieExtractor, + secretOrKey: process.env.JWT_SECRET as string, +}; + +async function jwtVerify( + payload: { userId: number }, + done: (error: unknown, user: false | FilteredUser) => void, +) { + try { + const user = await userService.getUserById(payload.userId); + if (!user) { + return done(null, false); + } + return done(null, user); + } catch (error: unknown) { + return done(error, false); + } +} + +const accessTokenStrategy = new JwtStrategy(accessTokenOptions, jwtVerify); +const refreshTokenStrategy = new JwtStrategy(refreshTokenOptions, jwtVerify); + +export { accessTokenStrategy, refreshTokenStrategy }; diff --git a/sprint11/src/middlewares/passport/localStrategy.ts b/sprint11/src/middlewares/passport/localStrategy.ts new file mode 100644 index 00000000..bd2a253e --- /dev/null +++ b/sprint11/src/middlewares/passport/localStrategy.ts @@ -0,0 +1,21 @@ +// import { Strategy as LocalStrategy } from 'passport-local'; +// import userService from '../../services/userService.js'; + +// const localStrategy = new LocalStrategy( +// { +// usernameField: 'email', +// }, +// async (email, password, done) => { +// try { +// const user = await userService.getUser(email, password); +// if (!user) { +// return done(null, false); +// } +// return done(null, user); +// } catch (error) { +// return done(error); +// } +// } +// ); + +// export default localStrategy; diff --git a/sprint11/src/repositories/articleCommentRepository.ts b/sprint11/src/repositories/articleCommentRepository.ts new file mode 100644 index 00000000..07ccb96f --- /dev/null +++ b/sprint11/src/repositories/articleCommentRepository.ts @@ -0,0 +1,103 @@ +import { ArticleComment, Prisma } from "@prisma/client"; +import prisma from "../config/prisma"; + +export interface IArticleCommentRepository { + findManyComments(articleId: string): Promise; + getById(id: string): Promise; + create( + { data }: { + data: + & Prisma.Without< + Prisma.ArticleCommentCreateInput, + Prisma.ArticleCommentUncheckedCreateInput + > + & Prisma.ArticleCommentUncheckedCreateInput; + }, + ): Promise; + updateById( + id: string, + data: Partial, + ): Promise; + deleteById(id: string): Promise; +} + +class ArticleCommentRepository implements IArticleCommentRepository { + async findManyComments(articleId: string) { + return await prisma.articleComment.findMany({ + where: { + articleId, + }, + orderBy: { + createdAt: "desc", + }, + select: { + id: true, + content: true, + createdAt: true, + updatedAt: true, + commenter: { + select: { + id: true, + nickname: true, + }, + }, + }, + }); + } + + async getById(id: string) { + return await prisma.articleComment.findUnique({ + where: { + id, + }, + select: { + id: true, + content: true, + createdAt: true, + updatedAt: true, + commenter: { + select: { + id: true, + nickname: true, + }, + }, + }, + }); + } + + async create( + { data }: { + data: + & Prisma.Without< + Prisma.ArticleCommentCreateInput, + Prisma.ArticleCommentUncheckedCreateInput + > + & Prisma.ArticleCommentUncheckedCreateInput; + }, + ) { + return await prisma.articleComment.create({ + data, + }); + } + + updateById(id: string, data: Partial) { + return prisma.articleComment.update({ + where: { + id, + }, + data, + }); + } + + deleteById(id: string) { + return prisma.articleComment.delete({ + where: { + id, + }, + }); + } +} + +const articleCommentRepository = new ArticleCommentRepository(); + +export default articleCommentRepository; diff --git a/sprint11/src/repositories/articleRepository.ts b/sprint11/src/repositories/articleRepository.ts new file mode 100644 index 00000000..3e970c9f --- /dev/null +++ b/sprint11/src/repositories/articleRepository.ts @@ -0,0 +1,207 @@ +import prisma from "../config/prisma"; +import { Article, ArticleFavorite, Prisma } from "@prisma/client"; + +export interface IArticleRepository { + getArticles: ({ skip, take, orderBy, where }: { + skip: number; + take: number; + orderBy: { + [key: string]: "asc" | "desc"; + }; + where: { + OR: ({ + title: { + contains: string; + }; + content?: undefined; + } | { + content: { + contains: string; + }; + title?: undefined; + })[]; + } | { + OR?: undefined; + }; + }) => Promise<{ + list: (Article & { author: { id: number; nickname: string | null; } | null })[]; + totalCount: number; + }>; + create: ( + data: Prisma.XOR< + Prisma.ArticleCreateInput, + Prisma.ArticleUncheckedCreateInput + >, + ) => Promise
; + updateById: (id: string, data: Article) => Promise
; + deleteById: (id: string) => Promise
; + getById: ( + id: string, + ) => Promise< + (Article & { author: { id: number; nickname: string | null } | null }) | null + >; + likeArticle: ( + articleId: string, + userId: number, + ) => Promise<[ArticleFavorite, Article]>; + unlikeArticle: ( + articleId: string, + userId: number, + ) => Promise<[ArticleFavorite, Article]>; + getArticleFavorite: ( + articleId: string, + userId: number, + ) => Promise; +} + +class ArticleRepository implements IArticleRepository { + async getArticles({ skip, take, orderBy, where }: { + skip: number; + take: number; + orderBy: { + [key: string]: "asc" | "desc"; + }; + where: { + OR: ({ + title: { + contains: string; + }; + content?: undefined; + } | { + content: { + contains: string; + }; + title?: undefined; + })[]; + } | { + OR?: undefined; + }; + }) { + const list = await prisma.article.findMany({ + skip, + take, + orderBy, + where, + include: { + author: { + select: { + id: true, + nickname: true, + }, + }, + }, + }); + const totalCount = await prisma.article.count({ + where, + }); + return { list, totalCount }; + } + + create( + data: Prisma.XOR< + Prisma.ArticleCreateInput, + Prisma.ArticleUncheckedCreateInput + >, + ) { + return prisma.article.create({ + data, + }); + } + + updateById(id: string, data: Partial
) { + return prisma.article.update({ + where: { + id, + }, + data, + }); + } + + deleteById(id: string) { + return prisma.article.delete({ + where: { + id, + }, + }); + } + + getById( + id: string, + ): Promise< + | (Article & { author: { id: number; nickname: string | null } | null }) + | null + > { + return prisma.article.findUnique({ + where: { + id, + }, + include: { + author: { + select: { + id: true, + nickname: true, + }, + }, + }, + }); + } + + async likeArticle(articleId: string, userId: number) { + return await prisma.$transaction([ + prisma.articleFavorite.create({ + data: { + articleId, + userId, + }, + }), + prisma.article.update({ + where: { + id: articleId, + }, + data: { + favoriteCount: { + increment: 1, + }, + }, + }), + ]); + } + + async unlikeArticle(articleId: string, userId: number) { + return await prisma.$transaction([ + prisma.articleFavorite.delete({ + where: { + userId_articleId: { + userId, + articleId, + }, + }, + }), + prisma.article.update({ + where: { + id: articleId, + }, + data: { + favoriteCount: { + decrement: 1, + }, + }, + }), + ]); + } + + getArticleFavorite(articleId: string, userId: number) { + return prisma.articleFavorite.findUnique({ + where: { + userId_articleId: { + userId, + articleId, + }, + }, + }); + } +} + +const articleRepository = new ArticleRepository(); + +export default articleRepository; diff --git a/sprint11/src/repositories/productCommentRepository.ts b/sprint11/src/repositories/productCommentRepository.ts new file mode 100644 index 00000000..99d8bb22 --- /dev/null +++ b/sprint11/src/repositories/productCommentRepository.ts @@ -0,0 +1,95 @@ +import { Prisma, ProductComment } from "@prisma/client"; +import prisma from "../config/prisma"; + +export interface IProductCommentRepository { + create: ( + data: Prisma.XOR< + Prisma.ProductCommentCreateInput, + Prisma.ProductCommentUncheckedCreateInput + >, + ) => Promise; + getById: (id: string) => Promise; + updateById: ( + id: string, + data: Partial, + ) => Promise; + deleteById: (id: string) => Promise; + findManyComments: (productId: string) => Promise; +} + +class ProductCommentRepository implements IProductCommentRepository { + create( + data: Prisma.XOR< + Prisma.ProductCommentCreateInput, + Prisma.ProductCommentUncheckedCreateInput + >, + ) { + return prisma.productComment.create({ + data, + select: { + id: true, + content: true, + createdAt: true, + updatedAt: true, + commenter: { + select: { + id: true, + nickname: true, + }, + }, + }, + }); + } + + getById(id: string) { + return prisma.productComment.findUnique({ + where: { + id, + }, + }); + } + + updateById(id: string, data: Partial) { + return prisma.productComment.update({ + where: { + id, + }, + data, + }); + } + + deleteById(id: string) { + return prisma.productComment.delete({ + where: { + id, + }, + }); + } + + findManyComments(productId: string) { + return prisma.productComment.findMany({ + where: { + productId, + }, + orderBy: { + createdAt: "desc", + }, + select: { + id: true, + content: true, + createdAt: true, + updatedAt: true, + commenter: { + select: { + id: true, + nickname: true, + }, + }, + }, + }); + } +} + +const productCommentRepository = new ProductCommentRepository(); + +export default productCommentRepository; diff --git a/sprint11/src/repositories/productRepository.ts b/sprint11/src/repositories/productRepository.ts new file mode 100644 index 00000000..a85f9d5d --- /dev/null +++ b/sprint11/src/repositories/productRepository.ts @@ -0,0 +1,213 @@ +import prisma from "../config/prisma"; +import { Prisma, Product, ProductFavorite } from "@prisma/client"; + +export interface IProductRepository { + getProducts(params: { + skip: number; + take: number; + orderBy: { + [key: string]: "asc" | "desc"; + }; + where: { + OR: ({ + name: { + contains: string; + }; + description?: undefined; + } | { + description: { + contains: string; + }; + name?: undefined; + })[]; + } | { + OR?: undefined; + }; + }): Promise<{ + products: (Product & { owner: { id: number; nickname: string | null; } })[]; + totalCount: number; + }>; + getById( + id: string, + ): Promise< + Product & { owner: { id: number; nickname: string | null } } | null + >; + updateById(id: string, product: Partial): Promise; + save(product: Product): Promise; + deleteById(id: string): Promise; + likeProduct( + productId: string, + userId: number, + ): Promise<[ProductFavorite, Product]>; + unlikeProduct( + productId: string, + userId: number, + ): Promise<[ProductFavorite, Product]>; + getProductFavorite( + productId: string, + userId: number, + ): Promise; +} + +class ProductRepository implements IProductRepository { + async getProducts({ skip, take, orderBy, where }: { + skip: number; + take: number; + orderBy: { + [key: string]: "asc" | "desc"; + }; + where: { + OR: ({ + name: { + contains: string; + }; + description?: undefined; + } | { + description: { + contains: string; + }; + name?: undefined; + })[]; + } | { + OR?: undefined; + }; + }): Promise<{ products: (Product & { owner: { id: number; nickname: string | null; } })[]; totalCount: number }> { + const products = await prisma.product.findMany({ + skip, + take, + orderBy, + where, + include: { + owner: { + select: { + id: true, + nickname: true, + }, + }, + }, + }); + const totalCount = await prisma.product.count({ + where, + }); + return { products, totalCount }; + } + + getById( + id: string, + ): Promise< + | (Product & { owner: { id: number; nickname: string | null } }) + | null + > { + return prisma.product.findUnique({ + where: { + id, + }, + include: { + owner: { + select: { + id: true, + nickname: true, + }, + }, + }, + }); + } + + updateById(id: string, product: Partial): Promise { + return prisma.product.update({ + where: { + id, + }, + data: { + ...product, + }, + }); + } + + save( + product: Prisma.XOR< + Prisma.ProductCreateInput, + Prisma.ProductUncheckedCreateInput + >, + ): Promise { + return prisma.product.create({ + data: product, + }); + } + + deleteById(id: string): Promise { + return prisma.product.delete({ + where: { + id, + }, + }); + } + + likeProduct( + productId: string, + userId: number, + ): Promise<[ProductFavorite, Product]> { + return prisma.$transaction([ + prisma.productFavorite.create({ + data: { + productId, + userId, + }, + }), + prisma.product.update({ + where: { + id: productId, + }, + data: { + favoriteCount: { + increment: 1, + }, + }, + }), + ]); + } + + unlikeProduct( + productId: string, + userId: number, + ): Promise<[ProductFavorite, Product]> { + return prisma.$transaction([ + prisma.productFavorite.delete({ + where: { + userId_productId: { + userId, + productId, + }, + }, + }), + prisma.product.update({ + where: { + id: productId, + }, + data: { + favoriteCount: { + decrement: 1, + }, + }, + }), + ]); + } + + getProductFavorite( + productId: string, + userId: number, + ): Promise { + return prisma.productFavorite.findUnique({ + where: { + userId_productId: { + userId, + productId, + }, + }, + }); + } +} + +const productRepository = new ProductRepository(); + +export default productRepository; diff --git a/sprint11/src/repositories/reviewRepository.ts b/sprint11/src/repositories/reviewRepository.ts new file mode 100644 index 00000000..31ad8187 --- /dev/null +++ b/sprint11/src/repositories/reviewRepository.ts @@ -0,0 +1,72 @@ +// import prisma from "../config/prisma.ts"; +// import { Review } from "@prisma/client"; + +// export interface IReviewRepository { +// save(): Promise; +// } + +// async function save(review) { +// const createdReview = await prisma.review.create({ +// data: { +// title: review.title, +// description: review.description, +// rating: review.rating, +// product: { +// connect: { +// id: review.productId, +// }, +// }, +// author: { +// connect: { +// id: review.authorId, +// }, +// }, +// }, +// }); +// return createdReview; +// } + +// async function getById(id) { +// const review = await prisma.review.findUnique({ +// where: { +// id: parseInt(id, 10), +// }, +// }); +// return review; +// } + +// async function getAll() { +// const reviews = await prisma.review.findMany(); +// return reviews; +// } + +// async function update(id, review) { +// const updatedReview = await prisma.review.update({ +// where: { +// id: parseInt(id, 10), +// }, +// data: { +// title: review.title, +// description: review.description, +// rating: review.rating, +// }, +// }); +// return updatedReview; +// } + +// async function deleteById(id) { +// const deletedReview = await prisma.review.delete({ +// where: { +// id: parseInt(id, 10), +// }, +// }); +// return deletedReview; +// } + +// export default { +// save, +// getById, +// getAll, +// update, +// deleteById, +// }; diff --git a/sprint11/src/repositories/userRepository.ts b/sprint11/src/repositories/userRepository.ts new file mode 100644 index 00000000..018f45c4 --- /dev/null +++ b/sprint11/src/repositories/userRepository.ts @@ -0,0 +1,65 @@ +import { User } from "@prisma/client"; +import prisma from "../config/prisma"; + +export interface IUserRepository { + findById(id: number): Promise; + findByEmail(email: string): Promise; + save(user: User): Promise; + update(id: number, data: Partial): Promise; + createOrUpdate( + provider: string, + providerId: string, + email: string, + nickname?: string, + ): Promise; +} + +export class UserRepository implements IUserRepository { + findById(id: number) { + return prisma.user.findUnique({ + where: { + id, + }, + }); + } + + findByEmail(email: string) { + return prisma.user.findUnique({ + where: { + email, + }, + }); + } + + save(user: User) { + return prisma.user.create({ + data: { ...user }, + }); + } + + update(id: number, data: Partial) { + return prisma.user.update({ + where: { + id, + }, + data, + }); + } + + createOrUpdate( + provider: string, + providerId: string, + email: string, + nickname?: string, + ) { + return prisma.user.upsert({ + where: { email }, + update: { provider, providerId }, + create: { provider, providerId, email, nickname }, + }); + } +} + +const userRepository = new UserRepository(); + +export default userRepository; diff --git a/sprint11/src/services/articleCommentService.ts b/sprint11/src/services/articleCommentService.ts new file mode 100644 index 00000000..769399cf --- /dev/null +++ b/sprint11/src/services/articleCommentService.ts @@ -0,0 +1,33 @@ +import articleCommentRepository from "../repositories/articleCommentRepository"; + +async function findManyComments(articleId: string) { + return await articleCommentRepository.findManyComments(articleId); +} + +async function create(articleId: string, userId: number, content: string) { + return await articleCommentRepository.create({ + data: { + articleId, + commenterId: userId, + content, + }, + }); +} + +async function updateById( + id: string, + data: { content: string; articleId: string }, +) { + return await articleCommentRepository.updateById(id, data); +} + +async function deleteById(id: string) { + return await articleCommentRepository.deleteById(id); +} + +export default { + findManyComments, + create, + updateById, + deleteById, +}; diff --git a/sprint11/src/services/articleService.ts b/sprint11/src/services/articleService.ts new file mode 100644 index 00000000..6bd865d6 --- /dev/null +++ b/sprint11/src/services/articleService.ts @@ -0,0 +1,97 @@ +import { Article, Prisma } from "@prisma/client"; +import articleRepository from "../repositories/articleRepository"; +import { CustomError } from "../types/types"; +import HttpStatus from "../httpStatus"; + +async function getArticles( + { page = 1, pageSize = 12, sort = "recent", keyword = "" }: { + page: number; + pageSize: number; + sort: string; + keyword: string; + }, +) { + if (page < 1) { + page = 1; + } + const skip = (page - 1) * pageSize; + const take = pageSize; + + const query = keyword + ? { + OR: [{ + title: { contains: keyword as string }, + }, { + content: { contains: keyword as string }, + }], + } + : {}; + let orderBy; + switch (sort) { + case "favorite": + orderBy = { favoriteCount: "desc" as const }; + break; + case "oldest": + orderBy = { createdAt: "asc" as const }; + break; + case "recent": + default: + orderBy = { createdAt: "desc" as const }; + } + + const { list, totalCount } = await articleRepository.getArticles({ + skip, + take, + orderBy, + where: query, + }); + + return { + list, + totalCount, + }; +} + +async function create( + data: Prisma.XOR< + Prisma.ArticleCreateInput, + Prisma.ArticleUncheckedCreateInput + >, +) { + return await articleRepository.create(data); +} + +async function updateById(id: string, data: Partial
) { + return await articleRepository.updateById(id, data); +} + +async function deleteById(id: string) { + return await articleRepository.deleteById(id); +} + +async function getById(id: string, userId: number) { + const article = await articleRepository.getById(id); + if (!article) { + throw new CustomError("Article not found", HttpStatus.NOT_FOUND); + } + const favorite = await articleRepository.getArticleFavorite(id, userId); + return { ...article, isFavorite: favorite !== null }; +} + +async function favorite(articleId: string, userId: number) { + return await articleRepository.likeArticle(articleId, userId); +} + +async function unfavorite(articleId: string, userId: number) { + return await articleRepository.unlikeArticle(articleId, userId); +} + +export default { + getArticles, + create, + updateById, + deleteById, + getById, + favorite, + unfavorite, +}; diff --git a/sprint11/src/services/productCommentService.ts b/sprint11/src/services/productCommentService.ts new file mode 100644 index 00000000..4a989265 --- /dev/null +++ b/sprint11/src/services/productCommentService.ts @@ -0,0 +1,56 @@ +import { Prisma, ProductComment } from "@prisma/client"; +import productCommentRepository from "../repositories/productCommentRepository"; + +async function create( + data: Prisma.XOR< + Prisma.ProductCommentCreateInput, + Prisma.ProductCommentUncheckedCreateInput + >, +) { + try { + const createdComment = await productCommentRepository.create(data); + return createdComment; + } catch (error) { + throw error; + } +} + +async function findManyComments(productId: string) { + try { + const comments = await productCommentRepository.findManyComments(productId); + + return comments; + } catch (error) { + throw error; + } +} + +async function update(commentId: string, data: Partial) { + try { + const updatedComment = await productCommentRepository.updateById( + commentId, + data, + ); + + return updatedComment; + } catch (error) { + throw error; + } +} + +async function deleteById(commentId: string) { + try { + const deletedComment = await productCommentRepository.deleteById(commentId); + + return deletedComment; + } catch (error) { + throw error; + } +} + +export default { + create, + findManyComments, + update, + deleteById, +}; diff --git a/sprint11/src/services/productService.ts b/sprint11/src/services/productService.ts new file mode 100644 index 00000000..4d068531 --- /dev/null +++ b/sprint11/src/services/productService.ts @@ -0,0 +1,95 @@ +import { Prisma, Product } from "@prisma/client"; +import productRepository from "../repositories/productRepository"; + +async function getProducts( + { page = 1, pageSize = 10, sort = "recent", keyword = "" }: { + page: number; + pageSize: number; + sort: string; + keyword: string; + }, +) { + if (page < 1) { + page = 1; + } + const skip = (page - 1) * pageSize; + const take = pageSize; + + const query = keyword + ? { + OR: [{ + name: { contains: keyword }, + }, { + description: { contains: keyword }, + }], + } + : {}; + let orderBy; + switch (sort) { + case "favorite": + orderBy = { favoriteCount: "desc" as const }; + break; + case "oldest": + orderBy = { createdAt: "asc" as const }; + break; + case "recent": + default: + orderBy = { createdAt: "desc" as const }; + } + + const { products: list, totalCount } = await productRepository.getProducts({ + skip, + take, + orderBy, + where: query, + }); + + return { + list, + totalCount, + }; +} + +async function getById(id: string, userId: number) { + const product = await productRepository.getById(id); + if (!product) { + throw new Error("Product not found"); + } + const favorite = await productRepository.getProductFavorite(id, userId); + return { ...product, isFavorite: favorite !== null }; +} + +async function updateById(id: string, product: Partial) { + return await productRepository.updateById(id, product); +} + +async function create( + product: Prisma.XOR< + Prisma.ProductCreateInput, + Prisma.ProductUncheckedCreateInput + >, +) { + return await productRepository.save(product); +} + +async function deleteById(id: string) { + return await productRepository.deleteById(id); +} + +async function favorite(productId: string, userId: number) { + return await productRepository.likeProduct(productId, userId); +} + +async function unfavorite(productId: string, userId: number) { + return await productRepository.unlikeProduct(productId, userId); +} + +export default { + getProducts, + getById, + updateById, + create, + deleteById, + favorite, + unfavorite, +}; diff --git a/sprint11/src/services/reviewService.ts b/sprint11/src/services/reviewService.ts new file mode 100644 index 00000000..60f3e005 --- /dev/null +++ b/sprint11/src/services/reviewService.ts @@ -0,0 +1,29 @@ +// import reviewRepository from '../repositories/reviewRepository.js'; + +// async function create(review) { +// return reviewRepository.save(review); +// } + +// async function getById(id) { +// return reviewRepository.getById(id); +// } + +// async function getAll() { +// return reviewRepository.getAll(); +// } + +// async function update(id, review) { +// return reviewRepository.update(id, review); +// } + +// async function deleteById(id) { +// return reviewRepository.deleteById(id); +// } + +// export default { +// create, +// getById, +// getAll, +// update, +// deleteById, +// }; diff --git a/sprint11/src/services/userService.ts b/sprint11/src/services/userService.ts new file mode 100644 index 00000000..ff606cea --- /dev/null +++ b/sprint11/src/services/userService.ts @@ -0,0 +1,130 @@ +import userRepository from "../repositories/userRepository"; +import bcrypt from "bcrypt"; +import jwt from "jsonwebtoken"; +import HttpStatus from "../httpStatus"; +import { User } from "@prisma/client"; +import { CustomError } from "../types/types"; +import process from "node:process"; + +function hashingPassword(password: string) { // ํ•จ์ˆ˜ ์ถ”๊ฐ€ + return bcrypt.hash(password, 10); // 2^10 ๋ฒˆ hash +} + +function createToken(userId: number, type: "refresh" | "access") { + const payload = { userId }; + const options = { + expiresIn: type === "refresh" ? "1w" : "1d", + }; + return jwt.sign(payload, process.env.JWT_SECRET as string, options); +} + +export type FilteredUser = Omit; + +function filterSensitiveUserData( + user: User & { password?: string }, +): FilteredUser { + const { password, encryptedPassword, refreshToken, ...rest } = user; + return rest; +} + +async function createUser(user: User & { password: string }) { + const existedUser = await userRepository.findByEmail(user.email); + + if (existedUser) { + const error = new Error("User already exists"); + throw error; + } + + const hashedPassword: string = await hashingPassword(user.password); // ํ•ด์‹ฑ ๊ณผ์ • ์ถ”๊ฐ€ + const createdUser = await userRepository.save({ + ...user, + encryptedPassword: hashedPassword, + }); // password ์ถ”๊ฐ€ + return filterSensitiveUserData(createdUser); +} + +async function verifyPassword( + inputPassword: string, + savedPassword: string | null, +) { + if (savedPassword === null) { + const error = new CustomError( + "Unauthorized: Wrong password!", + HttpStatus.UNAUTHORIZED, + ); + throw error; + } + const isValid = await bcrypt.compare(inputPassword, savedPassword); + if (!isValid) { + const error = new CustomError( + "Unauthorized: Wrong password!", + HttpStatus.UNAUTHORIZED, + ); + throw error; + } +} + +async function getUser(email: string, password: string) { + const user = await userRepository.findByEmail(email); + if (!user) { + const error = new CustomError("User not found.", HttpStatus.NOT_FOUND); + throw error; + } + verifyPassword(password, user.encryptedPassword); + return filterSensitiveUserData(user); +} + +async function getUserById(id: number) { + const user = await userRepository.findById(id); + + if (!user) { + const error = new CustomError("User not found.", HttpStatus.NOT_FOUND); + throw error; + } + + return filterSensitiveUserData(user); +} + +async function updateUser(id: number, data: Partial) { + return await userRepository.update(id, data); +} + +async function refreshToken(userId: number, refreshToken: string) { + const user = await userRepository.findById(userId); + if (!user || user.refreshToken !== refreshToken) { + const error = new CustomError("Unauthorized", HttpStatus.UNAUTHORIZED); + throw error; + } + const accessToken = createToken(user.id, "access"); // ๋ณ€๊ฒฝ + const newRefreshToken = createToken(user.id, "refresh"); // ์ถ”๊ฐ€ + return { accessToken, newRefreshToken }; +} + +async function oauthCreateOrUpdate( + provider: string, + providerId: string, + nickname: string, + email?: string, +) { + if (!email) { + throw new CustomError("Email is required!", HttpStatus.BAD_REQUEST); + } + const user = await userRepository.createOrUpdate( + provider, + providerId, + email, + nickname, + ); + return filterSensitiveUserData(user); +} + +export default { + hashingPassword, + createUser, + getUser, + createToken, + updateUser, + refreshToken, + getUserById, + oauthCreateOrUpdate, +}; diff --git a/sprint11/src/structs.ts b/sprint11/src/structs.ts new file mode 100644 index 00000000..e13de11a --- /dev/null +++ b/sprint11/src/structs.ts @@ -0,0 +1,58 @@ +import isEmail from "is-email"; +// import isUuid from "is-uuid"; +import { + array, + define, + integer, + min, + number, + object, + partial, + size, + string, +} from "superstruct"; + +// const Uuid = define('Uuid', (value: unknown) => isUuid.v4(value as string)); +const email = define("email", (value: unknown) => isEmail(value as string)); + +export const CreateUser = object({ + email: email, + nickname: size(string(), 1, 20), + password: string(), +}); +export const PatchUser = partial(CreateUser); +// * User id ๋Š” ๋”ฐ๋กœ ๋ฐ›์•„์•ผ ํ•จ. + +export const CreateProduct = object({ + name: size(string(), 1, 10), + description: size(string(), 10, 100), + price: min(number(), 0), + tags: size(array(string()), 0, 15), + images: size(array(string()), 0, 3), + ownerId: integer(), + favoriteCount: min(integer(), 0), +}); +export const PatchProduct = partial(CreateProduct); +// * Product id ๋Š” ๋”ฐ๋กœ ๋ฐ›์•„์•ผ ํ•จ. + +export const CreateArticle = object({ + title: size(string(), 1, 50), + authorId: integer(), + content: size(string(), 10, 500), + images: size(array(string()), 0, 3), + favoriteCount: min(integer(), 0), +}); +export const PatchArticle = partial(CreateArticle); +// * Article id ๋Š” ๋”ฐ๋กœ ๋ฐ›์•„์•ผ ํ•จ. + +export const CreateProductComment = object({ + commenterId: integer(), + content: size(string(), 1, 255), +}); +// * Patch ๋Š” ์œ„ ๋ฐ์ดํ„ฐ์— id ์ถ”๊ฐ€. + +export const CreateArticleComment = object({ + commenterId: integer(), + content: size(string(), 1, 255), +}); +// * Patch ๋Š” ์œ„ ๋ฐ์ดํ„ฐ์— id ์ถ”๊ฐ€. diff --git a/sprint11/src/types/types.ts b/sprint11/src/types/types.ts new file mode 100644 index 00000000..8e86bedb --- /dev/null +++ b/sprint11/src/types/types.ts @@ -0,0 +1,23 @@ +import HttpStatus from "../httpStatus"; + +// export interface User { +// id: number; +// email: string; +// nickname?: string; +// image?: string; +// encryptedPassword?: string; +// refreshToken?: string; +// provider: string; +// providerId?: string; +// createdAt: Date; +// updatedAt: Date; +// } + +export class CustomError extends Error { + code: HttpStatus; + + constructor(message: string, code: HttpStatus) { + super(message); + this.code = code; + } +} diff --git a/sprint11/tsconfig.json b/sprint11/tsconfig.json new file mode 100644 index 00000000..43d1f391 --- /dev/null +++ b/sprint11/tsconfig.json @@ -0,0 +1,113 @@ +{ + "compilerOptions": { + /* Visit https://aka.ms/tsconfig to read more about this file */ + + /* Projects */ + // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */ + // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */ + // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */ + // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */ + // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ + // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ + + /* Language and Environment */ + "target": "ESNext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ + // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ + // "jsx": "preserve", /* Specify what JSX code is generated. */ + // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */ + // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */ + // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */ + // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */ + // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */ + // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */ + // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ + // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ + // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */ + + /* Modules */ + "module": "CommonJS", /* Specify what module code is generated. */ + "rootDir": "./", /* Specify the root folder within your source files. */ + // "moduleResolution": "nodenext", /* Specify how TypeScript looks up a file from a given module specifier. */ + // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ + // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ + // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ + "typeRoots": ["./node_modules/@types", "./types"], /* Specify multiple folders that act like './node_modules/@types'. */ + // "types": [], /* Specify type package names to be included without being referenced in a source file. */ + // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ + // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */ + // "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */ + // "rewriteRelativeImportExtensions": true, /* Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files. */ + // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */ + // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */ + // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */ + // "noUncheckedSideEffectImports": true, /* Check side effect imports. */ + // "resolveJsonModule": true, /* Enable importing .json files. */ + // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */ + // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ + + /* JavaScript Support */ + "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ + "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ + // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ + + /* Emit */ + // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ + // "declarationMap": true, /* Create sourcemaps for d.ts files. */ + // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ + // "sourceMap": true, /* Create source map files for emitted JavaScript files. */ + // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */ + // "noEmit": true, /* Disable emitting files from a compilation. */ + // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */ + "outDir": "dist", /* Specify an output folder for all emitted files. */ + // "removeComments": true, /* Disable emitting comments. */ + // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ + // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */ + // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */ + // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ + // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */ + // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */ + // "newLine": "crlf", /* Set the newline character for emitting files. */ + // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */ + // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */ + // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */ + // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */ + // "declarationDir": "./", /* Specify the output directory for generated declaration files. */ + + /* Interop Constraints */ + // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */ + // "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */ + // "isolatedDeclarations": true, /* Require sufficient annotation on exports so other tools can trivially generate declaration files. */ + "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ + "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ + // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */ + "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ + + /* Type Checking */ + "strict": true, /* Enable all strict type-checking options. */ + // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */ + // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */ + // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */ + // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */ + // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */ + // "strictBuiltinIteratorReturn": true, /* Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'. */ + // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */ + // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */ + // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */ + // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */ + // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */ + // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */ + // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */ + // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */ + // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */ + // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */ + // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */ + // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */ + // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */ + + /* Completeness */ + // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ + "skipLibCheck": true /* Skip type checking all .d.ts files. */ + }, + "include": ["src/**/*", "prisma/**/*"], + "exclude": ["node_modules"] +} diff --git a/sprint11/types/types.d.ts b/sprint11/types/types.d.ts new file mode 100644 index 00000000..634c3e35 --- /dev/null +++ b/sprint11/types/types.d.ts @@ -0,0 +1,9 @@ +import { FilteredUser } from "../src/services/userService"; + +declare global { + namespace Express { + interface Request { + user?: Express.User | FilteredUser; + } + } +} diff --git "a/sprint11/uploads/1731471235283-\303\254\302\270\302\204\303\254\302\270\302\204 \303\254\302\206\302\234\303\253\302\255\302\211\303\254\302\271\302\230 \303\254\302\213\302\234\303\254\302\240\302\210.png" "b/sprint11/uploads/1731471235283-\303\254\302\270\302\204\303\254\302\270\302\204 \303\254\302\206\302\234\303\253\302\255\302\211\303\254\302\271\302\230 \303\254\302\213\302\234\303\254\302\240\302\210.png" new file mode 100644 index 00000000..f515f148 Binary files /dev/null and "b/sprint11/uploads/1731471235283-\303\254\302\270\302\204\303\254\302\270\302\204 \303\254\302\206\302\234\303\253\302\255\302\211\303\254\302\271\302\230 \303\254\302\213\302\234\303\254\302\240\302\210.png" differ diff --git "a/sprint11/uploads/1731487658562-\303\254\302\270\302\204\303\254\302\270\302\204 \303\253\302\262\302\214\303\253\302\237\302\254\303\253\302\215\302\251.jpg" "b/sprint11/uploads/1731487658562-\303\254\302\270\302\204\303\254\302\270\302\204 \303\253\302\262\302\214\303\253\302\237\302\254\303\253\302\215\302\251.jpg" new file mode 100644 index 00000000..1ecaeda1 Binary files /dev/null and "b/sprint11/uploads/1731487658562-\303\254\302\270\302\204\303\254\302\270\302\204 \303\253\302\262\302\214\303\253\302\237\302\254\303\253\302\215\302\251.jpg" differ diff --git a/sprint11/uploads/1734425814012-1711545151810.jpg b/sprint11/uploads/1734425814012-1711545151810.jpg new file mode 100644 index 00000000..22b8fcd6 Binary files /dev/null and b/sprint11/uploads/1734425814012-1711545151810.jpg differ