sigo-entities 1.2.374 → 1.2.375

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -50066,7 +50066,7 @@ function getFirstError(errors, parentPath = "") {
50066
50066
 
50067
50067
  // src/v2/utils/validateCustom.ts
50068
50068
  async function validateCustom(plain, cls, UnprocessableEntityException, groups) {
50069
- const instance = (0, import_class_transformer785.plainToInstance)(cls, plain, { excludeExtraneousValues: true });
50069
+ const instance = (0, import_class_transformer785.plainToInstance)(cls, plain, { excludeExtraneousValues: true, groups });
50070
50070
  const errors = await (0, import_class_validator762.validate)(instance, { groups });
50071
50071
  if (errors.length) {
50072
50072
  const msg = getFirstError(errors);
package/dist/index.mjs CHANGED
@@ -49593,7 +49593,7 @@ function getFirstError(errors, parentPath = "") {
49593
49593
 
49594
49594
  // src/v2/utils/validateCustom.ts
49595
49595
  async function validateCustom(plain, cls, UnprocessableEntityException, groups) {
49596
- const instance = plainToInstance4(cls, plain, { excludeExtraneousValues: true });
49596
+ const instance = plainToInstance4(cls, plain, { excludeExtraneousValues: true, groups });
49597
49597
  const errors = await validate3(instance, { groups });
49598
49598
  if (errors.length) {
49599
49599
  const msg = getFirstError(errors);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sigo-entities",
3
- "version": "1.2.374",
3
+ "version": "1.2.375",
4
4
  "description": "Desarrollo de modelos de datos SIGO",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",