react-asc 25.18.0 → 25.18.1

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.
Files changed (3) hide show
  1. package/index.es.js +2 -2
  2. package/index.js +2 -2
  3. package/package.json +1 -1
package/index.es.js CHANGED
@@ -5423,9 +5423,9 @@ const EmailValidator = (value) => {
5423
5423
 
5424
5424
  const IsEqualValidator = (valueA, valueB) => valueA === valueB;
5425
5425
 
5426
- const MaxValidator = (val, valueB) => (val && val.length <= valueB) || false;
5426
+ const MaxValidator = (val, valueB) => (val && val.toString().length <= valueB) || false;
5427
5427
 
5428
- const MinValidator = (val, minLength) => (val && val.length >= minLength) || false;
5428
+ const MinValidator = (val, minLength) => (val && val.toString().length >= minLength) || false;
5429
5429
 
5430
5430
  class Form extends Component {
5431
5431
  constructor(props) {
package/index.js CHANGED
@@ -5425,9 +5425,9 @@ const EmailValidator = (value) => {
5425
5425
 
5426
5426
  const IsEqualValidator = (valueA, valueB) => valueA === valueB;
5427
5427
 
5428
- const MaxValidator = (val, valueB) => (val && val.length <= valueB) || false;
5428
+ const MaxValidator = (val, valueB) => (val && val.toString().length <= valueB) || false;
5429
5429
 
5430
- const MinValidator = (val, minLength) => (val && val.length >= minLength) || false;
5430
+ const MinValidator = (val, minLength) => (val && val.toString().length >= minLength) || false;
5431
5431
 
5432
5432
  class Form extends React.Component {
5433
5433
  constructor(props) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-asc",
3
- "version": "25.18.0",
3
+ "version": "25.18.1",
4
4
  "description": "handcrafted react components",
5
5
  "main": "index.js",
6
6
  "module": "index.es.js",