@openfin/remote-adapter 39.81.14 → 39.81.15

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.
@@ -1300,14 +1300,11 @@ function requireFdc31_2 () {
1300
1300
  this.wire.sendAction('fdc3-get-info').catch((e) => {
1301
1301
  // we do not want to expose this error, just continue if this analytics-only call fails
1302
1302
  });
1303
- // @ts-expect-error
1304
- const { uuid, fdc3InteropApi } = fin.__internal_.initialOptions;
1305
- // @ts-expect-error
1306
- const runtimeVersion = fin.desktop.getVersion();
1303
+ const version = this.wire.environment.getAdapterVersionSync();
1307
1304
  return {
1308
- fdc3Version: fdc3InteropApi,
1309
- provider: `openfin-${uuid}`,
1310
- providerVersion: runtimeVersion
1305
+ providerVersion: version,
1306
+ provider: `openfin-${this.wire.me.uuid}`,
1307
+ fdc3Version: '1.2'
1311
1308
  };
1312
1309
  }
1313
1310
  }
@@ -4270,6 +4267,10 @@ class BrowserEnvironment extends base_env_1.BaseEnvironment {
4270
4267
  return window.crypto.getRandomValues(intArray)[0].toString(32);
4271
4268
  };
4272
4269
  }
4270
+ getAdapterVersionSync() {
4271
+ // Since this is a sync method returning an empty string is safer than throwing.
4272
+ return '';
4273
+ }
4273
4274
  observeBounds(element, onChange) {
4274
4275
  throw new Error('Method not implemented.');
4275
4276
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/remote-adapter",
3
- "version": "39.81.14",
3
+ "version": "39.81.15",
4
4
  "description": "Establish intermachine runtime connections using webRTC.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "private": false,
@@ -19,6 +19,6 @@
19
19
  "author": "OpenFin",
20
20
  "dependencies": {
21
21
  "lodash": "^4.17.21",
22
- "@openfin/core": "39.81.14"
22
+ "@openfin/core": "39.81.15"
23
23
  }
24
24
  }