nox-validation 1.1.8 → 1.2.0

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 +0 -4
  2. package/package.json +1 -1
package/lib/validate.js CHANGED
@@ -725,10 +725,6 @@ const validate = (data) => {
725
725
  onlyFormFields,
726
726
  } = data;
727
727
 
728
- fields = JSON.parse(JSON.stringify(fields))
729
- relations = JSON.parse(JSON.stringify(relations))
730
- relationalFields = JSON.parse(JSON.stringify(relationalFields))
731
-
732
728
  const error_messages = constants.LOCALE_MESSAGES[language] ?? constants.LOCALE_MESSAGES[constants.LANGUAGES.en];
733
729
 
734
730
  let result = { status: true, errors: {}, data: formData };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nox-validation",
3
- "version": "1.1.8",
3
+ "version": "1.2.0",
4
4
  "description": "validate dynamic schema",
5
5
  "main": "index.js",
6
6
  "scripts": {