sim 2.1.22-preview.145.1 → 2.1.22-preview.147.1

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6973,6 +6973,9 @@ function omit(obj, keys) {
6973
6973
  function isRecordLike(value) {
6974
6974
  return typeof value === "object" && value !== null && !Array.isArray(value);
6975
6975
  }
6976
+ function toRecordOrNull(value) {
6977
+ return isRecordLike(value) ? value : null;
6978
+ }
6976
6979
 
6977
6980
  // src/update/install.ts
6978
6981
  var import_proper_lockfile = __toESM(require_proper_lockfile(), 1);
@@ -20704,7 +20707,7 @@ function readRun(raw) {
20704
20707
  if (!isRecordLike(run) || typeof run.status !== "string") {
20705
20708
  throw new SimApiError("Run status response carried no status.", 0);
20706
20709
  }
20707
- const paused = isRecordLike(run.paused) ? run.paused : null;
20710
+ const paused = toRecordOrNull(run.paused);
20708
20711
  return {
20709
20712
  status: run.status,
20710
20713
  pauseKind: paused ? optionalString(paused.pauseKind) : null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sim",
3
- "version": "2.1.22-preview.145.1",
3
+ "version": "2.1.22-preview.147.1",
4
4
  "description": "Sim CLI - talk to the Sim API from your terminal",
5
5
  "type": "module",
6
6
  "imports": {