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

rc-form

Package Overview
Dependencies
Maintainers
1
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-form - npm Package Compare versions

Comparing version 0.7.0 to 0.7.1

17

lib/createForm.js

@@ -92,23 +92,8 @@ 'use strict';

var fieldsKeys = Object.keys(fields);
var changedFields = {};
fieldsKeys.forEach(function (s) {
if (!fieldsMeta[s]) {
delete fields[s];
changedFields[s] = undefined;
}
});
if (onFieldsChange) {
Object.keys(fieldsMeta).forEach(function (name) {
var fieldMeta = fieldsMeta[name];
var field = fields[name] || {};
if ('initialValue' in fieldMeta && !('value' in field)) {
changedFields[name] = {
value: fieldMeta.initialValue
};
}
});
if (!(0, _utils.isEmptyObject)(changedFields)) {
onFieldsChange(this.props, changedFields);
}
}
// do not notify store
}

@@ -115,0 +100,0 @@ }, {

2

package.json
{
"name": "rc-form",
"version": "0.7.0",
"version": "0.7.1",
"description": "React High Order Form Component",

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