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

availity-reactstrap-validation

Package Overview
Dependencies
Maintainers
6
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

availity-reactstrap-validation - npm Package Compare versions

Comparing version 2.2.4 to 2.3.0

10

CHANGELOG.md

@@ -0,1 +1,11 @@

<a name="2.3.0"></a>
# [2.3.0](https://github.com/Availity/availity-reactstrap-validation/compare/v2.2.4...v2.3.0) (2018-10-10)
### Features
* **validations:** add enabled property to validation ([#97](https://github.com/Availity/availity-reactstrap-validation/issues/97)) ([d636c0f](https://github.com/Availity/availity-reactstrap-validation/commit/d636c0f))
<a name="2.2.4"></a>

@@ -2,0 +12,0 @@ ## [2.2.4](https://github.com/Availity/availity-reactstrap-validation/compare/v2.2.3...v2.2.4) (2018-10-09)

6

lib/AvForm.js

@@ -687,3 +687,7 @@ 'use strict';

ruleResult = _AvValidator2.default[rule](val, context, ruleProp[rule], input, callback);
if (ruleProp[rule].enabled === false) {
ruleResult = true;
} else {
ruleResult = _AvValidator2.default[rule](val, context, ruleProp[rule], input, callback);
}
}

@@ -690,0 +694,0 @@

4

lib/AvValidator/required.js

@@ -10,6 +10,8 @@ 'use strict';

var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
_ref$value = _ref.value,
enabled = _ref$value === undefined ? true : _ref$value,
_ref$errorMessage = _ref.errorMessage,
errorMessage = _ref$errorMessage === undefined ? false : _ref$errorMessage;
return !(0, _utils.isEmpty)(value) || errorMessage || false;
return !enabled || !(0, _utils.isEmpty)(value) || errorMessage || false;
}
{
"name": "availity-reactstrap-validation",
"version": "2.2.4",
"version": "2.3.0",
"author": "Evan Sharp <evan.sharp@availity.com>",

@@ -5,0 +5,0 @@ "description": "Form validation helpers for reactstrap",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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