From 7763d4ee2f91722dbb51d3711776444a079e0a28 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 26 Dec 2024 02:12:08 +0000 Subject: [PATCH 1/7] Bump @nestjs/cli from 10.4.8 to 10.4.9 Bumps [@nestjs/cli](https://github.com/nestjs/nest-cli) from 10.4.8 to 10.4.9. - [Release notes](https://github.com/nestjs/nest-cli/releases) - [Changelog](https://github.com/nestjs/nest-cli/blob/master/.release-it.json) - [Commits](https://github.com/nestjs/nest-cli/compare/10.4.8...10.4.9) --- updated-dependencies: - dependency-name: "@nestjs/cli" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- yarn.lock | 236 +++++++++++++++++++++++++++--------------------------- 1 file changed, 118 insertions(+), 118 deletions(-) diff --git a/yarn.lock b/yarn.lock index 6e73e8525d..881f6cac6b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2837,9 +2837,9 @@ "@tybys/wasm-util" "^0.9.0" "@nestjs/cli@^10.1.14": - version "10.4.8" - resolved "https://registry.yarnpkg.com/@nestjs/cli/-/cli-10.4.8.tgz#e6dec4eeda8a125918cbf1c0d10773ac6bb6d40e" - integrity sha512-BQ/MIXcO2TjLVR9ZCN1MRQqijgCI7taueLdxowLS9UmAHbN7iZcQt307NTC6SFt8uVJg2CrLanD60M/Pr0ZMoQ== + version "10.4.9" + resolved "https://registry.yarnpkg.com/@nestjs/cli/-/cli-10.4.9.tgz#ac3a23096a4725465360d8d60810f3e857f4a803" + integrity sha512-s8qYd97bggqeK7Op3iD49X2MpFtW4LVNLAwXFkfbRxKME6IYT7X0muNTJ2+QfI8hpbNx9isWkrLWIp+g5FOhiA== dependencies: "@angular-devkit/core" "17.3.11" "@angular-devkit/schematics" "17.3.11" @@ -2857,8 +2857,8 @@ tree-kill "1.2.2" tsconfig-paths "4.2.0" tsconfig-paths-webpack-plugin "4.2.0" - typescript "5.6.3" - webpack "5.96.1" + typescript "5.7.2" + webpack "5.97.1" webpack-node-externals "3.0.0" "@nestjs/common@^10.2.1": @@ -5604,125 +5604,125 @@ resolved "https://registry.npmjs.org/@vue/web-component-wrapper/-/web-component-wrapper-1.3.0.tgz#b6b40a7625429d2bd7c2281ddba601ed05dc7f1a" integrity sha512-Iu8Tbg3f+emIIMmI2ycSI8QcEuAUgPTgHwesDU1eKMLE4YC/c/sFbGc70QgMq31ijRftV0R7vCm9co6rldCeOA== -"@webassemblyjs/ast@1.12.1", "@webassemblyjs/ast@^1.12.1": - version "1.12.1" - resolved "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.12.1.tgz#bb16a0e8b1914f979f45864c23819cc3e3f0d4bb" - integrity sha512-EKfMUOPRRUTy5UII4qJDGPpqfwjOmZ5jeGFwid9mnoqIFK+e0vqoi1qH56JpmZSzEL53jKnNzScdmftJyG5xWg== +"@webassemblyjs/ast@1.14.1", "@webassemblyjs/ast@^1.14.1": + version "1.14.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.14.1.tgz#a9f6a07f2b03c95c8d38c4536a1fdfb521ff55b6" + integrity sha512-nuBEDgQfm1ccRp/8bCQrx1frohyufl4JlbMMZ4P1wpeOfDhF6FQkxZJ1b/e+PLwr6X1Nhw6OLme5usuBWYBvuQ== dependencies: - "@webassemblyjs/helper-numbers" "1.11.6" - "@webassemblyjs/helper-wasm-bytecode" "1.11.6" + "@webassemblyjs/helper-numbers" "1.13.2" + "@webassemblyjs/helper-wasm-bytecode" "1.13.2" -"@webassemblyjs/floating-point-hex-parser@1.11.6": - version "1.11.6" - resolved "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz#dacbcb95aff135c8260f77fa3b4c5fea600a6431" - integrity sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw== +"@webassemblyjs/floating-point-hex-parser@1.13.2": + version "1.13.2" + resolved "https://registry.yarnpkg.com/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.13.2.tgz#fcca1eeddb1cc4e7b6eed4fc7956d6813b21b9fb" + integrity sha512-6oXyTOzbKxGH4steLbLNOu71Oj+C8Lg34n6CqRvqfS2O71BxY6ByfMDRhBytzknj9yGUPVJ1qIKhRlAwO1AovA== -"@webassemblyjs/helper-api-error@1.11.6": - version "1.11.6" - resolved "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz#6132f68c4acd59dcd141c44b18cbebbd9f2fa768" - integrity sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q== +"@webassemblyjs/helper-api-error@1.13.2": + version "1.13.2" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-api-error/-/helper-api-error-1.13.2.tgz#e0a16152248bc38daee76dd7e21f15c5ef3ab1e7" + integrity sha512-U56GMYxy4ZQCbDZd6JuvvNV/WFildOjsaWD3Tzzvmw/mas3cXzRJPMjP83JqEsgSbyrmaGjBfDtV7KDXV9UzFQ== -"@webassemblyjs/helper-buffer@1.12.1": - version "1.12.1" - resolved "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.12.1.tgz#6df20d272ea5439bf20ab3492b7fb70e9bfcb3f6" - integrity sha512-nzJwQw99DNDKr9BVCOZcLuJJUlqkJh+kVzVl6Fmq/tI5ZtEyWT1KZMyOXltXLZJmDtvLCDgwsyrkohEtopTXCw== +"@webassemblyjs/helper-buffer@1.14.1": + version "1.14.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-buffer/-/helper-buffer-1.14.1.tgz#822a9bc603166531f7d5df84e67b5bf99b72b96b" + integrity sha512-jyH7wtcHiKssDtFPRB+iQdxlDf96m0E39yb0k5uJVhFGleZFoNw1c4aeIcVUPPbXUVJ94wwnMOAqUHyzoEPVMA== -"@webassemblyjs/helper-numbers@1.11.6": - version "1.11.6" - resolved "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz#cbce5e7e0c1bd32cf4905ae444ef64cea919f1b5" - integrity sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g== +"@webassemblyjs/helper-numbers@1.13.2": + version "1.13.2" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-numbers/-/helper-numbers-1.13.2.tgz#dbd932548e7119f4b8a7877fd5a8d20e63490b2d" + integrity sha512-FE8aCmS5Q6eQYcV3gI35O4J789wlQA+7JrqTTpJqn5emA4U2hvwJmvFRC0HODS+3Ye6WioDklgd6scJ3+PLnEA== dependencies: - "@webassemblyjs/floating-point-hex-parser" "1.11.6" - "@webassemblyjs/helper-api-error" "1.11.6" + "@webassemblyjs/floating-point-hex-parser" "1.13.2" + "@webassemblyjs/helper-api-error" "1.13.2" "@xtuc/long" "4.2.2" -"@webassemblyjs/helper-wasm-bytecode@1.11.6": - version "1.11.6" - resolved "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz#bb2ebdb3b83aa26d9baad4c46d4315283acd51e9" - integrity sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA== +"@webassemblyjs/helper-wasm-bytecode@1.13.2": + version "1.13.2" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.13.2.tgz#e556108758f448aae84c850e593ce18a0eb31e0b" + integrity sha512-3QbLKy93F0EAIXLh0ogEVR6rOubA9AoZ+WRYhNbFyuB70j3dRdwH9g+qXhLAO0kiYGlg3TxDV+I4rQTr/YNXkA== -"@webassemblyjs/helper-wasm-section@1.12.1": - version "1.12.1" - resolved "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.12.1.tgz#3da623233ae1a60409b509a52ade9bc22a37f7bf" - integrity sha512-Jif4vfB6FJlUlSbgEMHUyk1j234GTNG9dBJ4XJdOySoj518Xj0oGsNi59cUQF4RRMS9ouBUxDDdyBVfPTypa5g== +"@webassemblyjs/helper-wasm-section@1.14.1": + version "1.14.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.14.1.tgz#9629dda9c4430eab54b591053d6dc6f3ba050348" + integrity sha512-ds5mXEqTJ6oxRoqjhWDU83OgzAYjwsCV8Lo/N+oRsNDmx/ZDpqalmrtgOMkHwxsG0iI//3BwWAErYRHtgn0dZw== dependencies: - "@webassemblyjs/ast" "1.12.1" - "@webassemblyjs/helper-buffer" "1.12.1" - "@webassemblyjs/helper-wasm-bytecode" "1.11.6" - "@webassemblyjs/wasm-gen" "1.12.1" + "@webassemblyjs/ast" "1.14.1" + "@webassemblyjs/helper-buffer" "1.14.1" + "@webassemblyjs/helper-wasm-bytecode" "1.13.2" + "@webassemblyjs/wasm-gen" "1.14.1" -"@webassemblyjs/ieee754@1.11.6": - version "1.11.6" - resolved "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz#bb665c91d0b14fffceb0e38298c329af043c6e3a" - integrity sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg== +"@webassemblyjs/ieee754@1.13.2": + version "1.13.2" + resolved "https://registry.yarnpkg.com/@webassemblyjs/ieee754/-/ieee754-1.13.2.tgz#1c5eaace1d606ada2c7fd7045ea9356c59ee0dba" + integrity sha512-4LtOzh58S/5lX4ITKxnAK2USuNEvpdVV9AlgGQb8rJDHaLeHciwG4zlGr0j/SNWlr7x3vO1lDEsuePvtcDNCkw== dependencies: "@xtuc/ieee754" "^1.2.0" -"@webassemblyjs/leb128@1.11.6": - version "1.11.6" - resolved "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz#70e60e5e82f9ac81118bc25381a0b283893240d7" - integrity sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ== +"@webassemblyjs/leb128@1.13.2": + version "1.13.2" + resolved "https://registry.yarnpkg.com/@webassemblyjs/leb128/-/leb128-1.13.2.tgz#57c5c3deb0105d02ce25fa3fd74f4ebc9fd0bbb0" + integrity sha512-Lde1oNoIdzVzdkNEAWZ1dZ5orIbff80YPdHx20mrHwHrVNNTjNr8E3xz9BdpcGqRQbAEa+fkrCb+fRFTl/6sQw== dependencies: "@xtuc/long" "4.2.2" -"@webassemblyjs/utf8@1.11.6": - version "1.11.6" - resolved "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz#90f8bc34c561595fe156603be7253cdbcd0fab5a" - integrity sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA== - -"@webassemblyjs/wasm-edit@^1.12.1": - version "1.12.1" - resolved "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.12.1.tgz#9f9f3ff52a14c980939be0ef9d5df9ebc678ae3b" - integrity sha512-1DuwbVvADvS5mGnXbE+c9NfA8QRcZ6iKquqjjmR10k6o+zzsRVesil54DKexiowcFCPdr/Q0qaMgB01+SQ1u6g== - dependencies: - "@webassemblyjs/ast" "1.12.1" - "@webassemblyjs/helper-buffer" "1.12.1" - "@webassemblyjs/helper-wasm-bytecode" "1.11.6" - "@webassemblyjs/helper-wasm-section" "1.12.1" - "@webassemblyjs/wasm-gen" "1.12.1" - "@webassemblyjs/wasm-opt" "1.12.1" - "@webassemblyjs/wasm-parser" "1.12.1" - "@webassemblyjs/wast-printer" "1.12.1" - -"@webassemblyjs/wasm-gen@1.12.1": - version "1.12.1" - resolved "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.12.1.tgz#a6520601da1b5700448273666a71ad0a45d78547" - integrity sha512-TDq4Ojh9fcohAw6OIMXqiIcTq5KUXTGRkVxbSo1hQnSy6lAM5GSdfwWeSxpAo0YzgsgF182E/U0mDNhuA0tW7w== - dependencies: - "@webassemblyjs/ast" "1.12.1" - "@webassemblyjs/helper-wasm-bytecode" "1.11.6" - "@webassemblyjs/ieee754" "1.11.6" - "@webassemblyjs/leb128" "1.11.6" - "@webassemblyjs/utf8" "1.11.6" - -"@webassemblyjs/wasm-opt@1.12.1": - version "1.12.1" - resolved "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.12.1.tgz#9e6e81475dfcfb62dab574ac2dda38226c232bc5" - integrity sha512-Jg99j/2gG2iaz3hijw857AVYekZe2SAskcqlWIZXjji5WStnOpVoat3gQfT/Q5tb2djnCjBtMocY/Su1GfxPBg== - dependencies: - "@webassemblyjs/ast" "1.12.1" - "@webassemblyjs/helper-buffer" "1.12.1" - "@webassemblyjs/wasm-gen" "1.12.1" - "@webassemblyjs/wasm-parser" "1.12.1" - -"@webassemblyjs/wasm-parser@1.12.1", "@webassemblyjs/wasm-parser@^1.12.1": - version "1.12.1" - resolved "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.12.1.tgz#c47acb90e6f083391e3fa61d113650eea1e95937" - integrity sha512-xikIi7c2FHXysxXe3COrVUPSheuBtpcfhbpFj4gmu7KRLYOzANztwUU0IbsqvMqzuNK2+glRGWCEqZo1WCLyAQ== - dependencies: - "@webassemblyjs/ast" "1.12.1" - "@webassemblyjs/helper-api-error" "1.11.6" - "@webassemblyjs/helper-wasm-bytecode" "1.11.6" - "@webassemblyjs/ieee754" "1.11.6" - "@webassemblyjs/leb128" "1.11.6" - "@webassemblyjs/utf8" "1.11.6" - -"@webassemblyjs/wast-printer@1.12.1": - version "1.12.1" - resolved "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.12.1.tgz#bcecf661d7d1abdaf989d8341a4833e33e2b31ac" - integrity sha512-+X4WAlOisVWQMikjbcvY2e0rwPsKQ9F688lksZhBcPycBBuii3O7m8FACbDMWDojpAqvjIncrG8J0XHKyQfVeA== - dependencies: - "@webassemblyjs/ast" "1.12.1" +"@webassemblyjs/utf8@1.13.2": + version "1.13.2" + resolved "https://registry.yarnpkg.com/@webassemblyjs/utf8/-/utf8-1.13.2.tgz#917a20e93f71ad5602966c2d685ae0c6c21f60f1" + integrity sha512-3NQWGjKTASY1xV5m7Hr0iPeXD9+RDobLll3T9d2AO+g3my8xy5peVyjSag4I50mR1bBSN/Ct12lo+R9tJk0NZQ== + +"@webassemblyjs/wasm-edit@^1.14.1": + version "1.14.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-edit/-/wasm-edit-1.14.1.tgz#ac6689f502219b59198ddec42dcd496b1004d597" + integrity sha512-RNJUIQH/J8iA/1NzlE4N7KtyZNHi3w7at7hDjvRNm5rcUXa00z1vRz3glZoULfJ5mpvYhLybmVcwcjGrC1pRrQ== + dependencies: + "@webassemblyjs/ast" "1.14.1" + "@webassemblyjs/helper-buffer" "1.14.1" + "@webassemblyjs/helper-wasm-bytecode" "1.13.2" + "@webassemblyjs/helper-wasm-section" "1.14.1" + "@webassemblyjs/wasm-gen" "1.14.1" + "@webassemblyjs/wasm-opt" "1.14.1" + "@webassemblyjs/wasm-parser" "1.14.1" + "@webassemblyjs/wast-printer" "1.14.1" + +"@webassemblyjs/wasm-gen@1.14.1": + version "1.14.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-gen/-/wasm-gen-1.14.1.tgz#991e7f0c090cb0bb62bbac882076e3d219da9570" + integrity sha512-AmomSIjP8ZbfGQhumkNvgC33AY7qtMCXnN6bL2u2Js4gVCg8fp735aEiMSBbDR7UQIj90n4wKAFUSEd0QN2Ukg== + dependencies: + "@webassemblyjs/ast" "1.14.1" + "@webassemblyjs/helper-wasm-bytecode" "1.13.2" + "@webassemblyjs/ieee754" "1.13.2" + "@webassemblyjs/leb128" "1.13.2" + "@webassemblyjs/utf8" "1.13.2" + +"@webassemblyjs/wasm-opt@1.14.1": + version "1.14.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-opt/-/wasm-opt-1.14.1.tgz#e6f71ed7ccae46781c206017d3c14c50efa8106b" + integrity sha512-PTcKLUNvBqnY2U6E5bdOQcSM+oVP/PmrDY9NzowJjislEjwP/C4an2303MCVS2Mg9d3AJpIGdUFIQQWbPds0Sw== + dependencies: + "@webassemblyjs/ast" "1.14.1" + "@webassemblyjs/helper-buffer" "1.14.1" + "@webassemblyjs/wasm-gen" "1.14.1" + "@webassemblyjs/wasm-parser" "1.14.1" + +"@webassemblyjs/wasm-parser@1.14.1", "@webassemblyjs/wasm-parser@^1.14.1": + version "1.14.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-parser/-/wasm-parser-1.14.1.tgz#b3e13f1893605ca78b52c68e54cf6a865f90b9fb" + integrity sha512-JLBl+KZ0R5qB7mCnud/yyX08jWFw5MsoalJ1pQ4EdFlgj9VdXKGuENGsiCIjegI1W7p91rUlcB/LB5yRJKNTcQ== + dependencies: + "@webassemblyjs/ast" "1.14.1" + "@webassemblyjs/helper-api-error" "1.13.2" + "@webassemblyjs/helper-wasm-bytecode" "1.13.2" + "@webassemblyjs/ieee754" "1.13.2" + "@webassemblyjs/leb128" "1.13.2" + "@webassemblyjs/utf8" "1.13.2" + +"@webassemblyjs/wast-printer@1.14.1": + version "1.14.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wast-printer/-/wast-printer-1.14.1.tgz#3bb3e9638a8ae5fdaf9610e7a06b4d9f9aa6fe07" + integrity sha512-kPSSXE6De1XOR820C90RIo2ogvZG+c3KiHzqUoO/F34Y2shGzesfqv7o57xrxovZJH/MetF5UjroJ/R/3isoiw== + dependencies: + "@webassemblyjs/ast" "1.14.1" "@xtuc/long" "4.2.2" "@xmldom/xmldom@^0.8.2": @@ -19872,10 +19872,10 @@ typedoc@^0.26.2: shiki "^1.16.2" yaml "^2.5.1" -typescript@5.6.3, "typescript@>=3 < 6": - version "5.6.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.3.tgz#5f3449e31c9d94febb17de03cc081dd56d81db5b" - integrity sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw== +typescript@5.7.2, "typescript@>=3 < 6": + version "5.7.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.2.tgz#3169cf8c4c8a828cde53ba9ecb3d2b1d5dd67be6" + integrity sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg== typescript@^4.9.3: version "4.9.5" @@ -20628,16 +20628,16 @@ webpack-virtual-modules@^0.4.2: resolved "https://registry.npmjs.org/webpack-virtual-modules/-/webpack-virtual-modules-0.4.6.tgz#3e4008230731f1db078d9cb6f68baf8571182b45" integrity sha512-5tyDlKLqPfMqjT3Q9TAqf2YqjwmnUleZwzJi1A5qXnlBCdj2AtOJ6wAWdglTIDOPgOiOrXeBeFcsQ8+aGQ6QbA== -webpack@5.96.1, webpack@^5.54.0: - version "5.96.1" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.96.1.tgz#3676d1626d8312b6b10d0c18cc049fba7ac01f0c" - integrity sha512-l2LlBSvVZGhL4ZrPwyr8+37AunkcYj5qh8o6u2/2rzoPc8gxFJkLj1WxNgooi9pnoc06jh0BjuXnamM4qlujZA== +webpack@5.97.1, webpack@^5.54.0: + version "5.97.1" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.97.1.tgz#972a8320a438b56ff0f1d94ade9e82eac155fa58" + integrity sha512-EksG6gFY3L1eFMROS/7Wzgrii5mBAFe4rIr3r2BTfo7bcc+DWwFZ4OJ/miOuHJO/A85HwyI4eQ0F6IKXesO7Fg== dependencies: "@types/eslint-scope" "^3.7.7" "@types/estree" "^1.0.6" - "@webassemblyjs/ast" "^1.12.1" - "@webassemblyjs/wasm-edit" "^1.12.1" - "@webassemblyjs/wasm-parser" "^1.12.1" + "@webassemblyjs/ast" "^1.14.1" + "@webassemblyjs/wasm-edit" "^1.14.1" + "@webassemblyjs/wasm-parser" "^1.14.1" acorn "^8.14.0" browserslist "^4.24.0" chrome-trace-event "^1.0.2" From ef987e14795a063accfc326d0ed9a388f2562899 Mon Sep 17 00:00:00 2001 From: Amndeep Singh Mann Date: Mon, 30 Dec 2024 16:44:22 -0500 Subject: [PATCH 2/7] remove unused and uninstantiated parameter Signed-off-by: Amndeep Singh Mann --- .../pipes/password-complexity.pipe.spec.ts | 30 +++++-------------- .../src/pipes/password-complexity.pipe.ts | 3 +- 2 files changed, 8 insertions(+), 25 deletions(-) diff --git a/apps/backend/src/pipes/password-complexity.pipe.spec.ts b/apps/backend/src/pipes/password-complexity.pipe.spec.ts index d36315aa79..229605942e 100644 --- a/apps/backend/src/pipes/password-complexity.pipe.spec.ts +++ b/apps/backend/src/pipes/password-complexity.pipe.spec.ts @@ -14,7 +14,6 @@ import { describe('PasswordComplexityPipe', () => { let passwordComplexityPipe: PasswordComplexityPipe; - let metaData: ArgumentMetadata; beforeEach(() => { passwordComplexityPipe = new PasswordComplexityPipe(); @@ -121,22 +120,19 @@ describe('PasswordComplexityPipe', () => { describe('Test Valid Password', () => { it('should return the same CreateUserDto', () => { expect( - passwordComplexityPipe.transform(CREATE_USER_DTO_TEST_OBJ, metaData) + passwordComplexityPipe.transform(CREATE_USER_DTO_TEST_OBJ) ).toEqual(CREATE_USER_DTO_TEST_OBJ); }); it('should return the same UpdateUserDto', () => { expect( - passwordComplexityPipe.transform(UPDATE_USER_DTO_TEST_OBJ, metaData) + passwordComplexityPipe.transform(UPDATE_USER_DTO_TEST_OBJ) ).toEqual(UPDATE_USER_DTO_TEST_OBJ); }); it('should return UpdateUserDto if password fields are null', () => { expect( - passwordComplexityPipe.transform( - UPDATE_USER_DTO_WITHOUT_PASSWORD_FIELDS, - metaData - ) + passwordComplexityPipe.transform(UPDATE_USER_DTO_WITHOUT_PASSWORD_FIELDS) ).toEqual(UPDATE_USER_DTO_WITHOUT_PASSWORD_FIELDS); }); }); @@ -146,31 +142,19 @@ describe('PasswordComplexityPipe', () => { describe('Test Invalid Password', () => { it('should throw a BadRequestException for CreateUserDto with missing password', () => { expect(() => - passwordComplexityPipe.transform( - CREATE_USER_DTO_TEST_OBJ_WITH_MISSING_PASSWORD_FIELD, - metaData - ) + passwordComplexityPipe.transform(CREATE_USER_DTO_TEST_OBJ_WITH_MISSING_PASSWORD_FIELD) ).toThrowError(BadRequestException); expect(() => - passwordComplexityPipe.transform( - CREATE_USER_DTO_TEST_OBJ_WITH_MISSING_PASSWORD_FIELD, - metaData - ) + passwordComplexityPipe.transform(CREATE_USER_DTO_TEST_OBJ_WITH_MISSING_PASSWORD_FIELD) ).toThrowError('Password must be of type string'); }); it('should throw a BadRequestException for UpdateUserDto with missing password', () => { expect(() => - passwordComplexityPipe.transform( - UPDATE_USER_DTO_TEST_WITHOUT_PASSWORD, - metaData - ) + passwordComplexityPipe.transform(UPDATE_USER_DTO_TEST_WITHOUT_PASSWORD) ).toThrowError(BadRequestException); expect(() => - passwordComplexityPipe.transform( - UPDATE_USER_DTO_TEST_WITHOUT_PASSWORD, - metaData - ) + passwordComplexityPipe.transform(UPDATE_USER_DTO_TEST_WITHOUT_PASSWORD) ).toThrowError('Password must be of type string'); }); }); diff --git a/apps/backend/src/pipes/password-complexity.pipe.ts b/apps/backend/src/pipes/password-complexity.pipe.ts index 782777e243..b154f0532c 100644 --- a/apps/backend/src/pipes/password-complexity.pipe.ts +++ b/apps/backend/src/pipes/password-complexity.pipe.ts @@ -27,8 +27,7 @@ export class PasswordComplexityPipe implements PipeTransform { value: { password: string | undefined; passwordConfirmation: string | undefined; - }, - _metadata: ArgumentMetadata + } ): Record { if (!value.password && !value.passwordConfirmation) { return value; From 16c7b44da5940a4ee0a98eb5f099b831250bf7ec Mon Sep 17 00:00:00 2001 From: Amndeep Singh Mann Date: Mon, 30 Dec 2024 16:44:58 -0500 Subject: [PATCH 3/7] make code more functional programming paradigm Signed-off-by: Amndeep Singh Mann --- apps/backend/src/pipes/password-complexity.pipe.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/apps/backend/src/pipes/password-complexity.pipe.ts b/apps/backend/src/pipes/password-complexity.pipe.ts index b154f0532c..017592743b 100644 --- a/apps/backend/src/pipes/password-complexity.pipe.ts +++ b/apps/backend/src/pipes/password-complexity.pipe.ts @@ -7,18 +7,11 @@ import { } from '@nestjs/common'; export function validatePassword(password?: string): string[] { - const errors = []; if (typeof password !== 'string') { - errors.push('Password must be of type string'); + return ['Password must be of type string']; } else { - validators.forEach((validator) => { - if (!validator.check(password)) { - errors.push(validator.name); - } - }); + return validators.filter(validator => !validator.check(password)).map(validator.name)a; } - - return errors; } @Injectable() From 2e8691b79385d2ddbec1cf361571d8f49aa5c71f Mon Sep 17 00:00:00 2001 From: Amndeep Singh Mann Date: Mon, 30 Dec 2024 17:00:11 -0500 Subject: [PATCH 4/7] get rid of typo Signed-off-by: Amndeep Singh Mann --- apps/backend/src/pipes/password-complexity.pipe.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/backend/src/pipes/password-complexity.pipe.ts b/apps/backend/src/pipes/password-complexity.pipe.ts index 017592743b..6d1ed261e1 100644 --- a/apps/backend/src/pipes/password-complexity.pipe.ts +++ b/apps/backend/src/pipes/password-complexity.pipe.ts @@ -10,7 +10,7 @@ export function validatePassword(password?: string): string[] { if (typeof password !== 'string') { return ['Password must be of type string']; } else { - return validators.filter(validator => !validator.check(password)).map(validator.name)a; + return validators.filter(validator => !validator.check(password)).map(validator.name); } } From 139a18567c59b47301dd1b747b7ab2e041d3e975 Mon Sep 17 00:00:00 2001 From: Amndeep Singh Mann Date: Mon, 30 Dec 2024 17:07:05 -0500 Subject: [PATCH 5/7] lint and forgot to provide the parameter syntax in the map function Signed-off-by: Amndeep Singh Mann --- .../pipes/password-complexity.pipe.spec.ts | 14 +++++++++---- .../src/pipes/password-complexity.pipe.ts | 21 +++++++------------ 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/apps/backend/src/pipes/password-complexity.pipe.spec.ts b/apps/backend/src/pipes/password-complexity.pipe.spec.ts index 229605942e..ed16b26a03 100644 --- a/apps/backend/src/pipes/password-complexity.pipe.spec.ts +++ b/apps/backend/src/pipes/password-complexity.pipe.spec.ts @@ -1,5 +1,5 @@ import {validators} from '@heimdall/password-complexity'; -import {ArgumentMetadata, BadRequestException} from '@nestjs/common'; +import {BadRequestException} from '@nestjs/common'; import { CREATE_USER_DTO_TEST_OBJ, CREATE_USER_DTO_TEST_OBJ_WITH_MISSING_PASSWORD_FIELD, @@ -132,7 +132,9 @@ describe('PasswordComplexityPipe', () => { it('should return UpdateUserDto if password fields are null', () => { expect( - passwordComplexityPipe.transform(UPDATE_USER_DTO_WITHOUT_PASSWORD_FIELDS) + passwordComplexityPipe.transform( + UPDATE_USER_DTO_WITHOUT_PASSWORD_FIELDS + ) ).toEqual(UPDATE_USER_DTO_WITHOUT_PASSWORD_FIELDS); }); }); @@ -142,10 +144,14 @@ describe('PasswordComplexityPipe', () => { describe('Test Invalid Password', () => { it('should throw a BadRequestException for CreateUserDto with missing password', () => { expect(() => - passwordComplexityPipe.transform(CREATE_USER_DTO_TEST_OBJ_WITH_MISSING_PASSWORD_FIELD) + passwordComplexityPipe.transform( + CREATE_USER_DTO_TEST_OBJ_WITH_MISSING_PASSWORD_FIELD + ) ).toThrowError(BadRequestException); expect(() => - passwordComplexityPipe.transform(CREATE_USER_DTO_TEST_OBJ_WITH_MISSING_PASSWORD_FIELD) + passwordComplexityPipe.transform( + CREATE_USER_DTO_TEST_OBJ_WITH_MISSING_PASSWORD_FIELD + ) ).toThrowError('Password must be of type string'); }); diff --git a/apps/backend/src/pipes/password-complexity.pipe.ts b/apps/backend/src/pipes/password-complexity.pipe.ts index 6d1ed261e1..8d010ae11c 100644 --- a/apps/backend/src/pipes/password-complexity.pipe.ts +++ b/apps/backend/src/pipes/password-complexity.pipe.ts @@ -1,27 +1,22 @@ import {validators} from '@heimdall/password-complexity'; -import { - ArgumentMetadata, - BadRequestException, - Injectable, - PipeTransform -} from '@nestjs/common'; +import {BadRequestException, Injectable, PipeTransform} from '@nestjs/common'; export function validatePassword(password?: string): string[] { if (typeof password !== 'string') { return ['Password must be of type string']; } else { - return validators.filter(validator => !validator.check(password)).map(validator.name); + return validators + .filter((validator) => !validator.check(password)) + .map((validator) => validator.name); } } @Injectable() export class PasswordComplexityPipe implements PipeTransform { - transform( - value: { - password: string | undefined; - passwordConfirmation: string | undefined; - } - ): Record { + transform(value: { + password: string | undefined; + passwordConfirmation: string | undefined; + }): Record { if (!value.password && !value.passwordConfirmation) { return value; } From 957f26a2d79dfdfde6cba1361cb6ac0cf0cee56c Mon Sep 17 00:00:00 2001 From: Amndeep Singh Mann Date: Mon, 30 Dec 2024 17:17:22 -0500 Subject: [PATCH 6/7] delete the unused parameters here too Signed-off-by: Amndeep Singh Mann --- .../src/pipes/password-change.pipe.spec.ts | 22 +++++-------------- .../backend/src/pipes/password-change.pipe.ts | 2 -- .../src/pipes/passwords-match.pipe.spec.ts | 22 +++++-------------- .../backend/src/pipes/passwords-match.pipe.ts | 4 +--- 4 files changed, 13 insertions(+), 37 deletions(-) diff --git a/apps/backend/src/pipes/password-change.pipe.spec.ts b/apps/backend/src/pipes/password-change.pipe.spec.ts index 26a693346a..a163ceec26 100644 --- a/apps/backend/src/pipes/password-change.pipe.spec.ts +++ b/apps/backend/src/pipes/password-change.pipe.spec.ts @@ -1,4 +1,4 @@ -import {ArgumentMetadata, BadRequestException} from '@nestjs/common'; +import {BadRequestException} from '@nestjs/common'; import { UPDATE_USER_DTO_TEST_OBJ, UPDATE_USER_DTO_TEST_OBJ_WITH_UPDATED_PASSWORD, @@ -9,7 +9,6 @@ import {PasswordChangePipe} from './password-change.pipe'; describe('PasswordChangePipe', () => { let passwordChangePipe: PasswordChangePipe; - let metaData: ArgumentMetadata; beforeEach(() => { passwordChangePipe = new PasswordChangePipe(); @@ -94,19 +93,13 @@ describe('PasswordChangePipe', () => { }); it('should return the same UpdateUserDto', () => { expect( - passwordChangePipe.transform( - UPDATE_USER_DTO_TEST_OBJ_WITH_UPDATED_PASSWORD, - metaData - ) + passwordChangePipe.transform(UPDATE_USER_DTO_TEST_OBJ_WITH_UPDATED_PASSWORD) ).toEqual(UPDATE_USER_DTO_TEST_OBJ_WITH_UPDATED_PASSWORD); }); it('should return UpdateUserDto if password fields are null', () => { expect( - passwordChangePipe.transform( - UPDATE_USER_DTO_WITHOUT_PASSWORD_FIELDS, - metaData - ) + passwordChangePipe.transform(UPDATE_USER_DTO_WITHOUT_PASSWORD_FIELDS) ).toEqual(UPDATE_USER_DTO_WITHOUT_PASSWORD_FIELDS); }); @@ -117,10 +110,7 @@ describe('PasswordChangePipe', () => { */ it('should should pass when the currentPassword is not provided and a valid new password is provided', () => { expect( - passwordChangePipe.transform( - UPDATE_USER_DTO_WITH_INVALID_CURRENT_PASSWORD, - metaData - ) + passwordChangePipe.transform(UPDATE_USER_DTO_WITH_INVALID_CURRENT_PASSWORD) ).toEqual(UPDATE_USER_DTO_WITH_INVALID_CURRENT_PASSWORD); }); }); @@ -130,10 +120,10 @@ describe('PasswordChangePipe', () => { describe('Test Invalid Password Changes', () => { it('should throw a BadRequestException', () => { expect(() => - passwordChangePipe.transform(UPDATE_USER_DTO_TEST_OBJ, metaData) + passwordChangePipe.transform(UPDATE_USER_DTO_TEST_OBJ) ).toThrowError(BadRequestException); expect(() => - passwordChangePipe.transform(UPDATE_USER_DTO_TEST_OBJ, metaData) + passwordChangePipe.transform(UPDATE_USER_DTO_TEST_OBJ) ).toThrowError( 'A minimum of four character classes must be changed when updating a password.' + ' A minimum of eight of the total number of characters must be changed when updating a password.' diff --git a/apps/backend/src/pipes/password-change.pipe.ts b/apps/backend/src/pipes/password-change.pipe.ts index 3f69366026..fedeb2eb78 100644 --- a/apps/backend/src/pipes/password-change.pipe.ts +++ b/apps/backend/src/pipes/password-change.pipe.ts @@ -1,5 +1,4 @@ import { - ArgumentMetadata, BadRequestException, Injectable, PipeTransform @@ -14,7 +13,6 @@ export class PasswordChangePipe implements PipeTransform { password: string | undefined; passwordConfirmation: string | undefined; }, - _metadata: ArgumentMetadata ): Record { if ( (!value.password && !value.passwordConfirmation) || diff --git a/apps/backend/src/pipes/passwords-match.pipe.spec.ts b/apps/backend/src/pipes/passwords-match.pipe.spec.ts index 949f2ecbd0..3f562003eb 100644 --- a/apps/backend/src/pipes/passwords-match.pipe.spec.ts +++ b/apps/backend/src/pipes/passwords-match.pipe.spec.ts @@ -1,4 +1,4 @@ -import {ArgumentMetadata, BadRequestException} from '@nestjs/common'; +import {BadRequestException} from '@nestjs/common'; import { CREATE_USER_DTO_TEST_OBJ, CREATE_USER_DTO_TEST_OBJ_WITH_UNMATCHING_PASSWORDS, @@ -9,7 +9,6 @@ import {PasswordsMatchPipe} from './passwords-match.pipe'; describe('PasswordsMatchPipe', () => { let passwordsMatchPipe: PasswordsMatchPipe; - let metaData: ArgumentMetadata; beforeEach(() => { passwordsMatchPipe = new PasswordsMatchPipe(); @@ -24,22 +23,19 @@ describe('PasswordsMatchPipe', () => { describe('Test Matching Passwords', () => { it('should return the same CreateUserDto', () => { expect( - passwordsMatchPipe.transform(CREATE_USER_DTO_TEST_OBJ, metaData) + passwordsMatchPipe.transform(CREATE_USER_DTO_TEST_OBJ) ).toEqual(CREATE_USER_DTO_TEST_OBJ); }); it('should return the same UpdateUserDto', () => { expect( - passwordsMatchPipe.transform(UPDATE_USER_DTO_TEST_OBJ, metaData) + passwordsMatchPipe.transform(UPDATE_USER_DTO_TEST_OBJ) ).toEqual(UPDATE_USER_DTO_TEST_OBJ); }); it('should return UpdateUserDto if password fields are null', () => { expect( - passwordsMatchPipe.transform( - UPDATE_USER_DTO_WITHOUT_PASSWORD_FIELDS, - metaData - ) + passwordsMatchPipe.transform(UPDATE_USER_DTO_WITHOUT_PASSWORD_FIELDS) ).toEqual(UPDATE_USER_DTO_WITHOUT_PASSWORD_FIELDS); }); }); @@ -49,16 +45,10 @@ describe('PasswordsMatchPipe', () => { describe('Test Mismatching Passwords', () => { it('should throw a Bad Request Exception', () => { expect(() => - passwordsMatchPipe.transform( - CREATE_USER_DTO_TEST_OBJ_WITH_UNMATCHING_PASSWORDS, - metaData - ) + passwordsMatchPipe.transform(CREATE_USER_DTO_TEST_OBJ_WITH_UNMATCHING_PASSWORDS) ).toThrowError(BadRequestException); expect(() => - passwordsMatchPipe.transform( - CREATE_USER_DTO_TEST_OBJ_WITH_UNMATCHING_PASSWORDS, - metaData - ) + passwordsMatchPipe.transform(CREATE_USER_DTO_TEST_OBJ_WITH_UNMATCHING_PASSWORDS) ).toThrowError('Passwords do not match'); }); }); diff --git a/apps/backend/src/pipes/passwords-match.pipe.ts b/apps/backend/src/pipes/passwords-match.pipe.ts index 89f0f2b9df..bbe047f5af 100644 --- a/apps/backend/src/pipes/passwords-match.pipe.ts +++ b/apps/backend/src/pipes/passwords-match.pipe.ts @@ -1,5 +1,4 @@ import { - ArgumentMetadata, BadRequestException, Injectable, PipeTransform @@ -12,8 +11,7 @@ export class PasswordsMatchPipe implements PipeTransform { currentPassword?: string; password: string | undefined; passwordConfirmation: string | undefined; - }, - _metadata: ArgumentMetadata + } ): Record { if ( value.currentPassword != null && From 674012e111d2840e0a0f98b12fa6d8694b896ca8 Mon Sep 17 00:00:00 2001 From: Amndeep Singh Mann Date: Mon, 30 Dec 2024 17:17:47 -0500 Subject: [PATCH 7/7] lint Signed-off-by: Amndeep Singh Mann --- .../src/pipes/password-change.pipe.spec.ts | 8 ++++++-- .../backend/src/pipes/password-change.pipe.ts | 18 ++++++----------- .../src/pipes/passwords-match.pipe.spec.ts | 20 +++++++++++-------- .../backend/src/pipes/passwords-match.pipe.ts | 18 ++++++----------- 4 files changed, 30 insertions(+), 34 deletions(-) diff --git a/apps/backend/src/pipes/password-change.pipe.spec.ts b/apps/backend/src/pipes/password-change.pipe.spec.ts index a163ceec26..af66771d9d 100644 --- a/apps/backend/src/pipes/password-change.pipe.spec.ts +++ b/apps/backend/src/pipes/password-change.pipe.spec.ts @@ -93,7 +93,9 @@ describe('PasswordChangePipe', () => { }); it('should return the same UpdateUserDto', () => { expect( - passwordChangePipe.transform(UPDATE_USER_DTO_TEST_OBJ_WITH_UPDATED_PASSWORD) + passwordChangePipe.transform( + UPDATE_USER_DTO_TEST_OBJ_WITH_UPDATED_PASSWORD + ) ).toEqual(UPDATE_USER_DTO_TEST_OBJ_WITH_UPDATED_PASSWORD); }); @@ -110,7 +112,9 @@ describe('PasswordChangePipe', () => { */ it('should should pass when the currentPassword is not provided and a valid new password is provided', () => { expect( - passwordChangePipe.transform(UPDATE_USER_DTO_WITH_INVALID_CURRENT_PASSWORD) + passwordChangePipe.transform( + UPDATE_USER_DTO_WITH_INVALID_CURRENT_PASSWORD + ) ).toEqual(UPDATE_USER_DTO_WITH_INVALID_CURRENT_PASSWORD); }); }); diff --git a/apps/backend/src/pipes/password-change.pipe.ts b/apps/backend/src/pipes/password-change.pipe.ts index fedeb2eb78..30ca8e6a60 100644 --- a/apps/backend/src/pipes/password-change.pipe.ts +++ b/apps/backend/src/pipes/password-change.pipe.ts @@ -1,19 +1,13 @@ -import { - BadRequestException, - Injectable, - PipeTransform -} from '@nestjs/common'; +import {BadRequestException, Injectable, PipeTransform} from '@nestjs/common'; import levenshtein = require('js-levenshtein'); @Injectable() export class PasswordChangePipe implements PipeTransform { - transform( - value: { - currentPassword?: string; - password: string | undefined; - passwordConfirmation: string | undefined; - }, - ): Record { + transform(value: { + currentPassword?: string; + password: string | undefined; + passwordConfirmation: string | undefined; + }): Record { if ( (!value.password && !value.passwordConfirmation) || !value.currentPassword diff --git a/apps/backend/src/pipes/passwords-match.pipe.spec.ts b/apps/backend/src/pipes/passwords-match.pipe.spec.ts index 3f562003eb..fecec4a017 100644 --- a/apps/backend/src/pipes/passwords-match.pipe.spec.ts +++ b/apps/backend/src/pipes/passwords-match.pipe.spec.ts @@ -22,15 +22,15 @@ describe('PasswordsMatchPipe', () => { the same CreateUserDto obj that is passed to the pipeline, is returned */ describe('Test Matching Passwords', () => { it('should return the same CreateUserDto', () => { - expect( - passwordsMatchPipe.transform(CREATE_USER_DTO_TEST_OBJ) - ).toEqual(CREATE_USER_DTO_TEST_OBJ); + expect(passwordsMatchPipe.transform(CREATE_USER_DTO_TEST_OBJ)).toEqual( + CREATE_USER_DTO_TEST_OBJ + ); }); it('should return the same UpdateUserDto', () => { - expect( - passwordsMatchPipe.transform(UPDATE_USER_DTO_TEST_OBJ) - ).toEqual(UPDATE_USER_DTO_TEST_OBJ); + expect(passwordsMatchPipe.transform(UPDATE_USER_DTO_TEST_OBJ)).toEqual( + UPDATE_USER_DTO_TEST_OBJ + ); }); it('should return UpdateUserDto if password fields are null', () => { @@ -45,10 +45,14 @@ describe('PasswordsMatchPipe', () => { describe('Test Mismatching Passwords', () => { it('should throw a Bad Request Exception', () => { expect(() => - passwordsMatchPipe.transform(CREATE_USER_DTO_TEST_OBJ_WITH_UNMATCHING_PASSWORDS) + passwordsMatchPipe.transform( + CREATE_USER_DTO_TEST_OBJ_WITH_UNMATCHING_PASSWORDS + ) ).toThrowError(BadRequestException); expect(() => - passwordsMatchPipe.transform(CREATE_USER_DTO_TEST_OBJ_WITH_UNMATCHING_PASSWORDS) + passwordsMatchPipe.transform( + CREATE_USER_DTO_TEST_OBJ_WITH_UNMATCHING_PASSWORDS + ) ).toThrowError('Passwords do not match'); }); }); diff --git a/apps/backend/src/pipes/passwords-match.pipe.ts b/apps/backend/src/pipes/passwords-match.pipe.ts index bbe047f5af..68eced9982 100644 --- a/apps/backend/src/pipes/passwords-match.pipe.ts +++ b/apps/backend/src/pipes/passwords-match.pipe.ts @@ -1,18 +1,12 @@ -import { - BadRequestException, - Injectable, - PipeTransform -} from '@nestjs/common'; +import {BadRequestException, Injectable, PipeTransform} from '@nestjs/common'; @Injectable() export class PasswordsMatchPipe implements PipeTransform { - transform( - value: { - currentPassword?: string; - password: string | undefined; - passwordConfirmation: string | undefined; - } - ): Record { + transform(value: { + currentPassword?: string; + password: string | undefined; + passwordConfirmation: string | undefined; + }): Record { if ( value.currentPassword != null && value.password == null &&