@camunda8/orchestration-cluster-api 10.0.0-alpha.21 → 10.0.0-alpha.23

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/fp/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  isRight,
8
8
  retryTE,
9
9
  withTimeoutTE
10
- } from "../chunk-7SBI6PGB.js";
10
+ } from "../chunk-JF3QWFWZ.js";
11
11
  import "../chunk-KQ4UL2WX.js";
12
12
  import "../chunk-DGUM43GV.js";
13
13
  export {
package/dist/index.cjs CHANGED
@@ -13060,7 +13060,7 @@ function createLogger(opts = {}) {
13060
13060
  }
13061
13061
 
13062
13062
  // src/runtime/version.ts
13063
- var packageVersion = "10.0.0-alpha.21";
13063
+ var packageVersion = "10.0.0-alpha.23";
13064
13064
 
13065
13065
  // src/runtime/supportLogger.ts
13066
13066
  var NoopSupportLogger = class {
@@ -15225,6 +15225,15 @@ function evaluateSdkResponse(raw, opts) {
15225
15225
  if (!raw || typeof raw !== "object") return raw;
15226
15226
  const status = raw.status || raw.response?.status || raw.error?.status;
15227
15227
  if (!status) {
15228
+ if (raw.error !== void 0 && raw.data === void 0) {
15229
+ const e = raw.error;
15230
+ if (e instanceof Error) throw e;
15231
+ const err = new Error(String(e?.message ?? e ?? `transport error [${opts.opId}]`));
15232
+ err.name = "TransportSdkError";
15233
+ err.operationId = opts.opId;
15234
+ err.cause = e;
15235
+ throw err;
15236
+ }
15228
15237
  return raw.data !== void 0 ? raw.data : raw;
15229
15238
  }
15230
15239
  const isCandidate = status === 429 || status === 503 || status === 500;