@wix/evalforge-evaluator 0.140.0 → 0.141.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/build/index.js +5 -2
- package/build/index.js.map +2 -2
- package/build/index.mjs +7 -3
- package/build/index.mjs.map +2 -2
- package/package.json +5 -5
package/build/index.js
CHANGED
|
@@ -287,13 +287,16 @@ function resolveSystemAssertion(assertionId, params) {
|
|
|
287
287
|
}
|
|
288
288
|
};
|
|
289
289
|
break;
|
|
290
|
-
case "build_passed":
|
|
290
|
+
case "build_passed": {
|
|
291
|
+
const rawCmd = params?.command;
|
|
292
|
+
const command = typeof rawCmd === "string" && (0, import_evalforge_types.isAllowedBuildCommandString)(rawCmd) ? rawCmd.trim() : void 0;
|
|
291
293
|
baseAssertion = {
|
|
292
294
|
type: "build_passed",
|
|
293
|
-
command
|
|
295
|
+
...command !== void 0 && { command },
|
|
294
296
|
expectedExitCode: params?.expectedExitCode ?? void 0
|
|
295
297
|
};
|
|
296
298
|
break;
|
|
299
|
+
}
|
|
297
300
|
case "time_limit":
|
|
298
301
|
baseAssertion = {
|
|
299
302
|
type: "time_limit",
|