@hestia-earth/schema-convert 13.0.1 → 14.1.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.
package/csv-pivot.js CHANGED
@@ -68,7 +68,7 @@ var termId = function (term) { return term ? term['@id'] || term.id : undefined;
68
68
  var convertTerm = function (term) { return term ? { methodModel: termId(term) } : {}; };
69
69
  var pivotList = function (values) { return values.reduce(function (prev, _a) {
70
70
  var _b;
71
- var type = _a.type, _t = _a["@type"], term = _a.term, methodModel = _a.methodModel, value = _a.value;
71
+ var _t = _a["@type"], term = _a.term, methodModel = _a.methodModel, value = _a.value;
72
72
  var key = termId(term);
73
73
  var data = utils_1.reduceUndefinedValues(__assign(__assign({}, convertTerm(methodModel)), { value: convertValue(value) }));
74
74
  return __assign(__assign({}, prev), (key && Object.keys(data).length ? (_b = {}, _b[key] = (prev[key] || []).concat([data]), _b) : {}));
package/json.d.ts CHANGED
@@ -14,7 +14,7 @@ interface ICSVHeader {
14
14
  }
15
15
  export interface ICSVError {
16
16
  message: string;
17
- schema?: SchemaType;
17
+ schema?: SchemaType | string;
18
18
  schemaKey?: string;
19
19
  key?: string;
20
20
  property?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hestia-earth/schema-convert",
3
- "version": "13.0.1",
3
+ "version": "14.1.0",
4
4
  "description": "Hestia Schema Converters",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",