@hestia-earth/schema-validation 31.4.0 → 32.0.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/package.json +1 -1
  2. package/validate.js +1 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hestia-earth/schema-validation",
3
- "version": "31.4.0",
3
+ "version": "32.0.0",
4
4
  "description": "HESTIA Schema Validation",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",
package/validate.js CHANGED
@@ -78,9 +78,7 @@ var schemaData = function (_a) {
78
78
  };
79
79
  // using `verbose: true` includes data which we don't need
80
80
  var cleanErrors = function (errors) {
81
- return errors
82
- .filter(function (error) { return !['if'].includes(error.keyword); })
83
- .map(function (_a) {
81
+ return errors.map(function (_a) {
84
82
  var data = _a.data, schema = _a.schema, parentSchema = _a.parentSchema, error = __rest(_a, ["data", "schema", "parentSchema"]);
85
83
  return (__assign(__assign(__assign({}, error), (schema ? { schema: schemaData(schema) } : {})), (error.message === 'should NOT be valid' ? { schema: schema } : {})));
86
84
  });