@openfin/node-adapter 37.81.21 → 37.81.24

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.
@@ -14790,6 +14790,14 @@ function requireFdc3Common () {
14790
14790
  throw new Error(errorToThrow);
14791
14791
  }
14792
14792
  }
14793
+ async _getChannels() {
14794
+ const channels = await this.client.getContextGroups();
14795
+ // fdc3 implementation of getSystemChannels returns an array of channels, have to decorate over
14796
+ // this so people know that these APIs are not supported
14797
+ return channels.map((channel) => {
14798
+ return { ...channel, type: 'system', ...(0, utils_1.getUnsupportedChannelApis)() };
14799
+ });
14800
+ }
14793
14801
  /**
14794
14802
  * Returns a Channel object for the specified channel, creating it as an App Channel if it does not exist.
14795
14803
  * @param channelId
@@ -14800,7 +14808,7 @@ function requireFdc3Common () {
14800
14808
  this.wire.sendAction('fdc3-get-or-create-channel').catch((e) => {
14801
14809
  // we do not want to expose this error, just continue if this analytics-only call fails
14802
14810
  });
14803
- const systemChannels = await this.getSystemChannels();
14811
+ const systemChannels = await this._getChannels();
14804
14812
  const userChannel = systemChannels.find((channel) => channel.id === channelId);
14805
14813
  if (userChannel) {
14806
14814
  return { ...userChannel, type: 'system', ...(0, utils_1.getUnsupportedChannelApis)() };
@@ -14824,12 +14832,7 @@ function requireFdc3Common () {
14824
14832
  this.wire.sendAction('fdc3-get-system-channels').catch((e) => {
14825
14833
  // we do not want to expose this error, just continue if this analytics-only call fails
14826
14834
  });
14827
- const channels = await this.client.getContextGroups();
14828
- // fdc3 implementation of getSystemChannels returns on array of channels, have to decorate over
14829
- // this so people know that these APIs are not supported
14830
- return channels.map((channel) => {
14831
- return { ...channel, type: 'system', ...(0, utils_1.getUnsupportedChannelApis)() };
14832
- });
14835
+ return this._getChannels();
14833
14836
  }
14834
14837
  /**
14835
14838
  * Join all Interop Clients at the given identity to context group `contextGroupId`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/node-adapter",
3
- "version": "37.81.21",
3
+ "version": "37.81.24",
4
4
  "description": "See README.md",
5
5
  "main": "out/node-adapter.js",
6
6
  "types": "out/node-adapter.d.ts",