sim 2.1.22-preview.145.1 → 2.1.22-preview.146.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.
- package/dist/index.js +4 -1
- 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 =
|
|
20710
|
+
const paused = toRecordOrNull(run.paused);
|
|
20708
20711
|
return {
|
|
20709
20712
|
status: run.status,
|
|
20710
20713
|
pauseKind: paused ? optionalString(paused.pauseKind) : null,
|