@learning-commons/evaluators 0.3.0 → 0.4.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/dist/index.cjs CHANGED
@@ -492,7 +492,7 @@ var BaseEvaluator = class {
492
492
  const validList = Array.from(validGrades).sort((a, b) => {
493
493
  if (a === "K") return -1;
494
494
  if (b === "K") return 1;
495
- return parseInt(a) - parseInt(b);
495
+ return parseInt(a, 10) - parseInt(b, 10);
496
496
  }).join(", ");
497
497
  throw new ValidationError(
498
498
  `Invalid grade "${grade}". Supported grades for this evaluator: ${validList}`