@openfin/core 42.100.59 → 42.100.60
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/out/stub.js +3 -3
- package/package.json +1 -1
package/out/stub.js
CHANGED
@@ -7390,9 +7390,9 @@ class ChannelBase {
|
|
7390
7390
|
}
|
7391
7391
|
async processAction(topic, payload, senderIdentity) {
|
7392
7392
|
try {
|
7393
|
-
const
|
7394
|
-
|
7395
|
-
|
7393
|
+
const registeredAction = this.subscriptions.get(topic);
|
7394
|
+
const defaultAction = (currentPayload, id) => (this.defaultAction ?? ChannelBase.defaultAction)(topic, currentPayload, id);
|
7395
|
+
const mainAction = registeredAction ?? defaultAction;
|
7396
7396
|
const preActionProcessed = this.preAction ? await this.preAction(topic, payload, senderIdentity) : payload;
|
7397
7397
|
const actionProcessed = await mainAction(preActionProcessed, senderIdentity);
|
7398
7398
|
return this.postAction ? await this.postAction(topic, actionProcessed, senderIdentity) : actionProcessed;
|