dshmarket 1.31.0 → 1.31.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/client/client.js CHANGED
@@ -5769,7 +5769,12 @@ window.__ModuleLoader__.load({ id: "dshmarket", factory: (require) => {
5769
5769
  const text = (v) => typeof v === "string" ? v : v && typeof v.text === "string" ? v.text : v == null ? "" : JSON.stringify(v);
5770
5770
  const orphans = Array.isArray(body.orphanBundles) ? body.orphanBundles.map(String) : [];
5771
5771
  const failure = text(body.error) || humanOutput([text(body.stderr), text(body.stdout)].filter(Boolean).join("\n")) || "exit " + body.exitCode;
5772
- const detail = orphans.length > 0 ? `${t("orphanBundle")} ${orphans.join(", ")}\n${failure}` : failure;
5772
+ const staleEntry = typeof body.staleEntry === "string" ? body.staleEntry : null;
5773
+ const detail = [
5774
+ orphans.length > 0 ? `${t("orphanBundle")} ${orphans.join(", ")}` : null,
5775
+ staleEntry,
5776
+ failure
5777
+ ].filter(Boolean).join("\n");
5773
5778
  setRecords((list) => patch(list, recordId, {
5774
5779
  state: "failed",
5775
5780
  reason: detail.trim().slice(-600),
@@ -5989,7 +5994,12 @@ window.__ModuleLoader__.load({ id: "dshmarket", factory: (require) => {
5989
5994
  const text = (v) => typeof v === "string" ? v : v && typeof v.text === "string" ? v.text : v == null ? "" : JSON.stringify(v);
5990
5995
  const orphans = Array.isArray(body.orphanBundles) ? body.orphanBundles.map(String) : [];
5991
5996
  const failure = text(body.error) || humanOutput([text(body.stderr), text(body.stdout)].filter(Boolean).join("\n")) || "exit " + body.exitCode;
5992
- const detail = orphans.length > 0 ? `${t("orphanBundle")} ${orphans.join(", ")}\n${failure}` : failure;
5997
+ const staleEntry = typeof body.staleEntry === "string" ? body.staleEntry : null;
5998
+ const detail = [
5999
+ orphans.length > 0 ? `${t("orphanBundle")} ${orphans.join(", ")}` : null,
6000
+ staleEntry,
6001
+ failure
6002
+ ].filter(Boolean).join("\n");
5993
6003
  setRecords((list) => patch(list, updateRecordId, {
5994
6004
  state: "failed",
5995
6005
  reason: detail.trim().slice(-600)