@nomalism-com/types 0.42.7 → 0.42.8

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
@@ -4935,10 +4935,12 @@ var sendBodyKeys = {
4935
4935
  name: joi87.string().allow("", null).default("").required(),
4936
4936
  address: joi87.string().email({ tlds: { allow: false } }).required()
4937
4937
  }).required(),
4938
- from: joi87.object().keys({
4939
- name: joi87.string().allow("", null).default("").required(),
4940
- address: joi87.string().email({ tlds: { allow: false } }).required()
4941
- }).required(),
4938
+ from: joi87.array().items(
4939
+ joi87.object().keys({
4940
+ name: joi87.string().allow("", null).default("").required(),
4941
+ address: joi87.string().email({ tlds: { allow: false } }).required()
4942
+ })
4943
+ ).required(),
4942
4944
  cc: joi87.array().items(
4943
4945
  joi87.object().keys({
4944
4946
  name: joi87.string().allow("", null).default("").required(),
package/dist/index.js CHANGED
@@ -4935,10 +4935,12 @@ var sendBodyKeys = {
4935
4935
  name: joi87.string().allow("", null).default("").required(),
4936
4936
  address: joi87.string().email({ tlds: { allow: false } }).required()
4937
4937
  }).required(),
4938
- from: joi87.object().keys({
4939
- name: joi87.string().allow("", null).default("").required(),
4940
- address: joi87.string().email({ tlds: { allow: false } }).required()
4941
- }).required(),
4938
+ from: joi87.array().items(
4939
+ joi87.object().keys({
4940
+ name: joi87.string().allow("", null).default("").required(),
4941
+ address: joi87.string().email({ tlds: { allow: false } }).required()
4942
+ })
4943
+ ).required(),
4942
4944
  cc: joi87.array().items(
4943
4945
  joi87.object().keys({
4944
4946
  name: joi87.string().allow("", null).default("").required(),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nomalism-com/types",
3
3
  "description": "A nomalism package with all necessary types and validations for developing APIs",
4
- "version": "0.42.7",
4
+ "version": "0.42.8",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",