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

@formily/core

Package Overview
Dependencies
Maintainers
1
Versions
242
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@formily/core - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

8

lib/index.js

@@ -112,3 +112,3 @@ "use strict";

state.initialValue = initialValue;
if (!shared_1.isValid(state.value)) {
if (!shared_1.isValid(state.value) || shared_1.isEmpty(state.value)) {
state.value = initialValue;

@@ -326,3 +326,3 @@ }

(published.display !== false || published.visible === false) &&
published.unmountRemoveValue) {
published.unmountRemoveValue === true) {
if (published.unmounted) {

@@ -457,3 +457,2 @@ if (shared_1.isValid(published.value)) {

dataType: dataType,
unmountRemoveValue: unmountRemoveValue,
useDirty: shared_1.isValid(useDirty) ? useDirty : options.useDirty

@@ -479,2 +478,5 @@ });

}
if (shared_1.isValid(unmountRemoveValue)) {
state.unmountRemoveValue = unmountRemoveValue;
}
if (shared_1.isValid(value)) {

@@ -481,0 +483,0 @@ state.value = value;

{
"name": "@formily/core",
"version": "1.1.3",
"version": "1.1.4",
"license": "MIT",

@@ -22,3 +22,3 @@ "main": "lib",

"devDependencies": {
"typescript": "^3.5.2"
"typescript": "~3.8.0"
},

@@ -29,4 +29,4 @@ "peerDependencies": {

"dependencies": {
"@formily/shared": "^1.1.3",
"@formily/validator": "^1.1.3",
"@formily/shared": "^1.1.4",
"@formily/validator": "^1.1.4",
"immer": "^6.0.3"

@@ -37,3 +37,3 @@ },

},
"gitHead": "a5676b3b826ffc695d41bab2a539c539d8c66a9d"
"gitHead": "aa80fcff3a7cece323f5302486a697dfbe3efc08"
}

@@ -110,3 +110,3 @@ import {

state.initialValue = initialValue
if (!isValid(state.value)) {
if (!isValid(state.value) || isEmpty(state.value)) {
state.value = initialValue

@@ -354,3 +354,3 @@ } else if (

(published.display !== false || published.visible === false) &&
published.unmountRemoveValue
published.unmountRemoveValue === true
) {

@@ -530,3 +530,2 @@ if (published.unmounted) {

dataType,
unmountRemoveValue,
useDirty: isValid(useDirty) ? useDirty : options.useDirty

@@ -554,2 +553,6 @@ })

if (isValid(unmountRemoveValue)) {
state.unmountRemoveValue = unmountRemoveValue
}
if (isValid(value)) {

@@ -556,0 +559,0 @@ // value > formValue > initialValue

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