@vzn/vx 0.0.535 → 0.0.536

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vzn/vx",
3
- "version": "0.0.535",
3
+ "version": "0.0.536",
4
4
  "description": "The fastest task runner and build cache for JavaScript monorepos.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -21,10 +21,10 @@
21
21
  "node": ">=18"
22
22
  },
23
23
  "optionalDependencies": {
24
- "@vzn/vx-linux-x64": "0.0.535",
25
- "@vzn/vx-linux-arm64": "0.0.535",
26
- "@vzn/vx-darwin-x64": "0.0.535",
27
- "@vzn/vx-darwin-arm64": "0.0.535"
24
+ "@vzn/vx-linux-x64": "0.0.536",
25
+ "@vzn/vx-linux-arm64": "0.0.536",
26
+ "@vzn/vx-darwin-x64": "0.0.536",
27
+ "@vzn/vx-darwin-arm64": "0.0.536"
28
28
  },
29
29
  "dependencies": {
30
30
  "@anthropic-ai/sandbox-runtime": "^0.0.76"
@@ -277,6 +277,12 @@ export function assertExecuteResult(
277
277
  for (const key of ['exitCode', 'durationMs']) {
278
278
  if (typeof r[key] !== 'number') fail(`${key} is ${typeof r[key]} (expected a number)`)
279
279
  }
280
+ // NaN passed as a number, printed `failed (exit NaN)` and failed the run
281
+ // history's NOT NULL write (X-11).
282
+ if (!Number.isInteger(r['exitCode']) || (r['exitCode'] as number) < 0)
283
+ fail(`exitCode is ${String(r['exitCode'])} (expected a non-negative integer)`)
284
+ if (!Number.isFinite(r['durationMs']) || (r['durationMs'] as number) < 0)
285
+ fail(`durationMs is ${String(r['durationMs'])} (expected a non-negative number)`)
280
286
  for (const key of ['stdout', 'stderr']) {
281
287
  if (typeof r[key] !== 'string') fail(`${key} is ${typeof r[key]} (expected a string)`)
282
288
  }