@punks/backend-entity-manager 0.0.408 → 0.0.410

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/cjs/index.js CHANGED
@@ -41015,6 +41015,12 @@ const fieldTextValidator = (item, selector, params) => {
41015
41015
  ],
41016
41016
  };
41017
41017
  };
41018
+ const fieldEmailValidator = (item, selector, params) => {
41019
+ return fieldTextValidator(item, selector, {
41020
+ ...params,
41021
+ regex: /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,
41022
+ });
41023
+ };
41018
41024
  const fieldOptionValidator = (item, selector, { availableOptions, required, }) => {
41019
41025
  const value = selector(item);
41020
41026
  if (!value) {
@@ -45201,6 +45207,7 @@ exports.buildProviderToken = buildProviderToken;
45201
45207
  exports.buildRolesGuard = buildRolesGuard;
45202
45208
  exports.createContainer = createContainer;
45203
45209
  exports.createExpressFileResponse = createExpressFileResponse;
45210
+ exports.fieldEmailValidator = fieldEmailValidator;
45204
45211
  exports.fieldOptionValidator = fieldOptionValidator;
45205
45212
  exports.fieldOptionsValidator = fieldOptionsValidator;
45206
45213
  exports.fieldRequiredValidator = fieldRequiredValidator;