@camunda8/orchestration-cluster-api 10.0.0-alpha.21 → 10.0.0-alpha.22
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/CHANGELOG.md +7 -0
- package/dist/{chunk-7SBI6PGB.js → chunk-5ZOC3HTJ.js} +11 -2
- package/dist/{chunk-7SBI6PGB.js.map → chunk-5ZOC3HTJ.js.map} +1 -1
- package/dist/fp/index.cjs +10 -1
- package/dist/fp/index.cjs.map +1 -1
- package/dist/fp/index.js +1 -1
- package/dist/index.cjs +10 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/fp/index.cjs
CHANGED
|
@@ -12967,7 +12967,7 @@ function createLogger(opts = {}) {
|
|
|
12967
12967
|
}
|
|
12968
12968
|
|
|
12969
12969
|
// src/runtime/version.ts
|
|
12970
|
-
var packageVersion = "10.0.0-alpha.
|
|
12970
|
+
var packageVersion = "10.0.0-alpha.22";
|
|
12971
12971
|
|
|
12972
12972
|
// src/runtime/supportLogger.ts
|
|
12973
12973
|
var NoopSupportLogger = class {
|
|
@@ -15132,6 +15132,15 @@ function evaluateSdkResponse(raw, opts) {
|
|
|
15132
15132
|
if (!raw || typeof raw !== "object") return raw;
|
|
15133
15133
|
const status = raw.status || raw.response?.status || raw.error?.status;
|
|
15134
15134
|
if (!status) {
|
|
15135
|
+
if (raw.error !== void 0 && raw.data === void 0) {
|
|
15136
|
+
const e = raw.error;
|
|
15137
|
+
if (e instanceof Error) throw e;
|
|
15138
|
+
const err = new Error(String(e?.message ?? e ?? `transport error [${opts.opId}]`));
|
|
15139
|
+
err.name = "TransportSdkError";
|
|
15140
|
+
err.operationId = opts.opId;
|
|
15141
|
+
err.cause = e;
|
|
15142
|
+
throw err;
|
|
15143
|
+
}
|
|
15135
15144
|
return raw.data !== void 0 ? raw.data : raw;
|
|
15136
15145
|
}
|
|
15137
15146
|
const isCandidate = status === 429 || status === 503 || status === 500;
|