@hestia-earth/schema-convert 30.2.0 → 30.2.1

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
@@ -579,7 +579,7 @@ var convetToNode = function (schemas, params) { return function (data) {
579
579
  return Object.keys(data)
580
580
  .filter(utils_1.nonEmptyValue)
581
581
  .map(function (type) {
582
- return (0, exports.formatNode)(schemas, (0, schema_1.typeToSchemaType)(type), data[type], __assign(__assign({}, params), { existingNode: '@id' in data[type] }));
582
+ return (0, exports.formatNode)(schemas, (0, schema_1.typeToSchemaType)(type) || type, data[type], __assign(__assign({}, params), { existingNode: typeof data[type] === 'object' ? '@id' in data[type] : false }));
583
583
  })
584
584
  .filter(function (node) { return (0, exports.filterEmptyNode)(schemas, node); });
585
585
  }; };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hestia-earth/schema-convert",
3
- "version": "30.2.0",
3
+ "version": "30.2.1",
4
4
  "description": "HESTIA Schema Converters",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",