@openfin/remote-adapter 41.100.117 → 41.100.119

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.
@@ -2046,7 +2046,9 @@ class InteropBroker extends base_1$m.Base {
2046
2046
  });
2047
2047
  channel.afterAction((action, payload, clientIdentity) => {
2048
2048
  if (this.logging?.afterAction?.enabled) {
2049
- console.log(action, payload, clientIdentity);
2049
+ // afterAction can result in payload being undefined
2050
+ const logArgs = payload ? [action, payload, clientIdentity] : [action, clientIdentity];
2051
+ console.log(...logArgs);
2050
2052
  }
2051
2053
  });
2052
2054
  // Client functions
@@ -9847,9 +9849,9 @@ class ChannelBase {
9847
9849
  }
9848
9850
  async processAction(topic, payload, senderIdentity) {
9849
9851
  try {
9850
- const mainAction = this.subscriptions.has(topic)
9851
- ? this.subscriptions.get(topic)
9852
- : (currentPayload, id) => (this.defaultAction ?? ChannelBase.defaultAction)(topic, currentPayload, id);
9852
+ const registeredAction = this.subscriptions.get(topic);
9853
+ const defaultAction = (currentPayload, id) => (this.defaultAction ?? ChannelBase.defaultAction)(topic, currentPayload, id);
9854
+ const mainAction = registeredAction ?? defaultAction;
9853
9855
  const preActionProcessed = this.preAction ? await this.preAction(topic, payload, senderIdentity) : payload;
9854
9856
  const actionProcessed = await mainAction(preActionProcessed, senderIdentity);
9855
9857
  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": "41.100.117",
3
+ "version": "41.100.119",
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": "41.100.117"
23
+ "@openfin/core": "41.100.119"
24
24
  }
25
25
  }