@openfin/node-adapter 45.100.40 → 45.100.42
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 +3 -14
- package/package.json +2 -2
package/out/node-adapter.js
CHANGED
|
@@ -16113,7 +16113,6 @@ fdc3Channels2_0.createV2Channel = createV2Channel;
|
|
|
16113
16113
|
// Generate an ID to make a session context group with. We will pass that ID to the Broker.
|
|
16114
16114
|
// The broker will then setContext on that session context group later with our Intent Result,
|
|
16115
16115
|
const guid = (0, utils_1.generateId)(); // TODO make this undefined in web
|
|
16116
|
-
let isPromiseSettled = false;
|
|
16117
16116
|
// Adding the intentResolutionResultId to the intentObj. Because fireIntent only accepts a single arg, we have to slap it in here.
|
|
16118
16117
|
const metadata = app ? { target: app, intentResolutionResultId: guid } : { intentResolutionResultId: guid };
|
|
16119
16118
|
const intentObj = intent ? { name: intent, context, metadata } : { ...context, metadata };
|
|
@@ -16129,21 +16128,11 @@ fdc3Channels2_0.createV2Channel = createV2Channel;
|
|
|
16129
16128
|
reject(new Error('getResult is not supported in this environment'));
|
|
16130
16129
|
});
|
|
16131
16130
|
});
|
|
16132
|
-
getResultPromise
|
|
16133
|
-
.then(() => {
|
|
16134
|
-
isPromiseSettled = true;
|
|
16135
|
-
})
|
|
16136
|
-
.catch(() => {
|
|
16137
|
-
isPromiseSettled = true;
|
|
16138
|
-
});
|
|
16139
16131
|
// Set up the getResult call.
|
|
16140
16132
|
const getResult = async () => {
|
|
16141
|
-
// All this mumbo jumbo is needed to make sure that getResult resolves correctly and conforms to the FDC3 spec.
|
|
16142
|
-
if (!isPromiseSettled) {
|
|
16143
|
-
return undefined;
|
|
16144
|
-
}
|
|
16145
16133
|
let intentResult = await getResultPromise;
|
|
16146
|
-
|
|
16134
|
+
// void / no payload, or web path where subscribe resolves undefined (see getResultPromise above)
|
|
16135
|
+
if (intentResult == null) {
|
|
16147
16136
|
return undefined;
|
|
16148
16137
|
}
|
|
16149
16138
|
if (typeof intentResult !== 'object') {
|
|
@@ -18436,7 +18425,7 @@ class NodeEnvironment extends BaseEnvironment_1 {
|
|
|
18436
18425
|
};
|
|
18437
18426
|
}
|
|
18438
18427
|
getAdapterVersionSync() {
|
|
18439
|
-
return "45.100.
|
|
18428
|
+
return "45.100.42";
|
|
18440
18429
|
}
|
|
18441
18430
|
observeBounds(element, onChange) {
|
|
18442
18431
|
throw new Error('Method not implemented.');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfin/node-adapter",
|
|
3
|
-
"version": "45.100.
|
|
3
|
+
"version": "45.100.42",
|
|
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": "45.100.
|
|
27
|
+
"@openfin/core": "45.100.42",
|
|
28
28
|
"lodash": "^4.17.21",
|
|
29
29
|
"ws": "^7.3.0"
|
|
30
30
|
}
|