@openfin/remote-adapter 40.104.5 → 40.104.7
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/remote-adapter.js +6 -4
- package/package.json +2 -2
package/out/remote-adapter.js
CHANGED
|
@@ -4167,7 +4167,9 @@ function requireInteropBroker () {
|
|
|
4167
4167
|
});
|
|
4168
4168
|
channel.afterAction((action, payload, clientIdentity) => {
|
|
4169
4169
|
if (this.logging?.afterAction?.enabled) {
|
|
4170
|
-
|
|
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
|
|
11974
|
-
|
|
11975
|
-
|
|
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.
|
|
3
|
+
"version": "40.104.7",
|
|
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.
|
|
23
|
+
"@openfin/core": "40.104.7"
|
|
24
24
|
}
|
|
25
25
|
}
|