@conform-to/dom
Advanced tools
Comparing version 1.2.1 to 1.2.2
12
form.js
@@ -25,3 +25,5 @@ 'use strict'; | ||
validated: (_lastResult$state$val = lastResult === null || lastResult === void 0 || (_lastResult$state = lastResult.state) === null || _lastResult$state === void 0 ? void 0 : _lastResult$state.validated) !== null && _lastResult$state$val !== void 0 ? _lastResult$state$val : {}, | ||
key: getDefaultKey(defaultValue), | ||
key: !initialized ? getDefaultKey(defaultValue) : _rollupPluginBabelHelpers.objectSpread2({ | ||
'': util.generateId() | ||
}, getDefaultKey(defaultValue)), | ||
// The `lastResult` should comes from the server which we won't expect the error to be null | ||
@@ -45,5 +47,3 @@ // We can consider adding a warning if it happens | ||
return result; | ||
}, { | ||
[prefix !== null && prefix !== void 0 ? prefix : '']: util.generateId() | ||
}); | ||
}, {}); | ||
} | ||
@@ -152,3 +152,5 @@ function setFieldsValidated(meta, fields) { | ||
meta.value = value; | ||
meta.key = getDefaultKey(value); | ||
meta.key = _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, getDefaultKey(value)), {}, { | ||
'': util.generateId() | ||
}); | ||
return; | ||
@@ -155,0 +157,0 @@ } |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"main": "index.js", | ||
@@ -9,0 +9,0 @@ "module": "index.mjs", |
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
107563
2861