@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.
- package/dist/v1/utils.d.ts +1 -1
- package/dist/v1/utils.js +1 -1
- package/package.json +1 -1
package/dist/v1/utils.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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