@openframe-org/criteria-set-protocol 2.2.17 → 2.2.18

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.
@@ -48,5 +48,5 @@ export declare const applyReportTitleTextFormatFormattingPlaceholders: ApplyRepo
48
48
  /**
49
49
  * Given a list of certification definitions, return the ones for which the given value is valid
50
50
  */
51
- export declare const getCertificationsByValue: (certificationDefinitions?: CertificationDefinition[], value?: TaskItemValue) => CertificationDefinition[] | undefined;
51
+ export declare const getCertificationsByValue: (certificationDefinitions: CertificationDefinition[], value?: TaskItemValue) => CertificationDefinition[] | undefined;
52
52
  export {};
package/dist/v1/utils.js CHANGED
@@ -77,7 +77,7 @@ const getCertificationsByValue = (certificationDefinitions, value) => {
77
77
  if (typeof value !== "number") {
78
78
  return undefined;
79
79
  }
80
- return certificationDefinitions === null || certificationDefinitions === void 0 ? void 0 : certificationDefinitions.filter((definition) => {
80
+ return certificationDefinitions.filter((definition) => {
81
81
  return ((definition.rules.minimum === undefined ||
82
82
  value > definition.rules.minimum) &&
83
83
  (definition.rules.exclusiveMinimum === undefined ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openframe-org/criteria-set-protocol",
3
- "version": "2.2.17",
3
+ "version": "2.2.18",
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>",