@openfin/remote-adapter 45.100.40 → 45.100.41
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 +2 -13
- package/package.json +2 -2
package/out/remote-adapter.js
CHANGED
|
@@ -16613,7 +16613,6 @@ fdc3Channels2_0.createV2Channel = createV2Channel;
|
|
|
16613
16613
|
// Generate an ID to make a session context group with. We will pass that ID to the Broker.
|
|
16614
16614
|
// The broker will then setContext on that session context group later with our Intent Result,
|
|
16615
16615
|
const guid = (0, utils_1.generateId)(); // TODO make this undefined in web
|
|
16616
|
-
let isPromiseSettled = false;
|
|
16617
16616
|
// Adding the intentResolutionResultId to the intentObj. Because fireIntent only accepts a single arg, we have to slap it in here.
|
|
16618
16617
|
const metadata = app ? { target: app, intentResolutionResultId: guid } : { intentResolutionResultId: guid };
|
|
16619
16618
|
const intentObj = intent ? { name: intent, context, metadata } : { ...context, metadata };
|
|
@@ -16629,21 +16628,11 @@ fdc3Channels2_0.createV2Channel = createV2Channel;
|
|
|
16629
16628
|
reject(new Error('getResult is not supported in this environment'));
|
|
16630
16629
|
});
|
|
16631
16630
|
});
|
|
16632
|
-
getResultPromise
|
|
16633
|
-
.then(() => {
|
|
16634
|
-
isPromiseSettled = true;
|
|
16635
|
-
})
|
|
16636
|
-
.catch(() => {
|
|
16637
|
-
isPromiseSettled = true;
|
|
16638
|
-
});
|
|
16639
16631
|
// Set up the getResult call.
|
|
16640
16632
|
const getResult = async () => {
|
|
16641
|
-
// All this mumbo jumbo is needed to make sure that getResult resolves correctly and conforms to the FDC3 spec.
|
|
16642
|
-
if (!isPromiseSettled) {
|
|
16643
|
-
return undefined;
|
|
16644
|
-
}
|
|
16645
16633
|
let intentResult = await getResultPromise;
|
|
16646
|
-
|
|
16634
|
+
// void / no payload, or web path where subscribe resolves undefined (see getResultPromise above)
|
|
16635
|
+
if (intentResult == null) {
|
|
16647
16636
|
return undefined;
|
|
16648
16637
|
}
|
|
16649
16638
|
if (typeof intentResult !== 'object') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfin/remote-adapter",
|
|
3
|
-
"version": "45.100.
|
|
3
|
+
"version": "45.100.41",
|
|
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": "45.100.
|
|
23
|
+
"@openfin/core": "45.100.41"
|
|
24
24
|
}
|
|
25
25
|
}
|