@cadenza.io/service 2.17.34 → 2.17.35
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.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4135,7 +4135,7 @@ var RestController = class _RestController {
|
|
|
4135
4135
|
method: "POST",
|
|
4136
4136
|
body: JSON.stringify(delegateCtx)
|
|
4137
4137
|
},
|
|
4138
|
-
|
|
4138
|
+
this.resolveDelegationTimeoutMs(delegateCtx)
|
|
4139
4139
|
);
|
|
4140
4140
|
if (resultContext?.errored || resultContext?.failed) {
|
|
4141
4141
|
fetchDiagnostics.delegationFailures++;
|
|
@@ -4389,6 +4389,12 @@ var RestController = class _RestController {
|
|
|
4389
4389
|
return String(error);
|
|
4390
4390
|
}
|
|
4391
4391
|
}
|
|
4392
|
+
resolveDelegationTimeoutMs(ctx) {
|
|
4393
|
+
const syncing = ctx?.__syncing === true || ctx?.__metadata?.__syncing === true || Array.isArray(ctx?.joinedContexts) && ctx.joinedContexts.some(
|
|
4394
|
+
(joinedCtx) => joinedCtx?.__syncing === true || joinedCtx?.__metadata?.__syncing === true
|
|
4395
|
+
);
|
|
4396
|
+
return syncing ? 12e4 : 3e4;
|
|
4397
|
+
}
|
|
4392
4398
|
recordFetchClientError(fetchId, serviceName, url, error) {
|
|
4393
4399
|
const state = this.ensureFetchClientDiagnostics(fetchId, serviceName, url);
|
|
4394
4400
|
const message = this.getErrorMessage(error);
|