redux-freeform 5.6.0-beta.4 → 5.6.0

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.
@@ -482,24 +482,10 @@ const runValidator = (validator, value, form) => {
482
482
  if (validatorFn === undefined) {
483
483
  throw new Error(runValidatorErrorMessage(validator.type));
484
484
  }
485
- console.log(
486
- "run validator (validator, value, form):",
487
- validator.type,
488
- validator.args,
489
- value,
490
- form
491
- );
492
485
  return validatorFn(value, validator.args, form) ? null : validator.error;
493
486
  };
494
487
 
495
488
  const _computeErrors = (fieldName, form, validators) => {
496
- console.log("field name is", fieldName);
497
- console.log("form is", form);
498
- console.log("validators are", validators);
499
- const validatorsResult = validators.map(v =>
500
- runValidator(v, form[fieldName].rawValue, form)
501
- );
502
- console.log("validators result is", validatorsResult);
503
489
  return validators
504
490
  .map(v => runValidator(v, form[fieldName].rawValue, form))
505
491
  .filter(x => x !== null);
@@ -478,24 +478,10 @@ const runValidator = (validator, value, form) => {
478
478
  if (validatorFn === undefined) {
479
479
  throw new Error(runValidatorErrorMessage(validator.type));
480
480
  }
481
- console.log(
482
- "run validator (validator, value, form):",
483
- validator.type,
484
- validator.args,
485
- value,
486
- form
487
- );
488
481
  return validatorFn(value, validator.args, form) ? null : validator.error;
489
482
  };
490
483
 
491
484
  const _computeErrors = (fieldName, form, validators) => {
492
- console.log("field name is", fieldName);
493
- console.log("form is", form);
494
- console.log("validators are", validators);
495
- const validatorsResult = validators.map(v =>
496
- runValidator(v, form[fieldName].rawValue, form)
497
- );
498
- console.log("validators result is", validatorsResult);
499
485
  return validators
500
486
  .map(v => runValidator(v, form[fieldName].rawValue, form))
501
487
  .filter(x => x !== null);
@@ -484,24 +484,10 @@
484
484
  if (validatorFn === undefined) {
485
485
  throw new Error(runValidatorErrorMessage(validator.type));
486
486
  }
487
- console.log(
488
- "run validator (validator, value, form):",
489
- validator.type,
490
- validator.args,
491
- value,
492
- form
493
- );
494
487
  return validatorFn(value, validator.args, form) ? null : validator.error;
495
488
  };
496
489
 
497
490
  const _computeErrors = (fieldName, form, validators) => {
498
- console.log("field name is", fieldName);
499
- console.log("form is", form);
500
- console.log("validators are", validators);
501
- const validatorsResult = validators.map(v =>
502
- runValidator(v, form[fieldName].rawValue, form)
503
- );
504
- console.log("validators result is", validatorsResult);
505
491
  return validators
506
492
  .map(v => runValidator(v, form[fieldName].rawValue, form))
507
493
  .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.4",
3
+ "version": "5.6.0",
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",