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

sz-mx-cabin

Package Overview
Dependencies
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sz-mx-cabin - npm Package Compare versions

Comparing version 0.0.9-beta1 to 0.0.9-beta2

26

es/widgets/form/Form.js

@@ -74,9 +74,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

formInstance.setFieldsValue(_extends({}, data[name]));
var newdata = data.map(function (item) {
if (item._isAMomentObject()) {
return item.format('YYYY-MM-DD');
var newdata = {};
for (var key in data) {
if (data[key]._isAMomentObject()) {
newdata[key] = data[key].format('YYYY-MM-DD');
} else {
return item;
newdata[key] = data[key];
}
});
}
sessionStorage.setItem('data', JSON.stringify(newdata));

@@ -88,9 +91,12 @@ }, [data]);

var values = formInstance.getFieldsValue();
var newdata = values.map(function (item) {
if (item._isAMomentObject()) {
return item.format('YYYY-MM-DD');
var newdata = {};
for (var key in values) {
if (values[key]._isAMomentObject()) {
newdata[key] = values[key].format('YYYY-MM-DD');
} else {
return item;
newdata[key] = values[key];
}
});
}
var newData = {};

@@ -97,0 +103,0 @@

@@ -90,9 +90,12 @@ "use strict";

formInstance.setFieldsValue(_extends({}, data[name]));
var newdata = data.map(function (item) {
if (item._isAMomentObject()) {
return item.format('YYYY-MM-DD');
var newdata = {};
for (var key in data) {
if (data[key]._isAMomentObject()) {
newdata[key] = data[key].format('YYYY-MM-DD');
} else {
return item;
newdata[key] = data[key];
}
});
}
sessionStorage.setItem('data', JSON.stringify(newdata));

@@ -104,9 +107,12 @@ }, [data]);

var values = formInstance.getFieldsValue();
var newdata = values.map(function (item) {
if (item._isAMomentObject()) {
return item.format('YYYY-MM-DD');
var newdata = {};
for (var key in values) {
if (values[key]._isAMomentObject()) {
newdata[key] = values[key].format('YYYY-MM-DD');
} else {
return item;
newdata[key] = values[key];
}
});
}
var newData = {};

@@ -113,0 +119,0 @@

{
"name": "sz-mx-cabin",
"version": "0.0.9-beta1",
"version": "0.0.9-beta2",
"description": "reactCabin",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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