chore(deps): add zod and nestjs-zod for schema validation

This commit is contained in:
2026-02-07 03:43:59 +08:00
parent 0bf46e887d
commit e8a8ad389c
7 changed files with 175 additions and 146 deletions

54
pnpm-lock.yaml generated
View File

@@ -41,18 +41,12 @@ importers:
better-sqlite3:
specifier: ^12.6.2
version: 12.6.2
class-transformer:
specifier: ^0.5.1
version: 0.5.1
class-validator:
specifier: ^0.14.3
version: 0.14.3
dotenv:
specifier: ^17.2.3
version: 17.2.4
jsonwebtoken:
specifier: ^9.0.2
version: 9.0.3
nestjs-zod:
specifier: ^5.1.1
version: 5.1.1(@nestjs/common@11.1.13(class-transformer@0.5.1)(class-validator@0.14.3)(reflect-metadata@0.2.2)(rxjs@7.8.2))(rxjs@7.8.2)(zod@4.3.6)
passport:
specifier: ^0.7.0
version: 0.7.0
@@ -71,6 +65,9 @@ importers:
rxjs:
specifier: ^7.8.2
version: 7.8.2
zod:
specifier: ^4.3.6
version: 4.3.6
devDependencies:
'@nestjs/cli':
specifier: ^11.0.16
@@ -87,9 +84,6 @@ importers:
'@types/jest':
specifier: ^30.0.0
version: 30.0.0
'@types/jsonwebtoken':
specifier: ^9.0.10
version: 9.0.10
'@types/node':
specifier: ^25.2.1
version: 25.2.1
@@ -2601,6 +2595,17 @@ packages:
neo-async@2.6.2:
resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==}
nestjs-zod@5.1.1:
resolution: {integrity: sha512-pXa9Jrdip7iedKvGxJTvvCFVRCoIcNENPCsHjpCefPH3PcFejRgkZkUcr3TYITRyxnUk7Zy5OsLpirZGLYBfBQ==}
peerDependencies:
'@nestjs/common': ^10.0.0 || ^11.0.0
'@nestjs/swagger': ^7.4.2 || ^8.0.0 || ^11.0.0
rxjs: ^7.0.0
zod: ^3.25.0 || ^4.0.0
peerDependenciesMeta:
'@nestjs/swagger':
optional: true
node-abi@3.87.0:
resolution: {integrity: sha512-+CGM1L1CgmtheLcBuleyYOn7NWPVu0s0EJH2C4puxgEZb9h8QpR9G2dBfZJOAUhi7VQxuBPMd0hiISWcTyiYyQ==}
engines: {node: '>=10'}
@@ -3439,6 +3444,9 @@ packages:
zeptomatch@2.1.0:
resolution: {integrity: sha512-KiGErG2J0G82LSpniV0CtIzjlJ10E04j02VOudJsPyPwNZgGnRKQy7I1R7GMyg/QswnE4l7ohSGrQbQbjXPPDA==}
zod@4.3.6:
resolution: {integrity: sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==}
snapshots:
'@angular-devkit/core@19.2.17(chokidar@4.0.3)':
@@ -4587,7 +4595,8 @@ snapshots:
'@types/methods': 1.1.4
'@types/superagent': 8.1.9
'@types/validator@13.15.10': {}
'@types/validator@13.15.10':
optional: true
'@types/yargs-parser@21.0.3': {}
@@ -5027,13 +5036,15 @@ snapshots:
cjs-module-lexer@2.2.0: {}
class-transformer@0.5.1: {}
class-transformer@0.5.1:
optional: true
class-validator@0.14.3:
dependencies:
'@types/validator': 13.15.10
libphonenumber-js: 1.12.36
validator: 13.15.26
optional: true
cli-cursor@3.1.0:
dependencies:
@@ -6055,7 +6066,8 @@ snapshots:
leven@3.1.0: {}
libphonenumber-js@1.12.36: {}
libphonenumber-js@1.12.36:
optional: true
lilconfig@2.1.0: {}
@@ -6221,6 +6233,13 @@ snapshots:
neo-async@2.6.2: {}
nestjs-zod@5.1.1(@nestjs/common@11.1.13(class-transformer@0.5.1)(class-validator@0.14.3)(reflect-metadata@0.2.2)(rxjs@7.8.2))(rxjs@7.8.2)(zod@4.3.6):
dependencies:
'@nestjs/common': 11.1.13(class-transformer@0.5.1)(class-validator@0.14.3)(reflect-metadata@0.2.2)(rxjs@7.8.2)
deepmerge: 4.3.1
rxjs: 7.8.2
zod: 4.3.6
node-abi@3.87.0:
dependencies:
semver: 7.7.4
@@ -6964,7 +6983,8 @@ snapshots:
optionalDependencies:
typescript: 5.9.3
validator@13.15.26: {}
validator@13.15.26:
optional: true
vary@1.1.2: {}
@@ -7099,3 +7119,5 @@ snapshots:
dependencies:
grammex: 3.1.12
graphmatch: 1.1.0
zod@4.3.6: {}