diff --git a/package.json b/package.json index 2502949..48b8114 100644 --- a/package.json +++ b/package.json @@ -20,28 +20,28 @@ "devDependencies": { "@types/cors": "^2.8.17", "@types/express": "^4.17.21", - "@types/node": "^20.12.2", + "@types/node": "^20.14.9", "@types/swagger-ui-express": "^4.1.6", - "nodemon": "^3.1.3", - "prettier": "^3.2.5", - "prisma": "^5.16.0", + "nodemon": "^3.1.4", + "prettier": "^3.3.2", + "prisma": "^5.16.1", "prisma-kysely": "^1.8.0", "ts-node": "^10.9.2", - "typescript": "^5.4.3" + "typescript": "^5.5.2" }, "dependencies": { - "@elastic/elasticsearch": "^8.13.0", - "@prisma/client": "^5.16.0", - "@tsoa/runtime": "^6.2.0", + "@elastic/elasticsearch": "^8.14.0", + "@prisma/client": "^5.16.1", + "@tsoa/runtime": "^6.3.0", "cors": "^2.8.5", "dotenv": "^16.4.5", "express": "^4.19.2", - "fast-jwt": "^4.0.0", + "fast-jwt": "^4.0.1", "kysely": "^0.27.3", - "minio": "^7.1.3", + "minio": "^8.0.1", "prisma-extension-kysely": "^2.1.0", "promise.any": "^2.0.6", - "swagger-ui-express": "^5.0.0", - "tsoa": "^6.2.0" + "swagger-ui-express": "^5.0.1", + "tsoa": "^6.3.1" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 08a3c9d..bb3008f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,14 +9,14 @@ importers: .: dependencies: '@elastic/elasticsearch': - specifier: ^8.13.0 - version: 8.13.0 + specifier: ^8.14.0 + version: 8.14.0 '@prisma/client': - specifier: ^5.16.0 - version: 5.16.0(prisma@5.16.0) + specifier: ^5.16.1 + version: 5.16.1(prisma@5.16.1) '@tsoa/runtime': - specifier: ^6.2.0 - version: 6.2.0 + specifier: ^6.3.0 + version: 6.3.0 cors: specifier: ^2.8.5 version: 2.8.5 @@ -27,26 +27,26 @@ importers: specifier: ^4.19.2 version: 4.19.2 fast-jwt: - specifier: ^4.0.0 - version: 4.0.0 + specifier: ^4.0.1 + version: 4.0.1 kysely: specifier: ^0.27.3 version: 0.27.3 minio: - specifier: ^7.1.3 - version: 7.1.3 + specifier: ^8.0.1 + version: 8.0.1 prisma-extension-kysely: specifier: ^2.1.0 - version: 2.1.0(@prisma/client@5.16.0(prisma@5.16.0)) + version: 2.1.0(@prisma/client@5.16.1(prisma@5.16.1)) promise.any: specifier: ^2.0.6 version: 2.0.6 swagger-ui-express: - specifier: ^5.0.0 - version: 5.0.0(express@4.19.2) + specifier: ^5.0.1 + version: 5.0.1(express@4.19.2) tsoa: - specifier: ^6.2.0 - version: 6.2.0 + specifier: ^6.3.1 + version: 6.3.1 devDependencies: '@types/cors': specifier: ^2.8.17 @@ -55,29 +55,29 @@ importers: specifier: ^4.17.21 version: 4.17.21 '@types/node': - specifier: ^20.12.2 - version: 20.12.2 + specifier: ^20.14.9 + version: 20.14.9 '@types/swagger-ui-express': specifier: ^4.1.6 version: 4.1.6 nodemon: - specifier: ^3.1.3 - version: 3.1.3 + specifier: ^3.1.4 + version: 3.1.4 prettier: - specifier: ^3.2.5 - version: 3.2.5 + specifier: ^3.3.2 + version: 3.3.2 prisma: - specifier: ^5.16.0 - version: 5.16.0 + specifier: ^5.16.1 + version: 5.16.1 prisma-kysely: specifier: ^1.8.0 version: 1.8.0 ts-node: specifier: ^10.9.2 - version: 10.9.2(@types/node@20.12.2)(typescript@5.4.3) + version: 10.9.2(@types/node@20.14.9)(typescript@5.5.2) typescript: - specifier: ^5.4.3 - version: 5.4.3 + specifier: ^5.5.2 + version: 5.5.2 packages: @@ -113,12 +113,12 @@ packages: resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} engines: {node: '>=12'} - '@elastic/elasticsearch@8.13.0': - resolution: {integrity: sha512-OAYgzqArPqgDaIJ1yT0RX31YCgr1lleo53zL+36i23PFjHu08CA6Uq+BmBzEV05yEidl+ILPdeSfF3G8hPG/JQ==} + '@elastic/elasticsearch@8.14.0': + resolution: {integrity: sha512-MGrgCI4y+Ozssf5Q2IkVJlqt5bUMnKIICG2qxeOfrJNrVugMCBCAQypyesmSSocAtNm8IX3LxfJ3jQlFHmKe2w==} engines: {node: '>=18'} - '@elastic/transport@8.5.0': - resolution: {integrity: sha512-T+zSUHXBfrqlj/E9pJiaEgKoTdGykBCohzNBt6omDfI6EQtaNT240oMO03oXo35T8rwrCVonSMSoedbmToncVA==} + '@elastic/transport@8.6.1': + resolution: {integrity: sha512-3vGs4W3wP5oeIT/4j1vcvd+t7m6ndP0uyb5GDY23LQCmbtI5Oq0aQwD9gb09KJbLFLUbI7db9vMFPzKavSFA5g==} engines: {node: '>=18'} '@hapi/accept@6.0.3': @@ -254,8 +254,8 @@ packages: resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} engines: {node: '>=14'} - '@prisma/client@5.16.0': - resolution: {integrity: sha512-8NOQSzgrSgpU2YcNm4MsPR4/vNvZdUBPuyX89PwWlClSKZeDjPSZ8+eds/ffu1Ttrjnm8V8D0hjgqpyc6wyqDg==} + '@prisma/client@5.16.1': + resolution: {integrity: sha512-wM9SKQjF0qLxdnOZIVAIMKiz6Hu7vDt4FFAih85K1dk/Rr2mdahy6d3QP41K62N9O0DJJA//gUDA3Mp49xsKIg==} engines: {node: '>=16.13'} peerDependencies: prisma: '*' @@ -263,8 +263,8 @@ packages: prisma: optional: true - '@prisma/debug@5.16.0': - resolution: {integrity: sha512-pfdOGxMShqZKkNNskYB0yXICsqL6rOkQUKNktouUZ9Y9ASd5736+ae2fpzif7onwJiIyEpu/yvOO3rFUbliKTA==} + '@prisma/debug@5.16.1': + resolution: {integrity: sha512-JsNgZAg6BD9RInLSrg7ZYzo11N7cVvYArq3fHGSD89HSgtN0VDdjV6bib7YddbcO6snzjchTiLfjeTqBjtArVQ==} '@prisma/debug@5.3.1': resolution: {integrity: sha512-eYrxqslEKf+wpMFIIHgbcNYuZBXUdiJLA85Or3TwOhgPIN1ZoXT9CwJph3ynW8H1Xg0LkdYLwVmuULCwiMoU5A==} @@ -272,14 +272,14 @@ packages: '@prisma/engines-version@5.16.0-24.34ace0eb2704183d2c05b60b52fba5c43c13f303': resolution: {integrity: sha512-HkT2WbfmFZ9WUPyuJHhkiADxazHg8Y4gByrTSVeb3OikP6tjQ7txtSUGu9OBOBH0C13dPKN2qqH12xKtHu/Hiw==} - '@prisma/engines@5.16.0': - resolution: {integrity: sha512-OGvi/GvLX3XwTWQ+k/57kLyHGidQ8rC8zB+Zq9nEE7gegjazyzgLYN9qzfdcCfyI8ilc6IMxOyX4sspwkv98hg==} + '@prisma/engines@5.16.1': + resolution: {integrity: sha512-KkyF3eIUtBIyp5A/rJHCtwQO18OjpGgx18PzjyGcJDY/+vNgaVyuVd+TgwBgeq6NLdd1XMwRCI+58vinHsAdfA==} '@prisma/engines@5.3.1': resolution: {integrity: sha512-6QkILNyfeeN67BNEPEtkgh3Xo2tm6D7V+UhrkBbRHqKw9CTaz/vvTP/ROwYSP/3JT2MtIutZm/EnhxUiuOPVDA==} - '@prisma/fetch-engine@5.16.0': - resolution: {integrity: sha512-8C8y6J9eWRl+R/aO3vQ2HlmM9IbjAmrZaaEAdC0OJfG3CHvbTOcL7VRY6CEUKo8RwZ8bdATOePaSMS634fHWgw==} + '@prisma/fetch-engine@5.16.1': + resolution: {integrity: sha512-oOkjaPU1lhcA/Rvr4GVfd1NLJBwExgNBE36Ueq7dr71kTMwy++a3U3oLd2ZwrV9dj9xoP6LjCcky799D9nEt4w==} '@prisma/fetch-engine@5.3.1': resolution: {integrity: sha512-w1yk1YiK8N82Pobdq58b85l6e8akyrkxuzwV9DoiUTRf3gpsuhJJesHc4Yi0WzUC9/3znizl1UfCsI6dhkj3Vw==} @@ -287,8 +287,8 @@ packages: '@prisma/generator-helper@5.3.1': resolution: {integrity: sha512-zrYS0iHLgPlOJjYnd5KvVMMvSS+ktOL39EwooS5EnyvfzwfzxlKCeOUgxTfiKYs0WUWqzEvyNAYtramYgSknsQ==} - '@prisma/get-platform@5.16.0': - resolution: {integrity: sha512-ynp2jAYfYdd7OObX+uWaFRpvhPVmpF0nsRMhbrWdVVUj39q3Zr8dGz5WDj2g+BTUE++u1T1Am3RyM3PBQdDZXA==} + '@prisma/get-platform@5.16.1': + resolution: {integrity: sha512-R4IKnWnMkR2nUAbU5gjrPehdQYUUd7RENFD2/D+xXTNhcqczp0N+WEGQ3ViyI3+6mtVcjjNIMdnUTNyu3GxIgA==} '@prisma/get-platform@5.3.1': resolution: {integrity: sha512-3IiZY2BUjKnAuZ0569zppZE6/rZbVAM09//c2nvPbbkGG9MqrirA8fbhhF7tfVmhyVfdmVCHnf/ujWPHJ8B46Q==} @@ -311,13 +311,13 @@ packages: '@tsconfig/node16@1.0.4': resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==} - '@tsoa/cli@6.2.0': - resolution: {integrity: sha512-kzr10MsARpuivJl59XD33+sdMA18Rx9KBu7NCp18nV6kPQ1LDrVBwVgLL96w7lBgUGsCgVJ1/cUePW313uTZCw==} + '@tsoa/cli@6.3.1': + resolution: {integrity: sha512-KOlsShmAZ8Ju8KCkBFFzdURlGa9YNgf6gAvU6GwnOQl7mcvqvKMk8IDy2bcotpqNcabHo6fbkeExztF/n0Z0kg==} engines: {node: '>=18.0.0', yarn: '>=1.9.4'} hasBin: true - '@tsoa/runtime@6.2.0': - resolution: {integrity: sha512-iXSi5rDZWcPRcLKa9WaMBUdh4SdDN+9Cmy+R7i/DSCtFtbtUqE+ui+IMV9o6+759N6J3FqGBaPWa9kAtOrL4sA==} + '@tsoa/runtime@6.3.0': + resolution: {integrity: sha512-9z/0ePKpSoYpUq1IJvihk4FcgpAkyMTEEl9oFLiL9p5SE86ndsGJdH3kt/IyqtD3wajPSykMRHlAidrGUyLuNQ==} engines: {node: '>=18.0.0', yarn: '>=1.9.4'} '@types/accepts@1.3.7': @@ -378,8 +378,8 @@ packages: '@types/multer@1.4.11': resolution: {integrity: sha512-svK240gr6LVWvv3YGyhLlA+6LRRWA4mnGIU7RcNmgjBYFl6665wcXrRfxGp5tEPVHUNm5FMcmq7too9bxCwX/w==} - '@types/node@20.12.2': - resolution: {integrity: sha512-zQ0NYO87hyN6Xrclcqp7f8ZbXNbRfoGWNcMvHTPQp9UUrwI0mI7XBz+cu7/W6/VClYo2g63B0cjull/srU7LgQ==} + '@types/node@20.14.9': + resolution: {integrity: sha512-06OCtnTXtWOZBJlRApleWndH4JsRVs1pDCc8dLSQp+7PpUpX3ePdHyeNSFTeSe7FtKyQkrlPvHwJOW3SLd8Oyg==} '@types/normalize-package-data@2.4.4': resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==} @@ -537,10 +537,6 @@ packages: brace-expansion@2.0.1: resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==} - braces@3.0.2: - resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==} - engines: {node: '>=8'} - braces@3.0.3: resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} engines: {node: '>=8'} @@ -551,6 +547,10 @@ packages: buffer-crc32@0.2.13: resolution: {integrity: sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==} + buffer-crc32@1.0.0: + resolution: {integrity: sha512-Db1SbgBS/fg/392AblrMJk97KggmvYhr4pB5ZIMTWtaivCPMWLkmb7m21cJvpvgK+J3nsU2CmmixNBZx4vFj/w==} + engines: {node: '>=8.0.0'} + buffer@5.7.1: resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==} @@ -808,6 +808,9 @@ packages: resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==} engines: {node: '>= 0.6'} + eventemitter3@5.0.1: + resolution: {integrity: sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==} + execa@5.1.1: resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==} engines: {node: '>=10'} @@ -820,9 +823,9 @@ packages: resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==} engines: {node: '>=8.6.0'} - fast-jwt@4.0.0: - resolution: {integrity: sha512-CnI93Tmk7eSzfw4e0Jlc5ZcWiN+/zK7xAKAhtXS8PAcKmYqfcXqxJl1hMyhk3iEt0M9JLo7DCYRDV2XcIacWAw==} - engines: {node: '>=16 <22'} + fast-jwt@4.0.1: + resolution: {integrity: sha512-+mdSoH0QdOdFSbbGBctJu7L1yfXRtbmjbVJ4W/PEjyvivobDena0RKwihtBkOML1P+kUJ1QuewnH8u+mROsR1w==} + engines: {node: '>=16'} fast-xml-parser@4.3.6: resolution: {integrity: sha512-M2SovcRxD4+vC493Uc2GZVcZaj66CCJhWurC4viynVSTvrpErCShNcDz1lAho6n9REQKvL/ll4A4/fw6Y9z8nw==} @@ -831,10 +834,6 @@ packages: fastq@1.17.1: resolution: {integrity: sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==} - fill-range@7.0.1: - resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==} - engines: {node: '>=8'} - fill-range@7.1.1: resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} engines: {node: '>=8'} @@ -1219,9 +1218,6 @@ packages: json-parse-even-better-errors@2.3.1: resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==} - json-stream@1.0.0: - resolution: {integrity: sha512-H/ZGY0nIAg3QcOwE1QN/rK/Fa7gJn7Ii5obwp6zyPO4xiPNwpIMjqy2gwjBEGqzkF/vSWEIBQCBuN19hYiL6Qg==} - jsonfile@6.1.0: resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==} @@ -1362,8 +1358,8 @@ packages: minimist@1.2.8: resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} - minio@7.1.3: - resolution: {integrity: sha512-xPrLjWkTT5E7H7VnzOjF//xBp9I40jYB4aWhb2xTFopXXfw+Wo82DDWngdUju7Doy3Wk7R8C4LAgwhLHHnf0wA==} + minio@8.0.1: + resolution: {integrity: sha512-FzDO6yGnqLtm8sp3mXafWtiRUOslJSSg/aI0v9YbN5vjw5KLoODKAROCyi766NIvTSxcfHBrbhCSGk1A+MOzDg==} engines: {node: ^16 || ^18 || >=20} minipass@7.0.4: @@ -1411,8 +1407,8 @@ packages: encoding: optional: true - nodemon@3.1.3: - resolution: {integrity: sha512-m4Vqs+APdKzDFpuaL9F9EVOF85+h070FnkHVEoU4+rmT6Vw0bmNl7s61VEkY/cJkL7RCv1p4urnUDUMrS5rk2w==} + nodemon@3.1.4: + resolution: {integrity: sha512-wjPBbFhtpJwmIeY2yP7QF+UKzPfltVGtfce1g/bB15/8vCGZj8uxD62b/b9M9/WVgme0NZudpownKN+c0plXlQ==} engines: {node: '>=10'} hasBin: true @@ -1562,8 +1558,8 @@ packages: resolution: {integrity: sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==} engines: {node: '>= 0.4'} - prettier@3.2.5: - resolution: {integrity: sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==} + prettier@3.3.2: + resolution: {integrity: sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA==} engines: {node: '>=14'} hasBin: true @@ -1576,8 +1572,8 @@ packages: resolution: {integrity: sha512-VpNpolZ8RXRgfU+j4R+fPZmX8EE95w3vJ2tt7+FwuiQc0leNTfLK5QLf3KbbPDes2rfjh3g20AjDxefQIo5GIA==} hasBin: true - prisma@5.16.0: - resolution: {integrity: sha512-T1ZWJT/vgzp3rtRmd1iCSnPPsgOItXnnny+/cfpHraowiBEvUMD2pEI6yEOL6CP2EelTmq4wKDbXbYucy4Fd+A==} + prisma@5.16.1: + resolution: {integrity: sha512-Z1Uqodk44diztImxALgJJfNl2Uisl9xDRvqybMKEBYJLNKNhDfAHf+ZIJbZyYiBhLMbKU9cYGdDVG5IIXEnL2Q==} engines: {node: '>=16.13'} hasBin: true @@ -1799,6 +1795,12 @@ packages: resolution: {integrity: sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==} engines: {node: '>= 0.4'} + stream-chain@2.2.5: + resolution: {integrity: sha512-1TJmBx6aSWqZ4tx7aTpBDXK0/e2hhcNSTV8+CbFJtDjbb+I1mZ8lHit0Grw9GRT+6JbIrrDd8esncgBi8aBXGA==} + + stream-json@1.8.0: + resolution: {integrity: sha512-HZfXngYHUAr1exT4fxlbc1IOce1RYxp2ldeaf97LYCOPSoOqY/1Psp7iGvpb+6JIOgkra9zDYnPX01hGAHzEPw==} + strict-uri-encode@2.0.0: resolution: {integrity: sha512-QwiXZgpRcKkhTj2Scnn++4PKtWsH0kpzZ62L2R6c/LUVYv7hVnZqcg2+sMuT6R7Jusu1vviK/MFsu6kNJfWlEQ==} engines: {node: '>=4'} @@ -1866,8 +1868,8 @@ packages: swagger-ui-dist@5.13.0: resolution: {integrity: sha512-uaWhh6j18IIs5tOX0arvIBnVINAzpTXaQXkr7qAk8zoupegJVg0UU/5+S/FgsgVCnzVsJ9d7QLjIxkswEeTg0Q==} - swagger-ui-express@5.0.0: - resolution: {integrity: sha512-tsU9tODVvhyfkNSvf03E6FAk+z+5cU3lXAzMy6Pv4av2Gt2xA0++fogwC4qo19XuFf6hdxevPuVCSKFuMHJhFA==} + swagger-ui-express@5.0.1: + resolution: {integrity: sha512-SrNU3RiBGTLLmFU8GIJdOdanJTl4TOmT27tt3bWWHppqYmAZ6IDuEuBvMU6nZq0zLEe6b/1rACXCgLZqO6ZfrA==} engines: {node: '>= v0.10.32'} peerDependencies: express: '>=4.0.0 || >=5.0.0-beta' @@ -1934,8 +1936,8 @@ packages: tslib@2.6.2: resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} - tsoa@6.2.0: - resolution: {integrity: sha512-EX/RyoU+4hD1rLM5NjYG+I7lEhqx1yuLgcHs/gyWQpkX/RL9cVR9hFA9LKQrK6PE+WTg1SEahn1MK3l/+6pVKw==} + tsoa@6.3.1: + resolution: {integrity: sha512-w2INTVkjqQDlWo5aLv/ZIVAgWSfOOUstOW1WWVYOa+9mY2Er/W9E9BcBpIdaoJ5BtUZimhhhs5BQ2Nn76OfQpw==} engines: {node: '>=18.0.0', yarn: '>=1.9.4'} hasBin: true @@ -1975,8 +1977,8 @@ packages: resolution: {integrity: sha512-/OxDN6OtAk5KBpGb28T+HZc2M+ADtvRxXrKKbUwtsLgdoxgX13hyy7ek6bFRl5+aBs2yZzB0c4CnQfAtVypW/g==} engines: {node: '>= 0.4'} - typescript@5.4.3: - resolution: {integrity: sha512-KrPd3PKaCLr78MalgiwJnA25Nm8HAmdwN3mYUYZgG/wizIo9EainNVQI9/yDavtVFRN2h3k8uf3GLHuhDMgEHg==} + typescript@5.5.2: + resolution: {integrity: sha512-NcRtPEOsPFFWjobJEtfihkLCZCXZt/os3zf8nTxjVH3RvTSxjrCamJpbExGvYOF+tFHc3pA65qpdwPbzjohhew==} engines: {node: '>=14.17'} hasBin: true @@ -1994,9 +1996,9 @@ packages: undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} - undici@6.11.1: - resolution: {integrity: sha512-KyhzaLJnV1qa3BSHdj4AZ2ndqI0QWPxYzaIOio0WzcEJB9gvuysprJSLtpvc2D9mhR9jPDUk7xlJlZbH2KR5iw==} - engines: {node: '>=18.0'} + undici@6.19.2: + resolution: {integrity: sha512-JfjKqIauur3Q6biAtHJ564e3bWa8VvT+7cSiOJHFbX4Erv6CLGDpg8z+Fmg/1OI/47RA+GI2QZaF48SSaLvyBA==} + engines: {node: '>=18.17'} unique-string@2.0.0: resolution: {integrity: sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==} @@ -2077,9 +2079,6 @@ packages: resolution: {integrity: sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==} engines: {node: '>=4.0.0'} - xml@1.0.1: - resolution: {integrity: sha512-huCv9IH9Tcf95zuYCsQraZtWnJvBtLVE0QHMOs8bWyZAFZNDcYjsPq1nEx8jKA9y+Beo9v+7OBPRisQTjinQMw==} - xmlbuilder@11.0.1: resolution: {integrity: sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==} engines: {node: '>=4.0'} @@ -2156,21 +2155,21 @@ snapshots: dependencies: '@jridgewell/trace-mapping': 0.3.9 - '@elastic/elasticsearch@8.13.0': + '@elastic/elasticsearch@8.14.0': dependencies: - '@elastic/transport': 8.5.0 + '@elastic/transport': 8.6.1 tslib: 2.6.2 transitivePeerDependencies: - supports-color - '@elastic/transport@8.5.0': + '@elastic/transport@8.6.1': dependencies: debug: 4.3.4(supports-color@5.5.0) hpagent: 1.2.0 ms: 2.1.3 secure-json-parse: 2.7.0 tslib: 2.6.2 - undici: 6.11.1 + undici: 6.19.2 transitivePeerDependencies: - supports-color @@ -2379,11 +2378,11 @@ snapshots: '@pkgjs/parseargs@0.11.0': optional: true - '@prisma/client@5.16.0(prisma@5.16.0)': + '@prisma/client@5.16.1(prisma@5.16.1)': optionalDependencies: - prisma: 5.16.0 + prisma: 5.16.1 - '@prisma/debug@5.16.0': {} + '@prisma/debug@5.16.1': {} '@prisma/debug@5.3.1': dependencies: @@ -2395,20 +2394,20 @@ snapshots: '@prisma/engines-version@5.16.0-24.34ace0eb2704183d2c05b60b52fba5c43c13f303': {} - '@prisma/engines@5.16.0': + '@prisma/engines@5.16.1': dependencies: - '@prisma/debug': 5.16.0 + '@prisma/debug': 5.16.1 '@prisma/engines-version': 5.16.0-24.34ace0eb2704183d2c05b60b52fba5c43c13f303 - '@prisma/fetch-engine': 5.16.0 - '@prisma/get-platform': 5.16.0 + '@prisma/fetch-engine': 5.16.1 + '@prisma/get-platform': 5.16.1 '@prisma/engines@5.3.1': {} - '@prisma/fetch-engine@5.16.0': + '@prisma/fetch-engine@5.16.1': dependencies: - '@prisma/debug': 5.16.0 + '@prisma/debug': 5.16.1 '@prisma/engines-version': 5.16.0-24.34ace0eb2704183d2c05b60b52fba5c43c13f303 - '@prisma/get-platform': 5.16.0 + '@prisma/get-platform': 5.16.1 '@prisma/fetch-engine@5.3.1': dependencies: @@ -2442,9 +2441,9 @@ snapshots: transitivePeerDependencies: - supports-color - '@prisma/get-platform@5.16.0': + '@prisma/get-platform@5.16.1': dependencies: - '@prisma/debug': 5.16.0 + '@prisma/debug': 5.16.1 '@prisma/get-platform@5.3.1': dependencies: @@ -2519,9 +2518,9 @@ snapshots: '@tsconfig/node16@1.0.4': {} - '@tsoa/cli@6.2.0': + '@tsoa/cli@6.3.1': dependencies: - '@tsoa/runtime': 6.2.0 + '@tsoa/runtime': 6.3.0 '@types/multer': 1.4.11 fs-extra: 11.2.0 glob: 10.3.12 @@ -2529,14 +2528,14 @@ snapshots: merge-anything: 5.1.7 minimatch: 9.0.4 ts-deepmerge: 7.0.0 - typescript: 5.4.3 + typescript: 5.5.2 validator: 13.11.0 yaml: 2.4.1 yargs: 17.7.2 transitivePeerDependencies: - supports-color - '@tsoa/runtime@6.2.0': + '@tsoa/runtime@6.3.0': dependencies: '@hapi/boom': 10.0.1 '@hapi/hapi': 21.3.7 @@ -2550,16 +2549,16 @@ snapshots: '@types/accepts@1.3.7': dependencies: - '@types/node': 20.12.2 + '@types/node': 20.14.9 '@types/body-parser@1.19.5': dependencies: '@types/connect': 3.4.38 - '@types/node': 20.12.2 + '@types/node': 20.14.9 '@types/connect@3.4.38': dependencies: - '@types/node': 20.12.2 + '@types/node': 20.14.9 '@types/content-disposition@0.5.8': {} @@ -2568,15 +2567,15 @@ snapshots: '@types/connect': 3.4.38 '@types/express': 4.17.21 '@types/keygrip': 1.0.6 - '@types/node': 20.12.2 + '@types/node': 20.14.9 '@types/cors@2.8.17': dependencies: - '@types/node': 20.12.2 + '@types/node': 20.14.9 '@types/cross-spawn@6.0.2': dependencies: - '@types/node': 20.12.2 + '@types/node': 20.14.9 '@types/debug@4.1.8': dependencies: @@ -2584,7 +2583,7 @@ snapshots: '@types/express-serve-static-core@4.17.43': dependencies: - '@types/node': 20.12.2 + '@types/node': 20.14.9 '@types/qs': 6.9.14 '@types/range-parser': 1.2.7 '@types/send': 0.17.4 @@ -2615,7 +2614,7 @@ snapshots: '@types/http-errors': 2.0.4 '@types/keygrip': 1.0.6 '@types/koa-compose': 3.2.8 - '@types/node': 20.12.2 + '@types/node': 20.14.9 '@types/mime@1.3.5': {} @@ -2629,7 +2628,7 @@ snapshots: dependencies: '@types/express': 4.17.21 - '@types/node@20.12.2': + '@types/node@20.14.9': dependencies: undici-types: 5.26.5 @@ -2644,13 +2643,13 @@ snapshots: '@types/send@0.17.4': dependencies: '@types/mime': 1.3.5 - '@types/node': 20.12.2 + '@types/node': 20.14.9 '@types/serve-static@1.15.5': dependencies: '@types/http-errors': 2.0.4 '@types/mime': 4.0.0 - '@types/node': 20.12.2 + '@types/node': 20.14.9 '@types/swagger-ui-express@4.1.6': dependencies: @@ -2833,10 +2832,6 @@ snapshots: dependencies: balanced-match: 1.0.2 - braces@3.0.2: - dependencies: - fill-range: 7.0.1 - braces@3.0.3: dependencies: fill-range: 7.1.1 @@ -2845,6 +2840,8 @@ snapshots: buffer-crc32@0.2.13: {} + buffer-crc32@1.0.0: {} + buffer@5.7.1: dependencies: base64-js: 1.5.1 @@ -2889,7 +2886,7 @@ snapshots: chokidar@3.6.0: dependencies: anymatch: 3.1.3 - braces: 3.0.2 + braces: 3.0.3 glob-parent: 5.1.2 is-binary-path: 2.1.0 is-glob: 4.0.3 @@ -3167,6 +3164,8 @@ snapshots: etag@1.8.1: {} + eventemitter3@5.0.1: {} + execa@5.1.1: dependencies: cross-spawn: 7.0.3 @@ -3223,7 +3222,7 @@ snapshots: merge2: 1.4.1 micromatch: 4.0.7 - fast-jwt@4.0.0: + fast-jwt@4.0.1: dependencies: '@lukeed/ms': 2.0.2 asn1.js: 5.4.1 @@ -3238,10 +3237,6 @@ snapshots: dependencies: reusify: 1.0.4 - fill-range@7.0.1: - dependencies: - to-regex-range: 5.0.1 - fill-range@7.1.1: dependencies: to-regex-range: 5.0.1 @@ -3621,8 +3616,6 @@ snapshots: json-parse-even-better-errors@2.3.1: {} - json-stream@1.0.0: {} - jsonfile@6.1.0: dependencies: universalify: 2.0.1 @@ -3728,21 +3721,21 @@ snapshots: minimist@1.2.8: {} - minio@7.1.3: + minio@8.0.1: dependencies: async: 3.2.5 block-stream2: 2.1.0 browser-or-node: 2.1.1 - buffer-crc32: 0.2.13 + buffer-crc32: 1.0.0 + eventemitter3: 5.0.1 fast-xml-parser: 4.3.6 ipaddr.js: 2.1.0 - json-stream: 1.0.0 lodash: 4.17.21 mime-types: 2.1.35 query-string: 7.1.3 + stream-json: 1.8.0 through2: 4.0.2 web-encoding: 1.1.5 - xml: 1.0.1 xml2js: 0.5.0 minipass@7.0.4: {} @@ -3771,7 +3764,7 @@ snapshots: dependencies: whatwg-url: 5.0.0 - nodemon@3.1.3: + nodemon@3.1.4: dependencies: chokidar: 3.6.0 debug: 4.3.4(supports-color@5.5.0) @@ -3915,26 +3908,26 @@ snapshots: possible-typed-array-names@1.0.0: {} - prettier@3.2.5: {} + prettier@3.3.2: {} - prisma-extension-kysely@2.1.0(@prisma/client@5.16.0(prisma@5.16.0)): + prisma-extension-kysely@2.1.0(@prisma/client@5.16.1(prisma@5.16.1)): dependencies: - '@prisma/client': 5.16.0(prisma@5.16.0) + '@prisma/client': 5.16.1(prisma@5.16.1) prisma-kysely@1.8.0: dependencies: '@mrleebo/prisma-ast': 0.7.0 '@prisma/generator-helper': 5.3.1 '@prisma/internals': 5.3.1 - typescript: 5.4.3 + typescript: 5.5.2 zod: 3.23.8 transitivePeerDependencies: - encoding - supports-color - prisma@5.16.0: + prisma@5.16.1: dependencies: - '@prisma/engines': 5.16.0 + '@prisma/engines': 5.16.1 process-nextick-args@2.0.1: {} @@ -4185,6 +4178,12 @@ snapshots: dependencies: internal-slot: 1.0.7 + stream-chain@2.2.5: {} + + stream-json@1.8.0: + dependencies: + stream-chain: 2.2.5 + strict-uri-encode@2.0.0: {} string-width@4.2.3: @@ -4259,7 +4258,7 @@ snapshots: swagger-ui-dist@5.13.0: {} - swagger-ui-express@5.0.0(express@4.19.2): + swagger-ui-express@5.0.1(express@4.19.2): dependencies: express: 4.19.2 swagger-ui-dist: 5.13.0 @@ -4309,21 +4308,21 @@ snapshots: ts-deepmerge@7.0.0: {} - ts-node@10.9.2(@types/node@20.12.2)(typescript@5.4.3): + ts-node@10.9.2(@types/node@20.14.9)(typescript@5.5.2): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 20.12.2 + '@types/node': 20.14.9 acorn: 8.11.3 acorn-walk: 8.3.2 arg: 4.1.3 create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.4.3 + typescript: 5.5.2 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 @@ -4331,10 +4330,10 @@ snapshots: tslib@2.6.2: {} - tsoa@6.2.0: + tsoa@6.3.1: dependencies: - '@tsoa/cli': 6.2.0 - '@tsoa/runtime': 6.2.0 + '@tsoa/cli': 6.3.1 + '@tsoa/runtime': 6.3.0 transitivePeerDependencies: - supports-color @@ -4383,7 +4382,7 @@ snapshots: is-typed-array: 1.1.13 possible-typed-array-names: 1.0.0 - typescript@5.4.3: {} + typescript@5.5.2: {} uglify-js@3.17.4: optional: true @@ -4399,7 +4398,7 @@ snapshots: undici-types@5.26.5: {} - undici@6.11.1: {} + undici@6.19.2: {} unique-string@2.0.0: dependencies: @@ -4488,8 +4487,6 @@ snapshots: sax: 1.3.0 xmlbuilder: 11.0.1 - xml@1.0.1: {} - xmlbuilder@11.0.1: {} y18n@5.0.8: {} diff --git a/src/services/minio.ts b/src/services/minio.ts index 1204c72..1a78e8d 100644 --- a/src/services/minio.ts +++ b/src/services/minio.ts @@ -37,13 +37,15 @@ export async function listObjectVersion(bucket: string, obj: string) { export async function deleteObjectAllVersion(bucket: string, obj: string) { const item = await listObjectVersion(bucket, obj); - return await new Promise((resolve, reject) => { - minio.removeObjects( - bucket, - // @ts-ignore - item.map(({ name, versionId }) => ({ name, versionId })), // type error (ts not support) - expected "string[]" - (e) => (e && reject(e)) || resolve(true), - ); + return await new Promise(async (resolve, reject) => { + await minio + .removeObjects( + bucket, + item.map(({ name, versionId }) => ({ name, versionId })), + ) + .catch((e) => reject(e)); + + resolve(true); }); }