diff --git a/package-lock.json b/package-lock.json index e3576e3..bb7f84f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,14 +9,11 @@ "version": "0.0.1", "license": "ISC", "dependencies": { - "@prisma/client": "^4.16.2", - "@types/helmet": "^4.0.0", + "@prisma/client": "^5.13.0", "cors": "^2.8.5", "dotenv": "^16.4.5", "express": "^4.19.2", "helmet": "^6.2.0", - "prisma": "^4.16.2", - "shapely": "^0.2.3", "typescript": "^4.9.5", "zod": "^3.22.4" }, @@ -28,6 +25,7 @@ "@total-typescript/ts-reset": "^0.4.2", "@types/cors": "^2.8.13", "@types/express": "^4.17.17", + "@types/helmet": "^4.0.0", "@types/jest": "^29.4.0", "@types/node": "^18.14.6", "@types/supertest": "^2.0.12", @@ -1725,15 +1723,12 @@ } }, "node_modules/@prisma/client": { - "version": "4.16.2", - "resolved": "https://registry.npmjs.org/@prisma/client/-/client-4.16.2.tgz", - "integrity": "sha512-qCoEyxv1ZrQ4bKy39GnylE8Zq31IRmm8bNhNbZx7bF2cU5aiCCnSa93J2imF88MBjn7J9eUQneNxUQVJdl/rPQ==", + "version": "5.13.0", + "resolved": "https://registry.npmjs.org/@prisma/client/-/client-5.13.0.tgz", + "integrity": "sha512-uYdfpPncbZ/syJyiYBwGZS8Gt1PTNoErNYMuqHDa2r30rNSFtgTA/LXsSk55R7pdRTMi5pHkeP9B14K6nHmwkg==", "hasInstallScript": true, - "dependencies": { - "@prisma/engines-version": "4.16.1-1.4bc8b6e1b66cb932731fb1bdbbc550d1e010de81" - }, "engines": { - "node": ">=14.17" + "node": ">=16.13" }, "peerDependencies": { "prisma": "*" @@ -1748,12 +1743,9 @@ "version": "4.16.2", "resolved": "https://registry.npmjs.org/@prisma/engines/-/engines-4.16.2.tgz", "integrity": "sha512-vx1nxVvN4QeT/cepQce68deh/Turxy5Mr+4L4zClFuK1GlxN3+ivxfuv+ej/gvidWn1cE1uAhW7ALLNlYbRUAw==", - "hasInstallScript": true - }, - "node_modules/@prisma/engines-version": { - "version": "4.16.1-1.4bc8b6e1b66cb932731fb1bdbbc550d1e010de81", - "resolved": "https://registry.npmjs.org/@prisma/engines-version/-/engines-version-4.16.1-1.4bc8b6e1b66cb932731fb1bdbbc550d1e010de81.tgz", - "integrity": "sha512-q617EUWfRIDTriWADZ4YiWRZXCa/WuhNgLTVd+HqWLffjMSPzyM5uOWoauX91wvQClSKZU4pzI4JJLQ9Kl62Qg==" + "hasInstallScript": true, + "optional": true, + "peer": true }, "node_modules/@sinclair/typebox": { "version": "0.25.24", @@ -2204,6 +2196,7 @@ "resolved": "https://registry.npmjs.org/@types/helmet/-/helmet-4.0.0.tgz", "integrity": "sha512-ONIn/nSNQA57yRge3oaMQESef/6QhoeX7llWeDli0UZIfz8TQMkfNPTXA8VnnyeA1WUjG2pGqdjEIueYonMdfQ==", "deprecated": "This is a stub types definition. helmet provides its own type definitions, so you do not need this installed.", + "dev": true, "dependencies": { "helmet": "*" } @@ -8224,6 +8217,8 @@ "resolved": "https://registry.npmjs.org/prisma/-/prisma-4.16.2.tgz", "integrity": "sha512-SYCsBvDf0/7XSJyf2cHTLjLeTLVXYfqp7pG5eEVafFLeT0u/hLFz/9W196nDRGUOo1JfPatAEb+uEnTQImQC1g==", "hasInstallScript": true, + "optional": true, + "peer": true, "dependencies": { "@prisma/engines": "4.16.2" }, @@ -8443,11 +8438,6 @@ "node": ">=8" } }, - "node_modules/ramda": { - "version": "0.18.0", - "resolved": "https://registry.npmjs.org/ramda/-/ramda-0.18.0.tgz", - "integrity": "sha1-xuPF1LmrH3kGcn/e6wORUqhdTbM=" - }, "node_modules/range-parser": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", @@ -9134,20 +9124,6 @@ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" }, - "node_modules/shapely": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/shapely/-/shapely-0.2.3.tgz", - "integrity": "sha512-GVJ48VqRmzYp9j6n7XGtShdBtqX+rxn8kZEfPKd9ddDaXSyUB/j6bcnD/N9SD0fzl/gWdoIsTW3S5Tp1yEc/xw==", - "dependencies": { - "lodash": "^3.10.1", - "ramda": "^0.18.0" - } - }, - "node_modules/shapely/node_modules/lodash": { - "version": "3.10.1", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz", - "integrity": "sha512-9mDDwqVIma6OZX79ZlDACZl8sBm0TEnkf99zV3iMA4GzkIT/9hiqP5mY0HoT1iNLCrKc/R1HByV+yJfRWVJryQ==" - }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", @@ -11875,22 +11851,17 @@ } }, "@prisma/client": { - "version": "4.16.2", - "resolved": "https://registry.npmjs.org/@prisma/client/-/client-4.16.2.tgz", - "integrity": "sha512-qCoEyxv1ZrQ4bKy39GnylE8Zq31IRmm8bNhNbZx7bF2cU5aiCCnSa93J2imF88MBjn7J9eUQneNxUQVJdl/rPQ==", - "requires": { - "@prisma/engines-version": "4.16.1-1.4bc8b6e1b66cb932731fb1bdbbc550d1e010de81" - } + "version": "5.13.0", + "resolved": "https://registry.npmjs.org/@prisma/client/-/client-5.13.0.tgz", + "integrity": "sha512-uYdfpPncbZ/syJyiYBwGZS8Gt1PTNoErNYMuqHDa2r30rNSFtgTA/LXsSk55R7pdRTMi5pHkeP9B14K6nHmwkg==", + "requires": {} }, "@prisma/engines": { "version": "4.16.2", "resolved": "https://registry.npmjs.org/@prisma/engines/-/engines-4.16.2.tgz", - "integrity": "sha512-vx1nxVvN4QeT/cepQce68deh/Turxy5Mr+4L4zClFuK1GlxN3+ivxfuv+ej/gvidWn1cE1uAhW7ALLNlYbRUAw==" - }, - "@prisma/engines-version": { - "version": "4.16.1-1.4bc8b6e1b66cb932731fb1bdbbc550d1e010de81", - "resolved": "https://registry.npmjs.org/@prisma/engines-version/-/engines-version-4.16.1-1.4bc8b6e1b66cb932731fb1bdbbc550d1e010de81.tgz", - "integrity": "sha512-q617EUWfRIDTriWADZ4YiWRZXCa/WuhNgLTVd+HqWLffjMSPzyM5uOWoauX91wvQClSKZU4pzI4JJLQ9Kl62Qg==" + "integrity": "sha512-vx1nxVvN4QeT/cepQce68deh/Turxy5Mr+4L4zClFuK1GlxN3+ivxfuv+ej/gvidWn1cE1uAhW7ALLNlYbRUAw==", + "optional": true, + "peer": true }, "@sinclair/typebox": { "version": "0.25.24", @@ -12217,6 +12188,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/@types/helmet/-/helmet-4.0.0.tgz", "integrity": "sha512-ONIn/nSNQA57yRge3oaMQESef/6QhoeX7llWeDli0UZIfz8TQMkfNPTXA8VnnyeA1WUjG2pGqdjEIueYonMdfQ==", + "dev": true, "requires": { "helmet": "*" } @@ -16757,6 +16729,8 @@ "version": "4.16.2", "resolved": "https://registry.npmjs.org/prisma/-/prisma-4.16.2.tgz", "integrity": "sha512-SYCsBvDf0/7XSJyf2cHTLjLeTLVXYfqp7pG5eEVafFLeT0u/hLFz/9W196nDRGUOo1JfPatAEb+uEnTQImQC1g==", + "optional": true, + "peer": true, "requires": { "@prisma/engines": "4.16.2" } @@ -16898,11 +16872,6 @@ "integrity": "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==", "dev": true }, - "ramda": { - "version": "0.18.0", - "resolved": "https://registry.npmjs.org/ramda/-/ramda-0.18.0.tgz", - "integrity": "sha1-xuPF1LmrH3kGcn/e6wORUqhdTbM=" - }, "range-parser": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", @@ -17419,22 +17388,6 @@ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" }, - "shapely": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/shapely/-/shapely-0.2.3.tgz", - "integrity": "sha512-GVJ48VqRmzYp9j6n7XGtShdBtqX+rxn8kZEfPKd9ddDaXSyUB/j6bcnD/N9SD0fzl/gWdoIsTW3S5Tp1yEc/xw==", - "requires": { - "lodash": "^3.10.1", - "ramda": "^0.18.0" - }, - "dependencies": { - "lodash": { - "version": "3.10.1", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz", - "integrity": "sha512-9mDDwqVIma6OZX79ZlDACZl8sBm0TEnkf99zV3iMA4GzkIT/9hiqP5mY0HoT1iNLCrKc/R1HByV+yJfRWVJryQ==" - } - } - }, "shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", diff --git a/package.json b/package.json index 94df06a..c3b08ff 100644 --- a/package.json +++ b/package.json @@ -32,18 +32,16 @@ }, "homepage": "https://github.com/pshaddel/ts-express-prisma-rest#readme", "dependencies": { - "@prisma/client": "^4.16.2", - "@types/helmet": "^4.0.0", + "@prisma/client": "^5.13.0", "cors": "^2.8.5", "dotenv": "^16.4.5", "express": "^4.19.2", "helmet": "^6.2.0", - "prisma": "^4.16.2", - "shapely": "^0.2.3", "typescript": "^4.9.5", "zod": "^3.22.4" }, "devDependencies": { + "@types/helmet": "^4.0.0", "@commitlint/cli": "^17.4.4", "@commitlint/config-conventional": "^17.4.4", "@swc/core": "^1.3.38", diff --git a/src/user/user.service.ts b/src/user/user.service.ts index c245398..63ab154 100644 --- a/src/user/user.service.ts +++ b/src/user/user.service.ts @@ -14,4 +14,4 @@ export const userCreationValidator = z.object({ email: z.string().email() }); -type UserCreationObject = z.infer; \ No newline at end of file +type UserCreationObject = z.infer;