@hestia-earth/schema-convert 23.7.0 → 24.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 +4 -2
  2. package/package.json +1 -1
package/json.js CHANGED
@@ -175,10 +175,12 @@ var schemaNotFoundError = function (schema) {
175
175
  });
176
176
  };
177
177
  var computeSuggestions = function (_a, key) {
178
- var properties = _a.properties;
178
+ var title = _a.title, properties = _a.properties;
179
179
  var internal = internalProperties({ properties: properties });
180
180
  var allKeys = Object.keys(properties).filter(function (k) { return !__spreadArray(__spreadArray([], __read(types_1.excludedDefaultProperties), false), __read(internal), false).includes(k); });
181
- return allKeys.filter(function (v) { return levenshtein.get(v, key) <= 3; });
181
+ return [title === schema_1.SchemaType.Term].every(Boolean)
182
+ ? ['@id', 'name']
183
+ : allKeys.filter(function (v) { return levenshtein.get(v, key) <= 3; });
182
184
  };
183
185
  var propertyNotFoundError = function (schema, key, value) {
184
186
  return (0, exports.throwCSVError)({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hestia-earth/schema-convert",
3
- "version": "23.7.0",
3
+ "version": "24.0.0",
4
4
  "description": "Hestia Schema Converters",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",