@webex/plugin-meetings 3.8.0-next.40 → 3.8.0-next.42

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.
@@ -458,7 +458,7 @@ var Webinar = _webexCore.WebexPlugin.extend({
458
458
  }, _callee7);
459
459
  }))();
460
460
  },
461
- version: "3.8.0-next.40"
461
+ version: "3.8.0-next.42"
462
462
  });
463
463
  var _default = exports.default = Webinar;
464
464
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -43,13 +43,13 @@
43
43
  "@webex/eslint-config-legacy": "0.0.0",
44
44
  "@webex/jest-config-legacy": "0.0.0",
45
45
  "@webex/legacy-tools": "0.0.0",
46
- "@webex/plugin-meetings": "3.8.0-next.40",
47
- "@webex/plugin-rooms": "3.8.0-next.13",
48
- "@webex/test-helper-chai": "3.8.0-next.11",
49
- "@webex/test-helper-mocha": "3.8.0-next.11",
50
- "@webex/test-helper-mock-webex": "3.8.0-next.11",
51
- "@webex/test-helper-retry": "3.8.0-next.11",
52
- "@webex/test-helper-test-users": "3.8.0-next.11",
46
+ "@webex/plugin-meetings": "3.8.0-next.42",
47
+ "@webex/plugin-rooms": "3.8.0-next.14",
48
+ "@webex/test-helper-chai": "3.8.0-next.12",
49
+ "@webex/test-helper-mocha": "3.8.0-next.12",
50
+ "@webex/test-helper-mock-webex": "3.8.0-next.12",
51
+ "@webex/test-helper-retry": "3.8.0-next.12",
52
+ "@webex/test-helper-test-users": "3.8.0-next.12",
53
53
  "chai": "^4.3.4",
54
54
  "chai-as-promised": "^7.1.1",
55
55
  "eslint": "^8.24.0",
@@ -61,22 +61,22 @@
61
61
  "typescript": "^4.7.4"
62
62
  },
63
63
  "dependencies": {
64
- "@webex/common": "3.8.0-next.11",
64
+ "@webex/common": "3.8.0-next.12",
65
65
  "@webex/event-dictionary-ts": "^1.0.1688",
66
66
  "@webex/internal-media-core": "2.14.7",
67
- "@webex/internal-plugin-conversation": "3.8.0-next.13",
68
- "@webex/internal-plugin-device": "3.8.0-next.11",
69
- "@webex/internal-plugin-llm": "3.8.0-next.14",
70
- "@webex/internal-plugin-mercury": "3.8.0-next.13",
71
- "@webex/internal-plugin-metrics": "3.8.0-next.11",
72
- "@webex/internal-plugin-support": "3.8.0-next.13",
73
- "@webex/internal-plugin-user": "3.8.0-next.11",
74
- "@webex/internal-plugin-voicea": "3.8.0-next.40",
75
- "@webex/media-helpers": "3.8.0-next.12",
76
- "@webex/plugin-people": "3.8.0-next.13",
77
- "@webex/plugin-rooms": "3.8.0-next.13",
67
+ "@webex/internal-plugin-conversation": "3.8.0-next.14",
68
+ "@webex/internal-plugin-device": "3.8.0-next.12",
69
+ "@webex/internal-plugin-llm": "3.8.0-next.15",
70
+ "@webex/internal-plugin-mercury": "3.8.0-next.14",
71
+ "@webex/internal-plugin-metrics": "3.8.0-next.12",
72
+ "@webex/internal-plugin-support": "3.8.0-next.14",
73
+ "@webex/internal-plugin-user": "3.8.0-next.12",
74
+ "@webex/internal-plugin-voicea": "3.8.0-next.42",
75
+ "@webex/media-helpers": "3.8.0-next.13",
76
+ "@webex/plugin-people": "3.8.0-next.14",
77
+ "@webex/plugin-rooms": "3.8.0-next.14",
78
78
  "@webex/web-capabilities": "^1.4.0",
79
- "@webex/webex-core": "3.8.0-next.11",
79
+ "@webex/webex-core": "3.8.0-next.12",
80
80
  "ampersand-collection": "^2.0.2",
81
81
  "bowser": "^2.11.0",
82
82
  "btoa": "^1.2.1",
@@ -92,5 +92,5 @@
92
92
  "//": [
93
93
  "TODO: upgrade jwt-decode when moving to node 18"
94
94
  ],
95
- "version": "3.8.0-next.40"
95
+ "version": "3.8.0-next.42"
96
96
  }
@@ -5856,11 +5856,22 @@ export default class Meeting extends StatelessWebexPlugin {
5856
5856
  this
5857
5857
  );
5858
5858
 
5859
- joinFailed(error);
5859
+ const proxyError = new Proxy(error, {
5860
+ // eslint-disable-next-line require-jsdoc
5861
+ get(target, prop) {
5862
+ if (prop === 'handledBySdk') {
5863
+ return true;
5864
+ }
5865
+
5866
+ return Reflect.get(target, prop);
5867
+ },
5868
+ });
5869
+
5870
+ joinFailed(proxyError);
5860
5871
 
5861
5872
  this.deferJoin = undefined;
5862
5873
 
5863
- return Promise.reject(error);
5874
+ return Promise.reject(proxyError);
5864
5875
  })
5865
5876
  .then((join) => {
5866
5877
  // @ts-ignore - config coming from registerPlugin
@@ -1809,6 +1809,7 @@ describe('plugin-meetings', () => {
1809
1809
  await meeting.join();
1810
1810
  joinSucceeded = true;
1811
1811
  } catch (e) {
1812
+ assert.isTrue(e.handledBySdk)
1812
1813
  assert.instanceOf(e, IntentToJoinError);
1813
1814
  }
1814
1815
  assert.isFalse(joinSucceeded);
@@ -1861,7 +1862,20 @@ describe('plugin-meetings', () => {
1861
1862
  });
1862
1863
  });
1863
1864
  it('should try to join the meeting and return promise reject', async () => {
1864
- await meeting.join().catch(() => {
1865
+ await meeting.join().catch((e) => {
1866
+ assert.isTrue(e.handledBySdk);
1867
+ assert.calledOnce(MeetingUtil.joinMeeting);
1868
+ });
1869
+ });
1870
+
1871
+ it('should try to join the meeting and return deferred promise reject', async () => {
1872
+
1873
+ // call first
1874
+ meeting.join();
1875
+
1876
+ // call 2nd time will get the deferred promise
1877
+ await meeting.join().catch((e) => {
1878
+ assert.isTrue(e.handledBySdk);
1865
1879
  assert.calledOnce(MeetingUtil.joinMeeting);
1866
1880
  });
1867
1881
  });