@openfin/remote-adapter 40.104.5 → 40.104.6

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.
@@ -4167,7 +4167,9 @@ function requireInteropBroker () {
4167
4167
  });
4168
4168
  channel.afterAction((action, payload, clientIdentity) => {
4169
4169
  if (this.logging?.afterAction?.enabled) {
4170
- console.log(action, payload, clientIdentity);
4170
+ // afterAction can result in payload being undefined
4171
+ const logArgs = payload ? [action, payload, clientIdentity] : [action, clientIdentity];
4172
+ console.log(...logArgs);
4171
4173
  }
4172
4174
  });
4173
4175
  // Client functions
@@ -11970,9 +11972,9 @@ class ChannelBase {
11970
11972
  }
11971
11973
  async processAction(topic, payload, senderIdentity) {
11972
11974
  try {
11973
- const mainAction = this.subscriptions.has(topic)
11974
- ? this.subscriptions.get(topic)
11975
- : (currentPayload, id) => (this.defaultAction ?? ChannelBase.defaultAction)(topic, currentPayload, id);
11975
+ const registeredAction = this.subscriptions.get(topic);
11976
+ const defaultAction = (currentPayload, id) => (this.defaultAction ?? ChannelBase.defaultAction)(topic, currentPayload, id);
11977
+ const mainAction = registeredAction ?? defaultAction;
11976
11978
  const preActionProcessed = this.preAction ? await this.preAction(topic, payload, senderIdentity) : payload;
11977
11979
  const actionProcessed = await mainAction(preActionProcessed, senderIdentity);
11978
11980
  return this.postAction ? await this.postAction(topic, actionProcessed, senderIdentity) : actionProcessed;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/remote-adapter",
3
- "version": "40.104.5",
3
+ "version": "40.104.6",
4
4
  "description": "Establish intermachine runtime connections using webRTC.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "private": false,
@@ -20,6 +20,6 @@
20
20
  "author": "OpenFin",
21
21
  "dependencies": {
22
22
  "lodash": "^4.17.21",
23
- "@openfin/core": "40.104.5"
23
+ "@openfin/core": "40.104.6"
24
24
  }
25
25
  }