calidation
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -84,3 +84,3 @@ 'use strict'; | ||
_this.props.onSubmitRequested({ | ||
_this.props.onSubmit({ | ||
errors: errors, | ||
@@ -117,3 +117,3 @@ fields: fields, | ||
var validator = _this.props.validators[validatorName]; | ||
(0, _invariant2.default)(validator, 'You specified a validator that doesn\'t exist. You specified\n ' + validatorName + '. Available validators:\n ' + Object.keys(_this.props.validators).join(',\n')); | ||
(0, _invariant2.default)(validator, "You specified a validator that doesn't exist. You " + ('specified ' + validatorName + '. Available validators: \n\n') + Object.keys(_this.props.validators).join(',\n')); | ||
@@ -172,3 +172,3 @@ return validator(validatorConfig)(allFields[name]); | ||
Form.defaultProps = { | ||
onSubmitRequested: function onSubmitRequested(f) { | ||
onSubmit: function onSubmit(f) { | ||
return f; | ||
@@ -178,5 +178,5 @@ } | ||
Form.propTypes = { | ||
onSubmitRequested: _propTypes.func, | ||
onSubmit: _propTypes.func, | ||
validators: (0, _propTypes.shape)({}).isRequired | ||
}; | ||
exports.default = (0, _ValidatorsContext.withValidators)(Form); |
{ | ||
"name": "calidation", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A red hot validation library for React", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
34130