@openfin/node-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.
- package/out/node-adapter.js +7 -5
- package/package.json +2 -2
package/out/node-adapter.js
CHANGED
@@ -7102,9 +7102,9 @@ class ChannelBase {
|
|
7102
7102
|
}
|
7103
7103
|
async processAction(topic, payload, senderIdentity) {
|
7104
7104
|
try {
|
7105
|
-
const
|
7106
|
-
|
7107
|
-
|
7105
|
+
const registeredAction = this.subscriptions.get(topic);
|
7106
|
+
const defaultAction = (currentPayload, id) => (this.defaultAction ?? ChannelBase.defaultAction)(topic, currentPayload, id);
|
7107
|
+
const mainAction = registeredAction ?? defaultAction;
|
7108
7108
|
const preActionProcessed = this.preAction ? await this.preAction(topic, payload, senderIdentity) : payload;
|
7109
7109
|
const actionProcessed = await mainAction(preActionProcessed, senderIdentity);
|
7110
7110
|
return this.postAction ? await this.postAction(topic, actionProcessed, senderIdentity) : actionProcessed;
|
@@ -14602,7 +14602,9 @@ class InteropBroker extends base_1$5.Base {
|
|
14602
14602
|
});
|
14603
14603
|
channel.afterAction((action, payload, clientIdentity) => {
|
14604
14604
|
if (this.logging?.afterAction?.enabled) {
|
14605
|
-
|
14605
|
+
// afterAction can result in payload being undefined
|
14606
|
+
const logArgs = payload ? [action, payload, clientIdentity] : [action, clientIdentity];
|
14607
|
+
console.log(...logArgs);
|
14606
14608
|
}
|
14607
14609
|
});
|
14608
14610
|
// Client functions
|
@@ -17790,7 +17792,7 @@ class NodeEnvironment extends BaseEnvironment_1 {
|
|
17790
17792
|
};
|
17791
17793
|
}
|
17792
17794
|
getAdapterVersionSync() {
|
17793
|
-
return "41.100.
|
17795
|
+
return "41.100.119";
|
17794
17796
|
}
|
17795
17797
|
observeBounds(element, onChange) {
|
17796
17798
|
throw new Error('Method not implemented.');
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@openfin/node-adapter",
|
3
|
-
"version": "41.100.
|
3
|
+
"version": "41.100.119",
|
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": "41.100.
|
27
|
+
"@openfin/core": "41.100.119",
|
28
28
|
"lodash": "^4.17.21",
|
29
29
|
"ws": "^7.3.0"
|
30
30
|
}
|