@stbmoz-onboarding/core 1.0.31 → 1.0.34

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.
@@ -1,4 +1,4 @@
1
- const { isAboveMaxLength, isMinLength, notIncludes, isIn } = require("./../Validations")
1
+ const { isAboveMaxLength, isMinLength, allowedCharsOnly, isIn } = require("./../Validations")
2
2
 
3
3
  const feedbacks = {
4
4
  oversized: "Ultrapassou o limite de caracteres",
@@ -53,7 +53,7 @@ module.exports.Sanitize = (values, key, errors, isRequired, failMessage, _minLen
53
53
 
54
54
  if (!values[key] && isRequired) {
55
55
  errors[key] = feedbacks.required
56
- } else if (!notIncludes(values[key], allowedChars)) {
56
+ } else if (!allowedCharsOnly(values[key], allowedChars)) {
57
57
  if (!isMinLength(values[key], _minLength)) {
58
58
  errors[key] = failMessage
59
59
  } else {
package/index.js CHANGED
@@ -2,7 +2,7 @@ const { DateFormater, ValidateDate } = require("./Dates/dates")
2
2
  const {
3
3
  AllowedPrefixes, GenerateNumericPin, ReferenceGenerator, Sanitize, Serializer,
4
4
  removeFile, SubArrayGenerator
5
- } = require("./functions/functions")
5
+ } = require("./Functions/functions")
6
6
 
7
7
 
8
8
  const { academicLevel, academicLevels } = require("./Utilities/academicLevels")
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stbmoz-onboarding/core",
3
3
  "type": "commonjs",
4
- "version": "1.0.31",
4
+ "version": "1.0.34",
5
5
  "description": "\"core module\"",
6
6
  "main": "index.js",
7
7
  "scripts": {