sigo-entities 0.0.114 → 0.0.115
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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -241,7 +241,7 @@ var import_class_validator55 = require("class-validator");
|
|
|
241
241
|
var import_class_transformer2 = require("class-transformer");
|
|
242
242
|
var import_class_validator2 = require("class-validator");
|
|
243
243
|
async function validateAndFormatData(data, dtoClass, propertiesToValidate) {
|
|
244
|
-
if (propertiesToValidate
|
|
244
|
+
if (propertiesToValidate) {
|
|
245
245
|
if (propertiesToValidate.length === 0) {
|
|
246
246
|
throw new Error(`Debes especificar al menos una propiedad a validar`);
|
|
247
247
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -44,7 +44,7 @@ import { IsArray as IsArray6, IsEmail as IsEmail2, IsNotEmpty as IsNotEmpty53, I
|
|
|
44
44
|
import { plainToInstance } from "class-transformer";
|
|
45
45
|
import { validate } from "class-validator";
|
|
46
46
|
async function validateAndFormatData(data, dtoClass, propertiesToValidate) {
|
|
47
|
-
if (propertiesToValidate
|
|
47
|
+
if (propertiesToValidate) {
|
|
48
48
|
if (propertiesToValidate.length === 0) {
|
|
49
49
|
throw new Error(`Debes especificar al menos una propiedad a validar`);
|
|
50
50
|
}
|