Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dhis2/prop-types

Package Overview
Dependencies
Maintainers
15
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dhis2/prop-types - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

2

build/cjs/lib.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc