@openfin/node-adapter 38.81.49 → 38.81.51

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.
@@ -4650,7 +4650,7 @@ function requireInstance () {
4650
4650
  // don't expose
4651
4651
  });
4652
4652
  const opts = await this.getOptions();
4653
- if (!opts.layout || !opts.layoutSnapshot) {
4653
+ if (!opts.layout && !opts.layoutSnapshot) {
4654
4654
  throw new Error('Window does not have a Layout');
4655
4655
  }
4656
4656
  return this.fin.Platform.Layout.wrap(layoutIdentity ?? this.identity);
@@ -15170,14 +15170,11 @@ function requireFdc31_2 () {
15170
15170
  this.wire.sendAction('fdc3-get-info').catch((e) => {
15171
15171
  // we do not want to expose this error, just continue if this analytics-only call fails
15172
15172
  });
15173
- // @ts-expect-error
15174
- const { uuid, fdc3InteropApi } = fin.__internal_.initialOptions;
15175
- // @ts-expect-error
15176
- const runtimeVersion = fin.desktop.getVersion();
15173
+ const version = this.wire.environment.getAdapterVersionSync();
15177
15174
  return {
15178
- fdc3Version: fdc3InteropApi,
15179
- provider: `openfin-${uuid}`,
15180
- providerVersion: runtimeVersion
15175
+ providerVersion: version,
15176
+ provider: `openfin-${this.wire.me.uuid}`,
15177
+ fdc3Version: '1.2'
15181
15178
  };
15182
15179
  }
15183
15180
  }
@@ -17418,6 +17415,9 @@ class NodeEnvironment extends BaseEnvironment_1 {
17418
17415
  throw new NotImplementedError_1('Not Implemented');
17419
17416
  };
17420
17417
  }
17418
+ getAdapterVersionSync() {
17419
+ return "38.81.51";
17420
+ }
17421
17421
  observeBounds(element, onChange) {
17422
17422
  throw new Error('Method not implemented.');
17423
17423
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/node-adapter",
3
- "version": "38.81.49",
3
+ "version": "38.81.51",
4
4
  "description": "See README.md",
5
5
  "main": "out/node-adapter.js",
6
6
  "types": "out/node-adapter.d.ts",
@@ -23,7 +23,7 @@
23
23
  "author": "OpenFin",
24
24
  "dependencies": {
25
25
  "@types/node": "^16.0.0",
26
- "@openfin/core": "38.81.49",
26
+ "@openfin/core": "38.81.51",
27
27
  "lodash": "^4.17.21",
28
28
  "ws": "^7.3.0"
29
29
  }