chore(utils): update class-validator to 0.14.0 (#4032)
* update class-validator to 0.14.0 in utils package * Create new-jokes-relax.md --------- Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
6
.changeset/new-jokes-relax.md
Normal file
6
.changeset/new-jokes-relax.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"@medusajs/medusa": patch
|
||||
"@medusajs/utils": patch
|
||||
---
|
||||
|
||||
update class-validator to 0.14.0 in utils package
|
||||
@@ -5,7 +5,9 @@ import { validator } from "../../utils/validator"
|
||||
|
||||
export function transformBody<T>(
|
||||
plainToClass: ClassConstructor<T>,
|
||||
config: ValidatorOptions = {}
|
||||
config: ValidatorOptions = {
|
||||
forbidUnknownValues: false,
|
||||
}
|
||||
): (req: Request, res: Response, next: NextFunction) => Promise<void> {
|
||||
return async (req: Request, res: Response, next: NextFunction) => {
|
||||
try {
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
"dependencies": {
|
||||
"awilix": "^8.0.0",
|
||||
"class-transformer": "^0.5.1",
|
||||
"class-validator": "^0.13.2",
|
||||
"class-validator": "^0.14.0",
|
||||
"typeorm": "npm:@medusajs/typeorm@0.3.16-next.0",
|
||||
"ulid": "^2.3.0"
|
||||
},
|
||||
|
||||
19
yarn.lock
19
yarn.lock
@@ -6274,7 +6274,7 @@ __metadata:
|
||||
"@types/express": ^4.17.17
|
||||
awilix: ^8.0.0
|
||||
class-transformer: ^0.5.1
|
||||
class-validator: ^0.13.2
|
||||
class-validator: ^0.14.0
|
||||
cross-env: ^5.2.1
|
||||
jest: ^25.5.4
|
||||
ts-jest: ^25.5.1
|
||||
@@ -16031,16 +16031,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"class-validator@npm:^0.13.2":
|
||||
version: 0.13.2
|
||||
resolution: "class-validator@npm:0.13.2"
|
||||
dependencies:
|
||||
libphonenumber-js: ^1.9.43
|
||||
validator: ^13.7.0
|
||||
checksum: e7a1a318967229582b25da9c3b81e316627b014640968824b00bf001f4d79101017b91c59cb3f2c8c0922c4446b5a1114c27ba91aae1c1f109e0ad4d504dfcd5
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"class-validator@npm:^0.14.0":
|
||||
version: 0.14.0
|
||||
resolution: "class-validator@npm:0.14.0"
|
||||
@@ -27949,13 +27939,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"libphonenumber-js@npm:^1.9.43":
|
||||
version: 1.10.8
|
||||
resolution: "libphonenumber-js@npm:1.10.8"
|
||||
checksum: 55c7805b41c9066f1ee0754eef448f4575f04286eedaefa1e0b0d878b199fb7bd1fbadc3a5ec61c5bbf2db54641264413273767d8cec1c9faeaa297a1da9a502
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"lilconfig@npm:^2.0.3, lilconfig@npm:^2.0.5, lilconfig@npm:^2.0.6":
|
||||
version: 2.0.6
|
||||
resolution: "lilconfig@npm:2.0.6"
|
||||
|
||||
Reference in New Issue
Block a user