@rayondigital/nest-dapr 0.9.56 → 0.9.58
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.
|
@@ -72,8 +72,8 @@ class ActorProxyBuilder {
|
|
|
72
72
|
throw new Error('Actor id must be provided');
|
|
73
73
|
}
|
|
74
74
|
const originalBody = args.length > 0 ? args : null;
|
|
75
|
-
const body = yield this.prepareBody(this.daprContextService, args, originalBody);
|
|
76
75
|
const correlationId = this.daprContextService.getCorrelationId(true);
|
|
76
|
+
const body = yield this.prepareBody(this.daprContextService, args, originalBody);
|
|
77
77
|
return yield this.actorClient.actor.invoke(actorTypeClassName, actorId, methodName, body, correlationId);
|
|
78
78
|
});
|
|
79
79
|
}
|
|
@@ -77,7 +77,8 @@ let NestActorManager = NestActorManager_1 = class NestActorManager {
|
|
|
77
77
|
method: 'POST',
|
|
78
78
|
body,
|
|
79
79
|
headers: {
|
|
80
|
-
'Dapr-Reentrancy-Id': reentrancyId,
|
|
80
|
+
'Dapr-Reentrancy-Id': reentrancyId !== null && reentrancyId !== void 0 ? reentrancyId : (0, crypto_1.randomUUID)(),
|
|
81
|
+
'X-Correlation-ID': reentrancyId,
|
|
81
82
|
},
|
|
82
83
|
});
|
|
83
84
|
return result;
|
|
@@ -39,8 +39,9 @@ let DaprContextService = class DaprContextService {
|
|
|
39
39
|
if (byKey)
|
|
40
40
|
return byKey;
|
|
41
41
|
const context = this.get();
|
|
42
|
-
if (context)
|
|
42
|
+
if (context && context[exports.DAPR_CORRELATION_ID_KEY]) {
|
|
43
43
|
return context[exports.DAPR_CORRELATION_ID_KEY];
|
|
44
|
+
}
|
|
44
45
|
if (createIfNotDefined)
|
|
45
46
|
return this.setCorrelationIdIfNotDefined();
|
|
46
47
|
return undefined;
|
package/package.json
CHANGED