New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@levshitsvv/formsy-react

Package Overview
Dependencies
Maintainers
2
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@levshitsvv/formsy-react - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

32

lib/Wrapper.js

@@ -114,13 +114,15 @@ 'use strict';

if (!validate) {
_this.setState({
value: value
});
} else {
_this.setState({
value: value,
isPristine: false
}, function () {
_this.context.formsy.validate(_this);
});
if (!_utils2.default.isSame(value, _this.state.value)) {
if (!validate) {
_this.setState({
value: value
});
} else {
_this.setState({
value: value,
isPristine: false
}, function () {
_this.context.formsy.validate(_this);
});
}
}

@@ -215,7 +217,13 @@ };

key: 'componentDidUpdate',
value: function componentDidUpdate(prevProps) {
value: function componentDidUpdate(prevProps, prevState) {
// If the value passed has changed, set it. If value is not passed it will
// internally update, and this will never run
if (!_utils2.default.isSame(this.props.value, prevProps.value)) {
//this.setValue(this.props.value);
console.log(1, this.props.value, prevProps.value, prevState.value);
}
if (!_utils2.default.isSame(this.props.value, prevProps.value) && !_utils2.default.isSame(this.props.value, prevState.value)) {
this.setValue(this.props.value);
console.log(2, this.props.value, prevProps.value, prevState.value);
}

@@ -222,0 +230,0 @@

{
"name": "@levshitsvv/formsy-react",
"version": "2.0.4",
"version": "2.0.5",
"description": "A form input builder and validator for React",

@@ -5,0 +5,0 @@ "keywords": [

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