@openfin/node-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/node-adapter.js +7 -5
- package/package.json +2 -2
package/out/node-adapter.js
CHANGED
|
@@ -7096,9 +7096,9 @@ class ChannelBase {
|
|
|
7096
7096
|
}
|
|
7097
7097
|
async processAction(topic, payload, senderIdentity) {
|
|
7098
7098
|
try {
|
|
7099
|
-
const
|
|
7100
|
-
|
|
7101
|
-
|
|
7099
|
+
const registeredAction = this.subscriptions.get(topic);
|
|
7100
|
+
const defaultAction = (currentPayload, id) => (this.defaultAction ?? ChannelBase.defaultAction)(topic, currentPayload, id);
|
|
7101
|
+
const mainAction = registeredAction ?? defaultAction;
|
|
7102
7102
|
const preActionProcessed = this.preAction ? await this.preAction(topic, payload, senderIdentity) : payload;
|
|
7103
7103
|
const actionProcessed = await mainAction(preActionProcessed, senderIdentity);
|
|
7104
7104
|
return this.postAction ? await this.postAction(topic, actionProcessed, senderIdentity) : actionProcessed;
|
|
@@ -14614,7 +14614,9 @@ function requireInteropBroker () {
|
|
|
14614
14614
|
});
|
|
14615
14615
|
channel.afterAction((action, payload, clientIdentity) => {
|
|
14616
14616
|
if (this.logging?.afterAction?.enabled) {
|
|
14617
|
-
|
|
14617
|
+
// afterAction can result in payload being undefined
|
|
14618
|
+
const logArgs = payload ? [action, payload, clientIdentity] : [action, clientIdentity];
|
|
14619
|
+
console.log(...logArgs);
|
|
14618
14620
|
}
|
|
14619
14621
|
});
|
|
14620
14622
|
// Client functions
|
|
@@ -17840,7 +17842,7 @@ class NodeEnvironment extends BaseEnvironment_1 {
|
|
|
17840
17842
|
};
|
|
17841
17843
|
}
|
|
17842
17844
|
getAdapterVersionSync() {
|
|
17843
|
-
return "40.104.
|
|
17845
|
+
return "40.104.7";
|
|
17844
17846
|
}
|
|
17845
17847
|
observeBounds(element, onChange) {
|
|
17846
17848
|
throw new Error('Method not implemented.');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfin/node-adapter",
|
|
3
|
-
"version": "40.104.
|
|
3
|
+
"version": "40.104.7",
|
|
4
4
|
"description": "See README.md",
|
|
5
5
|
"main": "out/node-adapter.js",
|
|
6
6
|
"types": "out/node-adapter.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"author": "OpenFin",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@types/node": "^20.14.2",
|
|
27
|
-
"@openfin/core": "40.104.
|
|
27
|
+
"@openfin/core": "40.104.7",
|
|
28
28
|
"lodash": "^4.17.21",
|
|
29
29
|
"ws": "^7.3.0"
|
|
30
30
|
}
|