@nomalism-com/types 0.35.12 → 0.35.13
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.cjs
CHANGED
|
@@ -4518,7 +4518,7 @@ __export(route_schema_exports81, {
|
|
|
4518
4518
|
updateBody: () => updateBody51
|
|
4519
4519
|
});
|
|
4520
4520
|
import joi82 from "joi";
|
|
4521
|
-
var emailSchema = joi82.string().trim(true).lowercase().email({ tlds: { allow: false } });
|
|
4521
|
+
var emailSchema = joi82.string().trim(true).lowercase().email({ tlds: { allow: false } }).allow(null, "");
|
|
4522
4522
|
var createBodyKeys56 = {
|
|
4523
4523
|
name: joi82.string().allow(null, "").optional(),
|
|
4524
4524
|
nif: joi82.string().allow(null, "").optional(),
|
package/dist/index.js
CHANGED
|
@@ -4518,7 +4518,7 @@ __export(route_schema_exports81, {
|
|
|
4518
4518
|
updateBody: () => updateBody51
|
|
4519
4519
|
});
|
|
4520
4520
|
import joi82 from "joi";
|
|
4521
|
-
var emailSchema = joi82.string().trim(true).lowercase().email({ tlds: { allow: false } });
|
|
4521
|
+
var emailSchema = joi82.string().trim(true).lowercase().email({ tlds: { allow: false } }).allow(null, "");
|
|
4522
4522
|
var createBodyKeys56 = {
|
|
4523
4523
|
name: joi82.string().allow(null, "").optional(),
|
|
4524
4524
|
nif: joi82.string().allow(null, "").optional(),
|
package/package.json
CHANGED
|
@@ -15,7 +15,9 @@ const emailSchema = joi
|
|
|
15
15
|
.string()
|
|
16
16
|
.trim(true)
|
|
17
17
|
.lowercase()
|
|
18
|
-
.email({ tlds: { allow: false } })
|
|
18
|
+
.email({ tlds: { allow: false } })
|
|
19
|
+
.allow(null, '');
|
|
20
|
+
|
|
19
21
|
// create body validation
|
|
20
22
|
const createBodyKeys: IShared.IRouteRequest<ICreateRequest> = {
|
|
21
23
|
name: joi.string().allow(null, '').optional(),
|