@hestia-earth/schema-convert 22.4.0 → 23.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/json.js +1 -1
  2. package/package.json +1 -1
package/json.js CHANGED
@@ -203,7 +203,7 @@ var propertyInvalidFormat = function (schema, key, value, func) {
203
203
  }
204
204
  };
205
205
  var validateDuplicatedIdFields = function (schema, key, value) {
206
- return typeof value === 'object' && 'id' in value && '@id' in value
206
+ return typeof value === 'object' && [value.id, value['@id']].every(function (v) { return !!v && nonEmptyCell(v); })
207
207
  ? (0, exports.throwCSVError)({
208
208
  schema: schema.title,
209
209
  message: 'duplicated-id-fields',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hestia-earth/schema-convert",
3
- "version": "22.4.0",
3
+ "version": "23.0.0",
4
4
  "description": "Hestia Schema Converters",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",