redux-freeform 5.6.0-beta.2 → 5.6.0-beta.3

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.
@@ -486,6 +486,13 @@ const runValidator = (validator, value, form) => {
486
486
  };
487
487
 
488
488
  const _computeErrors = (fieldName, form, validators) => {
489
+ console.log("field name is", fieldName);
490
+ console.log("form is", form);
491
+ console.log("validators are", validators);
492
+ const validatorsResult = validators.map(v =>
493
+ runValidator(v, form[fieldName].rawValue, form)
494
+ );
495
+ console.log("validators result is", validatorsResult);
489
496
  return validators
490
497
  .map(v => runValidator(v, form[fieldName].rawValue, form))
491
498
  .filter(x => x !== null);
@@ -482,6 +482,13 @@ const runValidator = (validator, value, form) => {
482
482
  };
483
483
 
484
484
  const _computeErrors = (fieldName, form, validators) => {
485
+ console.log("field name is", fieldName);
486
+ console.log("form is", form);
487
+ console.log("validators are", validators);
488
+ const validatorsResult = validators.map(v =>
489
+ runValidator(v, form[fieldName].rawValue, form)
490
+ );
491
+ console.log("validators result is", validatorsResult);
485
492
  return validators
486
493
  .map(v => runValidator(v, form[fieldName].rawValue, form))
487
494
  .filter(x => x !== null);
@@ -488,6 +488,13 @@
488
488
  };
489
489
 
490
490
  const _computeErrors = (fieldName, form, validators) => {
491
+ console.log("field name is", fieldName);
492
+ console.log("form is", form);
493
+ console.log("validators are", validators);
494
+ const validatorsResult = validators.map(v =>
495
+ runValidator(v, form[fieldName].rawValue, form)
496
+ );
497
+ console.log("validators result is", validatorsResult);
491
498
  return validators
492
499
  .map(v => runValidator(v, form[fieldName].rawValue, form))
493
500
  .filter(x => x !== null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redux-freeform",
3
- "version": "5.6.0-beta.2",
3
+ "version": "5.6.0-beta.3",
4
4
  "description": "A small Redux form library that supports purely functional apps, without magic",
5
5
  "main": "dist/redux-freeform.cjs.js",
6
6
  "module": "dist/redux-freeform.esm.js",