@openfin/node-adapter 38.81.32 → 38.81.37

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.
@@ -14795,6 +14795,14 @@ function requireFdc3Common () {
14795
14795
  throw new Error(errorToThrow);
14796
14796
  }
14797
14797
  }
14798
+ async _getChannels() {
14799
+ const channels = await this.client.getContextGroups();
14800
+ // fdc3 implementation of getSystemChannels returns an array of channels, have to decorate over
14801
+ // this so people know that these APIs are not supported
14802
+ return channels.map((channel) => {
14803
+ return { ...channel, type: 'system', ...(0, utils_1.getUnsupportedChannelApis)() };
14804
+ });
14805
+ }
14798
14806
  /**
14799
14807
  * Returns a Channel object for the specified channel, creating it as an App Channel if it does not exist.
14800
14808
  * @param channelId
@@ -14805,7 +14813,7 @@ function requireFdc3Common () {
14805
14813
  this.wire.sendAction('fdc3-get-or-create-channel').catch((e) => {
14806
14814
  // we do not want to expose this error, just continue if this analytics-only call fails
14807
14815
  });
14808
- const systemChannels = await this.getSystemChannels();
14816
+ const systemChannels = await this._getChannels();
14809
14817
  const userChannel = systemChannels.find((channel) => channel.id === channelId);
14810
14818
  if (userChannel) {
14811
14819
  return { ...userChannel, type: 'system', ...(0, utils_1.getUnsupportedChannelApis)() };
@@ -14829,12 +14837,7 @@ function requireFdc3Common () {
14829
14837
  this.wire.sendAction('fdc3-get-system-channels').catch((e) => {
14830
14838
  // we do not want to expose this error, just continue if this analytics-only call fails
14831
14839
  });
14832
- const channels = await this.client.getContextGroups();
14833
- // fdc3 implementation of getSystemChannels returns on array of channels, have to decorate over
14834
- // this so people know that these APIs are not supported
14835
- return channels.map((channel) => {
14836
- return { ...channel, type: 'system', ...(0, utils_1.getUnsupportedChannelApis)() };
14837
- });
14840
+ return this._getChannels();
14838
14841
  }
14839
14842
  /**
14840
14843
  * 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": "38.81.32",
3
+ "version": "38.81.37",
4
4
  "description": "See README.md",
5
5
  "main": "out/node-adapter.js",
6
6
  "types": "out/node-adapter.d.ts",