calidation
Advanced tools
Comparing version 1.9.0 to 1.10.0
@@ -117,3 +117,4 @@ 'use strict'; | ||
}), | ||
resetAll: _this.onReset | ||
resetAll: _this.onReset, | ||
setError: _this.setError | ||
}); | ||
@@ -124,2 +125,5 @@ }, _this.setField = function (diff) { | ||
_this.setState({ errors: errors, fields: fields }); | ||
}, _this.setError = function (diff) { | ||
var errors = _extends({}, _this.state.errors, diff); | ||
_this.setState({ errors: errors }); | ||
}, _this.validate = function (fields, config) { | ||
@@ -126,0 +130,0 @@ return Object.entries(config).reduce(function (allErrors, _ref6) { |
{ | ||
"name": "calidation", | ||
"version": "1.9.0", | ||
"version": "1.10.0", | ||
"description": "A red hot validation library for React", | ||
@@ -42,3 +42,3 @@ "main": "dist/index.js", | ||
"react-dom": "^16.3.1", | ||
"react-testing-library": "^2.0.0", | ||
"react-testing-library": "^6.0.0", | ||
"rimraf": "^2.6.2", | ||
@@ -45,0 +45,0 @@ "semantic-release": "^15.1.5", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41935
461