@altiore/form
Advanced tools
Comparing version 3.3.4 to 3.3.5
@@ -5,6 +5,6 @@ import { getErrorMessage } from '../@common/get-error-message'; | ||
return function (value) { | ||
if (typeof value !== 'string') { | ||
throw new Error("\u041D\u0435\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0439 \u0442\u0438\u043F \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0434\u043B\u044F \u0432\u0430\u043B\u0438\u0434\u0430\u0446\u0438\u0438 \"" + typeof value + "\" \u043F\u0435\u0440\u0435\u0434\u0430\u043D \u0444\u0443\u043D\u043A\u0446\u0438\u0438 \u0434\u043B\u044F \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438 \u0434\u0430\u043D\u043D\u044B\u0445 \"isRequired\""); | ||
} | ||
if (value.length < 1) { | ||
if (value === undefined || | ||
value === null || | ||
(typeof value === 'string' && value.trim()) === '' || | ||
Number.isNaN(value)) { | ||
var defError = "\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u043F\u043E\u043B\u0435"; | ||
@@ -11,0 +11,0 @@ return getErrorMessage(value, value, defError, getMessage); |
{ | ||
"name": "@altiore/form", | ||
"version": "3.3.4", | ||
"version": "3.3.5", | ||
"description": "Form helper for building powerful forms", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
101956
1596