@openfin/core 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/stub.js +2 -13
- package/package.json +1 -1
package/out/stub.js
CHANGED
|
@@ -16404,7 +16404,6 @@ fdc3Channels2_0.createV2Channel = createV2Channel;
|
|
|
16404
16404
|
// Generate an ID to make a session context group with. We will pass that ID to the Broker.
|
|
16405
16405
|
// The broker will then setContext on that session context group later with our Intent Result,
|
|
16406
16406
|
const guid = (0, utils_1.generateId)(); // TODO make this undefined in web
|
|
16407
|
-
let isPromiseSettled = false;
|
|
16408
16407
|
// Adding the intentResolutionResultId to the intentObj. Because fireIntent only accepts a single arg, we have to slap it in here.
|
|
16409
16408
|
const metadata = app ? { target: app, intentResolutionResultId: guid } : { intentResolutionResultId: guid };
|
|
16410
16409
|
const intentObj = intent ? { name: intent, context, metadata } : { ...context, metadata };
|
|
@@ -16420,21 +16419,11 @@ fdc3Channels2_0.createV2Channel = createV2Channel;
|
|
|
16420
16419
|
reject(new Error('getResult is not supported in this environment'));
|
|
16421
16420
|
});
|
|
16422
16421
|
});
|
|
16423
|
-
getResultPromise
|
|
16424
|
-
.then(() => {
|
|
16425
|
-
isPromiseSettled = true;
|
|
16426
|
-
})
|
|
16427
|
-
.catch(() => {
|
|
16428
|
-
isPromiseSettled = true;
|
|
16429
|
-
});
|
|
16430
16422
|
// Set up the getResult call.
|
|
16431
16423
|
const getResult = async () => {
|
|
16432
|
-
// All this mumbo jumbo is needed to make sure that getResult resolves correctly and conforms to the FDC3 spec.
|
|
16433
|
-
if (!isPromiseSettled) {
|
|
16434
|
-
return undefined;
|
|
16435
|
-
}
|
|
16436
16424
|
let intentResult = await getResultPromise;
|
|
16437
|
-
|
|
16425
|
+
// void / no payload, or web path where subscribe resolves undefined (see getResultPromise above)
|
|
16426
|
+
if (intentResult == null) {
|
|
16438
16427
|
return undefined;
|
|
16439
16428
|
}
|
|
16440
16429
|
if (typeof intentResult !== 'object') {
|