nox-validation 1.2.6 → 1.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/validate.js +1 -1
  2. package/package.json +1 -1
package/lib/validate.js CHANGED
@@ -819,7 +819,7 @@ const validate = (data) => {
819
819
  const error_messages =
820
820
  constants.LOCALE_MESSAGES[language] ?? constants.LOCALE_MESSAGES[constants.LANGUAGES.en];
821
821
 
822
- let result = { status: true, errors: {}, data: formData };
822
+ let result = { status: true, errors: {}, data: structuredClone(formData) };
823
823
 
824
824
  const updateValue = (key, value) => {
825
825
  setValue(result.data, key, value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nox-validation",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "validate dynamic schema",
5
5
  "main": "index.js",
6
6
  "scripts": {