@dhis2/prop-types
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -311,3 +311,3 @@ /* eslint-disable */ | ||
if (condition(props) && isEmpty(propValue)) { | ||
return new Error("Invalid prop `".concat(propName, "` supplied to `").concat(componentName, "`, this prop is conditionally required but has value `").concat(propValue, "`.")); | ||
return new Error("Invalid prop `".concat(propName, "` supplied to `").concat(componentName, "`, this prop is conditionally required but has value `").concat(propValue, "`. The condition that made this prop required is: `").concat(condition.toString(), "`.")); | ||
} // This is how to programatically invoke a propTypes check | ||
@@ -314,0 +314,0 @@ // https://github.com/facebook/prop-types#proptypescheckproptypes |
@@ -306,3 +306,3 @@ /* eslint-disable */ | ||
if (condition(props) && isEmpty(propValue)) { | ||
return new Error("Invalid prop `".concat(propName, "` supplied to `").concat(componentName, "`, this prop is conditionally required but has value `").concat(propValue, "`.")); | ||
return new Error("Invalid prop `".concat(propName, "` supplied to `").concat(componentName, "`, this prop is conditionally required but has value `").concat(propValue, "`. The condition that made this prop required is: `").concat(condition.toString(), "`.")); | ||
} // This is how to programatically invoke a propTypes check | ||
@@ -309,0 +309,0 @@ // https://github.com/facebook/prop-types#proptypescheckproptypes |
@@ -0,1 +1,8 @@ | ||
## [2.0.4](https://github.com/dhis2/prop-types/compare/v2.0.3...v2.0.4) (2021-09-09) | ||
### Bug Fixes | ||
* **required-if:** mention condition in error message ([e9f40cd](https://github.com/dhis2/prop-types/commit/e9f40cd6665f198791bfdf31e50a631b0671f096)) | ||
## [2.0.3](https://github.com/dhis2/prop-types/compare/v2.0.2...v2.0.3) (2020-12-04) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@dhis2/prop-types", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"main": "./build/cjs/lib.js", | ||
@@ -5,0 +5,0 @@ "module": "./build/es/lib.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
182831