@openframe-org/criteria-set-protocol 2.7.5 → 2.7.6

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.
@@ -85,5 +85,5 @@ export declare const getCertificationsByValue: (certificationDefinitions: Certif
85
85
  */
86
86
  export declare function validateData(data: TaskItemData | ElementData | TreeResult, dataType: Exclude<CriteriaTreeElementType, "task-group" | "task-item">): data is ElementData;
87
87
  export declare function validateData(data: TaskItemData | ElementData | TreeResult, dataType: Extract<CriteriaTreeElementType, "task-item">): data is TaskItemData;
88
- export declare function validateData(data: TaskItemData | ElementData | TreeResult, dataType: "tree"): data is TreeResult;
88
+ export declare function validateData(data: TaskItemData | ElementData | TreeResult, dataType: "tree-result"): data is TreeResult;
89
89
  export {};
package/dist/v1/utils.js CHANGED
@@ -93,7 +93,7 @@ const getCertificationsByValue = (certificationDefinitions, value) => {
93
93
  };
94
94
  exports.getCertificationsByValue = getCertificationsByValue;
95
95
  function validateData(data, dataType) {
96
- if (!["theme", "criterion", "task", "task-item", "tree"].includes(dataType)) {
96
+ if (!["theme", "criterion", "task", "task-item", "tree-result"].includes(dataType)) {
97
97
  throw new Error(`Invalid element type: '${dataType}'`);
98
98
  }
99
99
  ["value", "text"].forEach((property) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openframe-org/criteria-set-protocol",
3
- "version": "2.7.5",
3
+ "version": "2.7.6",
4
4
  "description": "A protocol and tools for defining and working with criteria sets",
5
5
  "private": false,
6
6
  "author": "Andrés Angulo <aa@openframe.org>",