From 177d094d286501b955a9eae7382fc75984b46aaa Mon Sep 17 00:00:00 2001 From: Rubin Bhandari Date: Mon, 25 Sep 2023 22:48:32 +0545 Subject: [PATCH] fix: optional chains on min.max lenghth --- package.json | 16 +- pnpm-lock.yaml | 230 +++++++++--------- .../validation/is-password.validator.ts | 4 +- .../validation/is-username.validator.ts | 4 +- 4 files changed, 127 insertions(+), 127 deletions(-) diff --git a/package.json b/package.json index ffad6d06..7cf19455 100644 --- a/package.json +++ b/package.json @@ -82,8 +82,8 @@ "@nestjs/websockets": "^10.2.6", "@ntegral/nestjs-sentry": "^4.0.0", "@paralleldrive/cuid2": "^2.2.2", - "@sentry/hub": "^7.70.0", - "@sentry/node": "^7.70.0", + "@sentry/hub": "^7.71.0", + "@sentry/node": "^7.71.0", "@socket.io/redis-adapter": "^8.2.1", "@supercharge/request-ip": "^1.2.0", "argon2": "^0.31.1", @@ -120,7 +120,7 @@ "passport-magic-login": "^1.2.2", "pino-http": "^8.5.0", "pino-pretty": "^10.2.0", - "poolifier": "^2.7.3", + "poolifier": "^2.7.4", "preview-email": "^3.0.19", "prom-client": "^14.2.0", "pug": "^3.0.2", @@ -148,9 +148,9 @@ "@nestjs/testing": "10.2.6", "@rubiin/eslint-config-ts": "^1.5.1", "@rubiin/tsconfig": "^1.1.0", - "@sentry/types": "^7.70.0", + "@sentry/types": "^7.71.0", "@side/jest-runtime": "^1.1.0", - "@swc/core": "^1.3.88", + "@swc/core": "^1.3.89", "@swc/jest": "^0.2.29", "@total-typescript/ts-reset": "^0.5.1", "@types/cache-manager": "^4.0.3", @@ -169,9 +169,9 @@ "@types/pug": "^2.0.7", "@types/qrcode": "^1.5.2", "@types/qs": "6.9.8", - "@types/supertest": "2.0.12", - "@types/swagger-stats": "^0.95.8", - "@types/swagger-ui-express": "^4.1.3", + "@types/supertest": "2.0.13", + "@types/swagger-stats": "^0.95.9", + "@types/swagger-ui-express": "^4.1.4", "@typescript-eslint/eslint-plugin": "^6.7.2", "@typescript-eslint/parser": "^6.7.2", "cross-env": "^7.0.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6f988be9..70db6db0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -91,16 +91,16 @@ dependencies: version: 10.2.6(@nestjs/common@10.2.6)(@nestjs/core@10.2.6)(@nestjs/platform-socket.io@10.2.6)(reflect-metadata@0.1.13)(rxjs@7.8.1) '@ntegral/nestjs-sentry': specifier: ^4.0.0 - version: 4.0.0(@nestjs/common@10.2.6)(@nestjs/core@10.2.6)(@sentry/hub@7.70.0)(@sentry/node@7.70.0)(class-transformer@0.5.1)(class-validator@0.14.0)(graphql@16.8.1)(reflect-metadata@0.1.13)(rimraf@3.0.2)(rxjs@7.8.1) + version: 4.0.0(@nestjs/common@10.2.6)(@nestjs/core@10.2.6)(@sentry/hub@7.71.0)(@sentry/node@7.71.0)(class-transformer@0.5.1)(class-validator@0.14.0)(graphql@16.8.1)(reflect-metadata@0.1.13)(rimraf@3.0.2)(rxjs@7.8.1) '@paralleldrive/cuid2': specifier: ^2.2.2 version: 2.2.2 '@sentry/hub': - specifier: ^7.70.0 - version: 7.70.0 + specifier: ^7.71.0 + version: 7.71.0 '@sentry/node': - specifier: ^7.70.0 - version: 7.70.0 + specifier: ^7.71.0 + version: 7.71.0 '@socket.io/redis-adapter': specifier: ^8.2.1 version: 8.2.1(socket.io-adapter@2.5.2) @@ -210,8 +210,8 @@ dependencies: specifier: ^10.2.0 version: 10.2.0 poolifier: - specifier: ^2.7.3 - version: 2.7.3 + specifier: ^2.7.4 + version: 2.7.4 preview-email: specifier: ^3.0.19 version: 3.0.19 @@ -276,7 +276,7 @@ devDependencies: version: 5.8.3(@mikro-orm/core@5.8.3) '@nestjs/cli': specifier: 10.1.18 - version: 10.1.18(@swc/core@1.3.88) + version: 10.1.18(@swc/core@1.3.89) '@nestjs/schematics': specifier: 10.0.2 version: 10.0.2(chokidar@3.5.3)(typescript@5.2.2) @@ -290,17 +290,17 @@ devDependencies: specifier: ^1.1.0 version: 1.1.0 '@sentry/types': - specifier: ^7.70.0 - version: 7.70.0 + specifier: ^7.71.0 + version: 7.71.0 '@side/jest-runtime': specifier: ^1.1.0 version: 1.1.0(@jest/transform@29.7.0)(jest-runtime@29.7.0)(jest@29.7.0) '@swc/core': - specifier: ^1.3.88 - version: 1.3.88 + specifier: ^1.3.89 + version: 1.3.89 '@swc/jest': specifier: ^0.2.29 - version: 0.2.29(@swc/core@1.3.88) + version: 0.2.29(@swc/core@1.3.89) '@total-typescript/ts-reset': specifier: ^0.5.1 version: 0.5.1 @@ -353,14 +353,14 @@ devDependencies: specifier: 6.9.8 version: 6.9.8 '@types/supertest': - specifier: 2.0.12 - version: 2.0.12 + specifier: 2.0.13 + version: 2.0.13 '@types/swagger-stats': - specifier: ^0.95.8 - version: 0.95.8 + specifier: ^0.95.9 + version: 0.95.9 '@types/swagger-ui-express': - specifier: ^4.1.3 - version: 4.1.3 + specifier: ^4.1.4 + version: 4.1.4 '@typescript-eslint/eslint-plugin': specifier: ^6.7.2 version: 6.7.2(@typescript-eslint/parser@6.7.2)(eslint@8.50.0)(typescript@5.2.2) @@ -372,7 +372,7 @@ devDependencies: version: 7.0.3 cz-conventional-changelog: specifier: 3.3.0 - version: 3.3.0(@swc/core@1.3.88) + version: 3.3.0(@swc/core@1.3.89) eslint: specifier: ^8.50.0 version: 8.50.0 @@ -408,7 +408,7 @@ devDependencies: version: 9.4.4(typescript@5.2.2)(webpack@5.88.2) ts-node: specifier: 10.9.1 - version: 10.9.1(@swc/core@1.3.88)(@types/node@20.6.5)(typescript@5.2.2) + version: 10.9.1(@swc/core@1.3.89)(@types/node@20.6.5)(typescript@5.2.2) tsconfig-paths: specifier: 4.2.0 version: 4.2.0 @@ -417,7 +417,7 @@ devDependencies: version: 5.2.2 webpack: specifier: ^5.88.2 - version: 5.88.2(@swc/core@1.3.88) + version: 5.88.2(@swc/core@1.3.89) webpack-node-externals: specifier: ^3.0.0 version: 3.0.0 @@ -1485,7 +1485,7 @@ packages: dev: true optional: true - /@commitlint/load@17.7.1(@swc/core@1.3.88): + /@commitlint/load@17.7.1(@swc/core@1.3.89): resolution: {integrity: sha512-S/QSOjE1ztdogYj61p6n3UbkUvweR17FQ0zDbNtoTLc+Hz7vvfS7ehoTMQ27hPSjVBpp7SzEcOQu081RLjKHJQ==} engines: {node: '>=v14'} requiresBuild: true @@ -1502,7 +1502,7 @@ packages: lodash.merge: 4.6.2 lodash.uniq: 4.5.0 resolve-from: 5.0.0 - ts-node: 10.9.1(@swc/core@1.3.88)(@types/node@20.4.7)(typescript@5.2.2) + ts-node: 10.9.1(@swc/core@1.3.89)(@types/node@20.4.7)(typescript@5.2.2) typescript: 5.2.2 transitivePeerDependencies: - '@swc/core' @@ -2774,7 +2774,7 @@ packages: rxjs: 7.8.1 dev: false - /@nestjs/cli@10.1.18(@swc/core@1.3.88): + /@nestjs/cli@10.1.18(@swc/core@1.3.89): resolution: {integrity: sha512-jQtG47keLsACt7b4YwJbTBYRm90n82gJpMaiR1HGAyQ9pccbctjSYu592eT4bxqkUWxPgBE3mpNynXj7dWAfrw==} engines: {node: '>= 16'} hasBin: true @@ -2791,7 +2791,7 @@ packages: '@angular-devkit/schematics': 16.2.3(chokidar@3.5.3) '@angular-devkit/schematics-cli': 16.2.3(chokidar@3.5.3) '@nestjs/schematics': 10.0.2(chokidar@3.5.3)(typescript@5.2.2) - '@swc/core': 1.3.88 + '@swc/core': 1.3.89 chalk: 4.1.2 chokidar: 3.5.3 cli-table3: 0.6.3 @@ -2808,7 +2808,7 @@ packages: tsconfig-paths: 4.2.0 tsconfig-paths-webpack-plugin: 4.1.0 typescript: 5.2.2 - webpack: 5.88.2(@swc/core@1.3.88) + webpack: 5.88.2(@swc/core@1.3.89) webpack-node-externals: 3.0.0 transitivePeerDependencies: - esbuild @@ -3238,7 +3238,7 @@ packages: '@nodelib/fs.scandir': 2.1.5 fastq: 1.15.0 - /@ntegral/nestjs-sentry@4.0.0(@nestjs/common@10.2.6)(@nestjs/core@10.2.6)(@sentry/hub@7.70.0)(@sentry/node@7.70.0)(class-transformer@0.5.1)(class-validator@0.14.0)(graphql@16.8.1)(reflect-metadata@0.1.13)(rimraf@3.0.2)(rxjs@7.8.1): + /@ntegral/nestjs-sentry@4.0.0(@nestjs/common@10.2.6)(@nestjs/core@10.2.6)(@sentry/hub@7.71.0)(@sentry/node@7.71.0)(class-transformer@0.5.1)(class-validator@0.14.0)(graphql@16.8.1)(reflect-metadata@0.1.13)(rimraf@3.0.2)(rxjs@7.8.1): resolution: {integrity: sha512-6WHZcK7NLeg7ue1y3Z61msEBzCGZeXQ0hWhliH1ddQH0kPbZ6lXLxduGMWYb0N/fPjXAX1Astz8urqnoTOZBQw==} peerDependencies: '@nestjs/common': ^9.0.4 @@ -3251,8 +3251,8 @@ packages: dependencies: '@nestjs/common': 10.2.6(class-transformer@0.5.1)(class-validator@0.14.0)(reflect-metadata@0.1.13)(rxjs@7.8.1) '@nestjs/core': 10.2.6(@nestjs/common@10.2.6)(@nestjs/platform-express@10.2.6)(@nestjs/websockets@10.2.6)(reflect-metadata@0.1.13)(rxjs@7.8.1) - '@sentry/hub': 7.70.0 - '@sentry/node': 7.70.0 + '@sentry/hub': 7.71.0 + '@sentry/node': 7.71.0 reflect-metadata: 0.1.13 rimraf: 3.0.2 rxjs: 7.8.1 @@ -3495,43 +3495,43 @@ packages: selderee: 0.11.0 dev: false - /@sentry-internal/tracing@7.70.0: - resolution: {integrity: sha512-SpbE6wZhs6QwG2ORWCt8r28o1T949qkWx/KeRTCdK4Ub95PQ3Y3DgnqD8Wz//3q50Wt6EZDEibmz4t067g6PPg==} + /@sentry-internal/tracing@7.71.0: + resolution: {integrity: sha512-HRGsQOrA2Y3Ga+NTgCkTWO+qtU2SFTJ7t9pt/LR8Har9cvVcjLIlHNwPoDx6bVkICK3cGOF8ZtXVmLizVbXoAg==} engines: {node: '>=8'} dependencies: - '@sentry/core': 7.70.0 - '@sentry/types': 7.70.0 - '@sentry/utils': 7.70.0 + '@sentry/core': 7.71.0 + '@sentry/types': 7.71.0 + '@sentry/utils': 7.71.0 tslib: 2.6.2 dev: false - /@sentry/core@7.70.0: - resolution: {integrity: sha512-voUsGVM+jwRp99AQYFnRvr7sVd2tUhIMj1L6F42LtD3vp7t5ZnKp3NpXagtFW2vWzXESfyJUBhM0qI/bFvn7ZA==} + /@sentry/core@7.71.0: + resolution: {integrity: sha512-kZcWnzxzMxyNuCwq65owu0yGbY+C9QJhWFMDBsqmKK1/dSt0bdhNjf3VQW1dJLnWaQTk7rUTHEHGH8JSdV5EAg==} engines: {node: '>=8'} dependencies: - '@sentry/types': 7.70.0 - '@sentry/utils': 7.70.0 + '@sentry/types': 7.71.0 + '@sentry/utils': 7.71.0 tslib: 2.6.2 dev: false - /@sentry/hub@7.70.0: - resolution: {integrity: sha512-2Nu7/amz3IjHiVMTv0H+csmUdOnK70fnlIHHCxOAq76SacTSn8vfWKCbigkH9lWSiFwI+07jSIeW52HLNLJOcw==} + /@sentry/hub@7.71.0: + resolution: {integrity: sha512-fvnNELNCCMlptDe6oCr40VYAEaTqWgfhjGps+ezqaE6Prb8y5XrEaZI3x7WrzQ2t/0GdR2hjoM4R43ZcSpudVg==} engines: {node: '>=8'} dependencies: - '@sentry/core': 7.70.0 - '@sentry/types': 7.70.0 - '@sentry/utils': 7.70.0 + '@sentry/core': 7.71.0 + '@sentry/types': 7.71.0 + '@sentry/utils': 7.71.0 tslib: 2.6.2 dev: false - /@sentry/node@7.70.0: - resolution: {integrity: sha512-GeGlnu3QnJX0GN2FvZ3E31e48ZhRzEpREyC0Wa4BRvYHnyiGvsQjo/0RKeq6vvlggRhVnuoMg/jESyUmdntrAA==} + /@sentry/node@7.71.0: + resolution: {integrity: sha512-rvCzfLWAeX+16mOJeb08xDlpBdn/H/G8dj9mENQAom8O0SgMkkRyfYc9pnvsmU5gjuS7C9u+e4ZlOLLr1xZ+zQ==} engines: {node: '>=8'} dependencies: - '@sentry-internal/tracing': 7.70.0 - '@sentry/core': 7.70.0 - '@sentry/types': 7.70.0 - '@sentry/utils': 7.70.0 + '@sentry-internal/tracing': 7.71.0 + '@sentry/core': 7.71.0 + '@sentry/types': 7.71.0 + '@sentry/utils': 7.71.0 cookie: 0.5.0 https-proxy-agent: 5.0.1 lru_map: 0.3.3 @@ -3540,15 +3540,15 @@ packages: - supports-color dev: false - /@sentry/types@7.70.0: - resolution: {integrity: sha512-rY4DqpiDBtXSk4MDNBH3dwWqfPbNBI/9GA7Y5WJSIcObBtfBKp0fzYliHJZD0pgM7d4DPFrDn42K9Iiumgymkw==} + /@sentry/types@7.71.0: + resolution: {integrity: sha512-30PRLZI1RoeWbLE9K7AHsRPWDH22CqC4WcLNeVmRfLC5m1vE1FHb53r98QSKFhLoONMPMVzDhZZgl4ZcC5mptQ==} engines: {node: '>=8'} - /@sentry/utils@7.70.0: - resolution: {integrity: sha512-0cChMH0lsGp+5I3D4wOHWwjFN19HVrGUs7iWTLTO5St3EaVbdeLbI1vFXHxMxvopbwgpeZafbreHw/loIdZKpw==} + /@sentry/utils@7.71.0: + resolution: {integrity: sha512-aS53l/E/5XsSJMOXHKvS0GlX4gZHBgNAMfhEB3f8rUIn5iLF2uu8lCA1uEvX6VB8b7q/Cg4WFTi6BiJ0hvJHQg==} engines: {node: '>=8'} dependencies: - '@sentry/types': 7.70.0 + '@sentry/types': 7.71.0 tslib: 2.6.2 dev: false @@ -4069,8 +4069,8 @@ packages: resolution: {integrity: sha512-wlt6JW69MHqLY2M6Sm/jVyCojNRKq2CBvwH0Hbx24SFhDQQGkgEjeKxVutDxHSyrWixFaOSLXC27euzxijhyMQ==} dev: false - /@swc/core-darwin-arm64@1.3.88: - resolution: {integrity: sha512-Nb7kKydSQK3FE90pw/GPRFmAkquDQcTixLijNcki2xFBXh/DcGdFUPE/GShQjk8gtQelj2vqZrsGs/GZPGA1mA==} + /@swc/core-darwin-arm64@1.3.89: + resolution: {integrity: sha512-LVCZQ2yGrX2678uMvW66IF1bzcOMqiABi+ioNDnJtAIsE/zRVMEYp1ivbOrH32FmPplBby6CGgJIOT3P4VaP1g==} engines: {node: '>=10'} cpu: [arm64] os: [darwin] @@ -4078,8 +4078,8 @@ packages: dev: true optional: true - /@swc/core-darwin-x64@1.3.88: - resolution: {integrity: sha512-RcCrnjkmLXL1izSHPYLaJKVaxwd64LYiYLqjX2jXG4U50D6LOlmuLeqTJ8aAnENZP19gNpsY9ggY9jD5UQqHAw==} + /@swc/core-darwin-x64@1.3.89: + resolution: {integrity: sha512-IwKlX65YrPBF3urOxBJia0PjnZeaICnCkSwGLiYyV1RhM8XwZ/XyEDTBEsdph3WxUM5wCZQSk8UY/d0saIsX9w==} engines: {node: '>=10'} cpu: [x64] os: [darwin] @@ -4087,8 +4087,8 @@ packages: dev: true optional: true - /@swc/core-linux-arm-gnueabihf@1.3.88: - resolution: {integrity: sha512-/H7QhpgbWX4xe6jbkgPrhjY543oCCmbPRvBMvZ3iuLb81bEtOFiEp9LYe/95ZW/BTz2z9a6fQtQMqkhAjcrV5w==} + /@swc/core-linux-arm-gnueabihf@1.3.89: + resolution: {integrity: sha512-u5qAPh7NkKoDJYwfaB5zuRvzW2+A89CQQHp5xcYjpctRsk3sUrPmC7vNeE12xipBNKLujIG59ppbrf6Pkp5XIg==} engines: {node: '>=10'} cpu: [arm] os: [linux] @@ -4096,8 +4096,8 @@ packages: dev: true optional: true - /@swc/core-linux-arm64-gnu@1.3.88: - resolution: {integrity: sha512-ar/oQJxisjn/Su9rsg+XcBqA54Ylh1SyrZiLslv37OnGr785Xw+C//rw+JGoFmCZSjhGAU5hriOiHJd2S8mtqA==} + /@swc/core-linux-arm64-gnu@1.3.89: + resolution: {integrity: sha512-eykuO7XtPltk600HvnnRr1nU5qGk7PeqLmztHA7R2bu2SbtcbCGsewPNcAX5eP8by2VwpGcLPdxaKyqeUwCgoA==} engines: {node: '>=10'} cpu: [arm64] os: [linux] @@ -4105,8 +4105,8 @@ packages: dev: true optional: true - /@swc/core-linux-arm64-musl@1.3.88: - resolution: {integrity: sha512-ZyUtCk1Y4GpOajbHcnm2JwkFm/m8M/wP3I8iaAm/0yAPIYwQInVdD0Hn++eig2Y+nLJ7gT0QI82fFUDPEIP6Jw==} + /@swc/core-linux-arm64-musl@1.3.89: + resolution: {integrity: sha512-i/65Vt3ljfd6EyR+WWZ5aAjZLTQMIHoR+Ay97jE0kysRn8MEOINu0SWyiEwcdXzRGlt+zkrKYfOxp745sWPDAw==} engines: {node: '>=10'} cpu: [arm64] os: [linux] @@ -4114,8 +4114,8 @@ packages: dev: true optional: true - /@swc/core-linux-x64-gnu@1.3.88: - resolution: {integrity: sha512-VrwGCzKLwimL0Js1yWRQNpcJCLGYkETku9mEI9sM4yF6kzT/jwfOe94udBe9O4GGUv24QkzHXRk+EnGR2LFSOQ==} + /@swc/core-linux-x64-gnu@1.3.89: + resolution: {integrity: sha512-ERETXe68CJRdNkL3EIN62gErh3p6+/6hmz4C0epnYJ4F7QspdW/EOluL1o9bl4dux4Xz0nmBPSZsqfHq/nl1KA==} engines: {node: '>=10'} cpu: [x64] os: [linux] @@ -4123,8 +4123,8 @@ packages: dev: true optional: true - /@swc/core-linux-x64-musl@1.3.88: - resolution: {integrity: sha512-cur5h0JmNfF4ZHb+FBPLePX86lu3FUjxltObWUhqO4QiXzHxWfde6g+pgdqfUAer0cd9VEEjEKGA5OQncXqyCQ==} + /@swc/core-linux-x64-musl@1.3.89: + resolution: {integrity: sha512-EXiwgU5E/yC5zuJtOXXWv+wMwpe5DR380XhVxIOBG6nFi6MR3O2X37KxeEdQZX8RwN7/KU6kNHeifzEiSvixfA==} engines: {node: '>=10'} cpu: [x64] os: [linux] @@ -4132,8 +4132,8 @@ packages: dev: true optional: true - /@swc/core-win32-arm64-msvc@1.3.88: - resolution: {integrity: sha512-f9OVuWrey7X0gjCZlVD4d5/9/d0yyxu8KFUOEjyjJ2Kd+pvzRys1U3E0FE1PiiDOng3qrfdOt4HQxyAy2jts9Q==} + /@swc/core-win32-arm64-msvc@1.3.89: + resolution: {integrity: sha512-j7GvkgeOrZlB55MpEwX+6E6KjxwOmwRXpIqMjF11JDIZ0wEwHlBxZhlnQQ58iuI6jL6AJgDH/ktDhMyELoBiHw==} engines: {node: '>=10'} cpu: [arm64] os: [win32] @@ -4141,8 +4141,8 @@ packages: dev: true optional: true - /@swc/core-win32-ia32-msvc@1.3.88: - resolution: {integrity: sha512-7KCeTVe8wWRbuiuAwXoHKBkr9nugCAHQe/JGxoevHXxn2h+WwBuWHog1AbS6PvRWSKK8dVhKAAPDNWwdEltA5A==} + /@swc/core-win32-ia32-msvc@1.3.89: + resolution: {integrity: sha512-n57nE7d3FXBa3Y2+VoJdPulcUAS0ZGAGVGxFpeM/tZt1MBEN5OvpOSOIp35dK5HAAxAzTPlmqj9KUYnVxLMVKw==} engines: {node: '>=10'} cpu: [ia32] os: [win32] @@ -4150,8 +4150,8 @@ packages: dev: true optional: true - /@swc/core-win32-x64-msvc@1.3.88: - resolution: {integrity: sha512-x0wr9kCS2Hmpx7H6gvJHA17G0DnvwToqWDSO1VmePt5hQZZfLzxiHHDHKFv4YYsVPbAU283q4Wa39QSPZeJbTA==} + /@swc/core-win32-x64-msvc@1.3.89: + resolution: {integrity: sha512-6yMAmqgseAwEXFIwurP7CL8yIH8n7/Rg62ooOVSLSWL5O/Pwlpy1WrpoA0eKhgMLLkIrPvNuKaE/rG7c2iNQHA==} engines: {node: '>=10'} cpu: [x64] os: [win32] @@ -4159,8 +4159,8 @@ packages: dev: true optional: true - /@swc/core@1.3.88: - resolution: {integrity: sha512-kaJ5t6Fg/DmJPNeI+jdtCEt7NVKxhUYToq7PF2fMRPFPLKSJzJCZajcp6/gZNcEUCVWaK6pWi/XL79Tzz1FqzQ==} + /@swc/core@1.3.89: + resolution: {integrity: sha512-+FchWateF57g50ChX6++QQDwgVd6iWZX5HA6m9LRIdJIB56bIqbwRQDwVL3Q8Rlbry4kmw+RxiOW2FjAx9mQOQ==} engines: {node: '>=10'} requiresBuild: true peerDependencies: @@ -4172,30 +4172,30 @@ packages: '@swc/counter': 0.1.1 '@swc/types': 0.1.5 optionalDependencies: - '@swc/core-darwin-arm64': 1.3.88 - '@swc/core-darwin-x64': 1.3.88 - '@swc/core-linux-arm-gnueabihf': 1.3.88 - '@swc/core-linux-arm64-gnu': 1.3.88 - '@swc/core-linux-arm64-musl': 1.3.88 - '@swc/core-linux-x64-gnu': 1.3.88 - '@swc/core-linux-x64-musl': 1.3.88 - '@swc/core-win32-arm64-msvc': 1.3.88 - '@swc/core-win32-ia32-msvc': 1.3.88 - '@swc/core-win32-x64-msvc': 1.3.88 + '@swc/core-darwin-arm64': 1.3.89 + '@swc/core-darwin-x64': 1.3.89 + '@swc/core-linux-arm-gnueabihf': 1.3.89 + '@swc/core-linux-arm64-gnu': 1.3.89 + '@swc/core-linux-arm64-musl': 1.3.89 + '@swc/core-linux-x64-gnu': 1.3.89 + '@swc/core-linux-x64-musl': 1.3.89 + '@swc/core-win32-arm64-msvc': 1.3.89 + '@swc/core-win32-ia32-msvc': 1.3.89 + '@swc/core-win32-x64-msvc': 1.3.89 dev: true /@swc/counter@0.1.1: resolution: {integrity: sha512-xVRaR4u9hcYjFvcSg71Lz5Bo4//CyjAAfMxa7UsaDSYxAshflUkVJWiyVWrfxC59z2kP1IzI4/1BEpnhI9o3Mw==} dev: true - /@swc/jest@0.2.29(@swc/core@1.3.88): + /@swc/jest@0.2.29(@swc/core@1.3.89): resolution: {integrity: sha512-8reh5RvHBsSikDC3WGCd5ZTd2BXKkyOdK7QwynrCH58jk2cQFhhHhFBg/jvnWZehUQe/EoOImLENc9/DwbBFow==} engines: {npm: '>= 7.0.0'} peerDependencies: '@swc/core': '*' dependencies: '@jest/create-cache-key-function': 27.5.1 - '@swc/core': 1.3.88 + '@swc/core': 1.3.89 jsonc-parser: 3.2.0 dev: true @@ -4619,14 +4619,14 @@ packages: '@types/node': 20.6.5 dev: true - /@types/supertest@2.0.12: - resolution: {integrity: sha512-X3HPWTwXRerBZS7Mo1k6vMVR1Z6zmJcDVn5O/31whe0tnjE4te6ZJSJGq1RiqHPjzPdMTfjCFogDJmwng9xHaQ==} + /@types/supertest@2.0.13: + resolution: {integrity: sha512-Vc/5/pRwSC055fU7Wu8erTj4gLpID9SdG2zRMuqaHLni3GTsrJ8gyB6MbFZZGLW6vQaGPhiUWRB6uWglv87MEg==} dependencies: '@types/superagent': 4.1.18 dev: true - /@types/swagger-stats@0.95.8: - resolution: {integrity: sha512-h60F3uAs0lkp7qTOiNfPrPExLcBsCfXOO/t1+ACTocAssMvObGZbHEnz5fUJLiDqzchvIZ2RIXB0obnFhideAA==} + /@types/swagger-stats@0.95.9: + resolution: {integrity: sha512-u61LUh2sv34Bvv3n2yNM7BHCJPOOITMHL+dK9aOUdeIHJYdL142iknrPbnidnOAYGhoEesTZcKT+GIZnrm46JA==} dependencies: '@hapi/hapi': 21.1.0 '@types/express': 4.17.17 @@ -4638,8 +4638,8 @@ packages: - supports-color dev: true - /@types/swagger-ui-express@4.1.3: - resolution: {integrity: sha512-jqCjGU/tGEaqIplPy3WyQg+Nrp6y80DCFnDEAvVKWkJyv0VivSSDCChkppHRHAablvInZe6pijDFMnavtN0vqA==} + /@types/swagger-ui-express@4.1.4: + resolution: {integrity: sha512-h6dfIPFveCJKpStDtjrB+4pig4DAf9Uu2Z51RB7Fj3s6AifexmqhZxBoG50K/k3Afz7wyXsIAY5ZIDTlC2VjrQ==} dependencies: '@types/express': 4.17.17 '@types/serve-static': 1.15.2 @@ -6099,13 +6099,13 @@ packages: engines: {node: '>= 12.0.0'} dev: true - /commitizen@4.3.0(@swc/core@1.3.88): + /commitizen@4.3.0(@swc/core@1.3.89): resolution: {integrity: sha512-H0iNtClNEhT0fotHvGV3E9tDejDeS04sN1veIebsKYGMuGscFaswRoYJKmT3eW85eIJAs0F28bG2+a/9wCOfPw==} engines: {node: '>= 12'} hasBin: true dependencies: cachedir: 2.3.0 - cz-conventional-changelog: 3.3.0(@swc/core@1.3.88) + cz-conventional-changelog: 3.3.0(@swc/core@1.3.89) dedent: 0.7.0 detect-indent: 6.1.0 find-node-modules: 2.1.3 @@ -6253,7 +6253,7 @@ packages: dependencies: '@types/node': 20.4.7 cosmiconfig: 8.3.6(typescript@5.2.2) - ts-node: 10.9.1(@swc/core@1.3.88)(@types/node@20.4.7)(typescript@5.2.2) + ts-node: 10.9.1(@swc/core@1.3.89)(@types/node@20.4.7)(typescript@5.2.2) typescript: 5.2.2 dev: true optional: true @@ -6364,18 +6364,18 @@ packages: rrweb-cssom: 0.6.0 dev: false - /cz-conventional-changelog@3.3.0(@swc/core@1.3.88): + /cz-conventional-changelog@3.3.0(@swc/core@1.3.89): resolution: {integrity: sha512-U466fIzU5U22eES5lTNiNbZ+d8dfcHcssH4o7QsdWaCcRs/feIPCxKYSWkYBNs5mny7MvEfwpTLWjvbm94hecw==} engines: {node: '>= 10'} dependencies: chalk: 2.4.2 - commitizen: 4.3.0(@swc/core@1.3.88) + commitizen: 4.3.0(@swc/core@1.3.89) conventional-commit-types: 3.0.0 lodash.map: 4.6.0 longest: 2.0.1 word-wrap: 1.2.5 optionalDependencies: - '@commitlint/load': 17.7.1(@swc/core@1.3.88) + '@commitlint/load': 17.7.1(@swc/core@1.3.89) transitivePeerDependencies: - '@swc/core' - '@swc/wasm' @@ -7716,7 +7716,7 @@ packages: semver: 7.5.4 tapable: 2.2.1 typescript: 5.2.2 - webpack: 5.88.2(@swc/core@1.3.88) + webpack: 5.88.2(@swc/core@1.3.89) dev: true /form-data@4.0.0: @@ -8945,7 +8945,7 @@ packages: pretty-format: 29.7.0 slash: 3.0.0 strip-json-comments: 3.1.1 - ts-node: 10.9.1(@swc/core@1.3.88)(@types/node@20.6.5)(typescript@5.2.2) + ts-node: 10.9.1(@swc/core@1.3.89)(@types/node@20.6.5)(typescript@5.2.2) transitivePeerDependencies: - babel-plugin-macros - supports-color @@ -11083,8 +11083,8 @@ packages: resolution: {integrity: sha512-3IKLNXclQgkU++2fSi93sQ6BznFuxSLB11HdvZQ6JW/spahf/P1pAHBQEahr20rs0htZW0UDkM1HmA+nZkXKsw==} engines: {node: '>=12.0.0'} - /poolifier@2.7.3: - resolution: {integrity: sha512-s3O4womlvc3OSGEPBjJcPoIGczSxOMXaRfcnNzvbKWKg12PZtjONC2oacjxOIHxBzinY1gc6W7akwrqR4qPgxA==} + /poolifier@2.7.4: + resolution: {integrity: sha512-Rkw7M1reDRWPLnPtS8+DFcv8IQIie44TBQ4CgQMSghu2YZ4Gip1VwbTw9t+SEgiLbIe6+cSTdlYAGtQ81DD67A==} engines: {node: '>=16.14.0', pnpm: '>=8.6.0'} requiresBuild: true dev: false @@ -12591,7 +12591,7 @@ packages: dev: false optional: true - /terser-webpack-plugin@5.3.9(@swc/core@1.3.88)(webpack@5.88.2): + /terser-webpack-plugin@5.3.9(@swc/core@1.3.89)(webpack@5.88.2): resolution: {integrity: sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==} engines: {node: '>= 10.13.0'} peerDependencies: @@ -12608,12 +12608,12 @@ packages: optional: true dependencies: '@jridgewell/trace-mapping': 0.3.19 - '@swc/core': 1.3.88 + '@swc/core': 1.3.89 jest-worker: 27.5.1 schema-utils: 3.3.0 serialize-javascript: 6.0.1 terser: 5.20.0 - webpack: 5.88.2(@swc/core@1.3.88) + webpack: 5.88.2(@swc/core@1.3.89) dev: true /terser@5.20.0: @@ -12771,7 +12771,7 @@ packages: micromatch: 4.0.5 semver: 7.5.4 typescript: 5.2.2 - webpack: 5.88.2(@swc/core@1.3.88) + webpack: 5.88.2(@swc/core@1.3.89) dev: true /ts-morph@20.0.0: @@ -12781,7 +12781,7 @@ packages: code-block-writer: 12.0.0 dev: false - /ts-node@10.9.1(@swc/core@1.3.88)(@types/node@20.4.7)(typescript@5.2.2): + /ts-node@10.9.1(@swc/core@1.3.89)(@types/node@20.4.7)(typescript@5.2.2): resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} hasBin: true peerDependencies: @@ -12796,7 +12796,7 @@ packages: optional: true dependencies: '@cspotcode/source-map-support': 0.8.1 - '@swc/core': 1.3.88 + '@swc/core': 1.3.89 '@tsconfig/node10': 1.0.9 '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 @@ -12814,7 +12814,7 @@ packages: dev: true optional: true - /ts-node@10.9.1(@swc/core@1.3.88)(@types/node@20.6.5)(typescript@5.2.2): + /ts-node@10.9.1(@swc/core@1.3.89)(@types/node@20.6.5)(typescript@5.2.2): resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} hasBin: true peerDependencies: @@ -12829,7 +12829,7 @@ packages: optional: true dependencies: '@cspotcode/source-map-support': 0.8.1 - '@swc/core': 1.3.88 + '@swc/core': 1.3.89 '@tsconfig/node10': 1.0.9 '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 @@ -13264,7 +13264,7 @@ packages: engines: {node: '>=10.13.0'} dev: true - /webpack@5.88.2(@swc/core@1.3.88): + /webpack@5.88.2(@swc/core@1.3.89): resolution: {integrity: sha512-JmcgNZ1iKj+aiR0OvTYtWQqJwq37Pf683dY9bVORwVbUrDhLhdn/PlO2sHsFHPkj7sHNQF3JwaAkp49V+Sq1tQ==} engines: {node: '>=10.13.0'} hasBin: true @@ -13295,7 +13295,7 @@ packages: neo-async: 2.6.2 schema-utils: 3.3.0 tapable: 2.2.1 - terser-webpack-plugin: 5.3.9(@swc/core@1.3.88)(webpack@5.88.2) + terser-webpack-plugin: 5.3.9(@swc/core@1.3.89)(webpack@5.88.2) watchpack: 2.4.0 webpack-sources: 3.2.3 transitivePeerDependencies: diff --git a/src/common/decorators/validation/is-password.validator.ts b/src/common/decorators/validation/is-password.validator.ts index 2d015c9e..d1958c2a 100644 --- a/src/common/decorators/validation/is-password.validator.ts +++ b/src/common/decorators/validation/is-password.validator.ts @@ -55,8 +55,8 @@ export const IsPasswordField = (validationOptions?: ValidationOptions & { minLen message: validationI18nMessage("validation.isNotEmpty"), }), MinMaxLength({ - minLength: validationOptions.minLength ?? 8, - maxLength: validationOptions.maxLength ?? 40, + minLength: validationOptions?.minLength ?? 8, + maxLength: validationOptions?.maxLength ?? 40, }), IsPassword(validationOptions), ); diff --git a/src/common/decorators/validation/is-username.validator.ts b/src/common/decorators/validation/is-username.validator.ts index 8f928fd9..40bc45f1 100644 --- a/src/common/decorators/validation/is-username.validator.ts +++ b/src/common/decorators/validation/is-username.validator.ts @@ -56,8 +56,8 @@ export const IsUsernameField = (validationOptions?: ValidationOptions & { minLen message: validationI18nMessage("validation.isNotEmpty"), }), MinMaxLength({ - minLength: validationOptions.minLength ?? 5, - maxLength: validationOptions.maxLength ?? 50, + minLength: validationOptions?.minLength ?? 5, + maxLength: validationOptions?.maxLength ?? 50, }), IsUsername(validationOptions), );