@openfin/core 29.73.12 → 29.73.13

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "29.73.12",
3
+ "version": "29.73.13",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./src/mock.js",
6
6
  "types": "./src/mock.d.ts",
@@ -283,7 +283,7 @@ export default class Fdc3Module2 extends Base implements FDC3v2.DesktopAgent {
283
283
  * Returns the Channel object for the current User channel membership
284
284
  * @returns { Promise<FDC3.Channel | null> }
285
285
  */
286
- getCurrentChannel(): Promise<FDC3v1.Channel | null>;
286
+ getCurrentChannel(): Promise<FDC3v2.Channel | null>;
287
287
  /**
288
288
  * Removes the app from any User channel membership.
289
289
  * @returns { Promise<void> }
@@ -443,7 +443,15 @@ class Fdc3Module2 extends base_1.Base {
443
443
  * @returns { Promise<FDC3.Channel | null> }
444
444
  */
445
445
  async getCurrentChannel() {
446
- return this.fdc3Module.getCurrentChannel();
446
+ const currentChannel = await this.fdc3Module.getCurrentChannel();
447
+ if (!currentChannel) {
448
+ return null;
449
+ }
450
+ return {
451
+ ...currentChannel,
452
+ type: 'user',
453
+ broadcast: this.broadcast.bind(this)
454
+ };
447
455
  }
448
456
  /**
449
457
  * Removes the app from any User channel membership.