@shopify/react-form-state
Advanced tools
Comparing version 0.10.1 to 0.10.2
@@ -191,3 +191,5 @@ "use strict"; | ||
var field = fields[fieldPath]; | ||
var newValue = typeof value === 'function' ? value(field.value) : value; | ||
var newValue = typeof value === 'function' | ||
? value(field.value) | ||
: value; | ||
var dirty = !utilities_1.isEqual(newValue, field.initialValue); | ||
@@ -194,0 +196,0 @@ var updatedField = _this.getUpdatedField({ |
{ | ||
"name": "@shopify/react-form-state", | ||
"version": "0.10.1", | ||
"version": "0.10.2", | ||
"license": "MIT", | ||
@@ -33,8 +33,8 @@ "description": "Manage react forms tersely and type-safe with no magic.", | ||
"devDependencies": { | ||
"@shopify/enzyme-utilities": "^2.0.1", | ||
"@shopify/enzyme-utilities": "^2.0.2", | ||
"@types/enzyme": "^3.1.10", | ||
"faker": "^4.1.0", | ||
"typescript": "~3.0.1" | ||
"typescript": "~3.1.6" | ||
}, | ||
"sideEffects": false | ||
} |
@@ -278,3 +278,6 @@ /* eslint-disable no-case-declarations */ | ||
const newValue = typeof value === 'function' ? value(field.value) : value; | ||
const newValue = | ||
typeof value === 'function' | ||
? (value as ValueMapper<Fields[Key]>)(field.value) | ||
: value; | ||
@@ -281,0 +284,0 @@ const dirty = !isEqual(newValue, field.initialValue); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
191176
4204