@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/CHANGELOG.md +44 -0
- package/README.md +15 -0
- package/dist/base-Ced9oKKa.d.cts +331 -0
- package/dist/base-Ced9oKKa.d.ts +331 -0
- package/dist/batch/cli.js +3940 -0
- package/dist/batch/cli.js.map +1 -0
- package/dist/batch/index.cjs +3602 -0
- package/dist/batch/index.cjs.map +1 -0
- package/dist/batch/index.d.cts +145 -0
- package/dist/batch/index.d.ts +145 -0
- package/dist/batch/index.js +3572 -0
- package/dist/batch/index.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -331
- package/dist/index.d.ts +3 -331
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +28 -9
- package/src/batch/README.md +166 -0
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}`
|