@insforge/react 0.2.1 → 0.2.2
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.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/lib.js +2 -2
- package/dist/lib.js.map +1 -1
- package/dist/lib.mjs +2 -2
- package/dist/lib.mjs.map +1 -1
- package/package.json +12 -12
package/dist/index.js
CHANGED
|
@@ -2035,7 +2035,7 @@ function validateEmail(email) {
|
|
|
2035
2035
|
if (result.success) {
|
|
2036
2036
|
return { valid: true };
|
|
2037
2037
|
}
|
|
2038
|
-
return { valid: false, error: result.error.
|
|
2038
|
+
return { valid: false, error: result.error.message };
|
|
2039
2039
|
}
|
|
2040
2040
|
function validatePassword(password, options) {
|
|
2041
2041
|
const schema = createPasswordSchema(options);
|
|
@@ -2043,7 +2043,7 @@ function validatePassword(password, options) {
|
|
|
2043
2043
|
if (result.success) {
|
|
2044
2044
|
return { valid: true };
|
|
2045
2045
|
}
|
|
2046
|
-
return { valid: false, error: result.error.
|
|
2046
|
+
return { valid: false, error: result.error.message };
|
|
2047
2047
|
}
|
|
2048
2048
|
function checkPasswordStrength(password) {
|
|
2049
2049
|
const feedback = [];
|