@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.mjs
CHANGED
|
@@ -2033,7 +2033,7 @@ function validateEmail(email) {
|
|
|
2033
2033
|
if (result.success) {
|
|
2034
2034
|
return { valid: true };
|
|
2035
2035
|
}
|
|
2036
|
-
return { valid: false, error: result.error.
|
|
2036
|
+
return { valid: false, error: result.error.message };
|
|
2037
2037
|
}
|
|
2038
2038
|
function validatePassword(password, options) {
|
|
2039
2039
|
const schema = createPasswordSchema(options);
|
|
@@ -2041,7 +2041,7 @@ function validatePassword(password, options) {
|
|
|
2041
2041
|
if (result.success) {
|
|
2042
2042
|
return { valid: true };
|
|
2043
2043
|
}
|
|
2044
|
-
return { valid: false, error: result.error.
|
|
2044
|
+
return { valid: false, error: result.error.message };
|
|
2045
2045
|
}
|
|
2046
2046
|
function checkPasswordStrength(password) {
|
|
2047
2047
|
const feedback = [];
|