@openfin/node-adapter 40.103.4 → 40.103.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -15045,7 +15045,13 @@ PrivateChannelClient$1.PrivateChannelClient = PrivateChannelClient;
15045
15045
  const getResultPromise = new Promise((resolve, reject) => {
15046
15046
  fin.InterApplicationBus.subscribe({ uuid: '*' }, guid, (intentResult) => {
15047
15047
  resolve(intentResult);
15048
- }).catch(() => reject(new Error('getResult is not supported in this environment')));
15048
+ }).catch(() => {
15049
+ // not supported in web, suppress the error
15050
+ if (interopModule.wire.environment.type === 'other') {
15051
+ resolve(undefined);
15052
+ }
15053
+ reject(new Error('getResult is not supported in this environment'));
15054
+ });
15049
15055
  });
15050
15056
  // Adding the intentResolutionResultId to the intentObj. Because fireIntent only accepts a single arg, we have to slap it in here.
15051
15057
  const metadata = app ? { target: app, intentResolutionResultId: guid } : { intentResolutionResultId: guid };
@@ -17801,7 +17807,7 @@ class NodeEnvironment extends BaseEnvironment_1 {
17801
17807
  };
17802
17808
  }
17803
17809
  getAdapterVersionSync() {
17804
- return "40.103.4";
17810
+ return "40.103.7";
17805
17811
  }
17806
17812
  observeBounds(element, onChange) {
17807
17813
  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.103.4",
3
+ "version": "40.103.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.103.4",
27
+ "@openfin/core": "40.103.7",
28
28
  "lodash": "^4.17.21",
29
29
  "ws": "^7.3.0"
30
30
  }