@abrar71/lib-jitsi-meet 2130.0.0 → 2131.0.0

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": "@abrar71/lib-jitsi-meet",
3
- "version": "2130.0.0",
3
+ "version": "2131.0.0",
4
4
  "description": "JS library for accessing Jitsi server side deployments",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,6 +25,7 @@
25
25
  "base64-js": "1.5.1",
26
26
  "current-executing-script": "0.1.3",
27
27
  "emoji-regex": "10.4.0",
28
+ "jwt-decode": "4.0.0",
28
29
  "lodash-es": "4.17.21",
29
30
  "sdp-transform": "2.3.0",
30
31
  "strophe.js": "https://github.com/jitsi/strophejs/releases/download/v1.5-jitsi-3/strophe.js-1.5.0.tgz",
package/types/index.d.ts CHANGED
@@ -2534,6 +2534,10 @@ declare module "JitsiConnectionEvents" {
2534
2534
  * The connection is redirected to a visitor node.
2535
2535
  */
2536
2536
  CONNECTION_REDIRECTED = "connection.redirected",
2537
+ /**
2538
+ * The connection is trying to resume, but token is expired.
2539
+ */
2540
+ CONNECTION_TOKEN_EXPIRED = "connection.token_expired",
2537
2541
  /**
2538
2542
  * Indicates that the display name is required over this connection and need to be supplied when
2539
2543
  * joining the room.
@@ -2550,6 +2554,7 @@ declare module "JitsiConnectionEvents" {
2550
2554
  export const CONNECTION_ESTABLISHED = JitsiConnectionEvents.CONNECTION_ESTABLISHED;
2551
2555
  export const CONNECTION_FAILED = JitsiConnectionEvents.CONNECTION_FAILED;
2552
2556
  export const CONNECTION_REDIRECTED = JitsiConnectionEvents.CONNECTION_REDIRECTED;
2557
+ export const CONNECTION_TOKEN_EXPIRED = JitsiConnectionEvents.CONNECTION_TOKEN_EXPIRED;
2553
2558
  export const DISPLAY_NAME_REQUIRED = JitsiConnectionEvents.DISPLAY_NAME_REQUIRED;
2554
2559
  export const PROPERTIES_UPDATED = JitsiConnectionEvents.PROPERTIES_UPDATED;
2555
2560
  }
@@ -6554,32 +6559,30 @@ declare module "modules/xmpp/ResumeTask" {
6554
6559
  */
6555
6560
  get retryDelay(): Optional<number>;
6556
6561
  /**
6557
- * Cancels the delayed resume task.
6562
+ * Removes network online listener for the NETWORK_INFO_EVENT event.
6558
6563
  *
6559
6564
  * @private
6560
6565
  * @returns {void}
6561
6566
  */
6562
- private _cancelResume;
6567
+ private _removeNetworkOnlineListener;
6563
6568
  /**
6564
- * Removes network online listener for the NETWORK_INFO_EVENT event.
6565
- *
6569
+ * Schedules a delayed timeout which will execute the resume action.
6566
6570
  * @private
6567
6571
  * @returns {void}
6568
6572
  */
6569
- private _removeNetworkOnlineListener;
6573
+ private _scheduleResume;
6570
6574
  /**
6571
- * Resumes the XMPP connection using the stream management plugin.
6575
+ * Cancels the delayed resume task.
6572
6576
  *
6573
- * @private
6574
6577
  * @returns {void}
6575
6578
  */
6576
- private _resumeConnection;
6579
+ cancelResume(): void;
6577
6580
  /**
6578
- * Schedules a delayed timeout which will execute the resume action.
6579
- * @private
6581
+ * Resumes the XMPP connection using the stream management plugin.
6582
+ *
6580
6583
  * @returns {void}
6581
6584
  */
6582
- private _scheduleResume;
6585
+ resumeConnection(): void;
6583
6586
  /**
6584
6587
  * Cancels the retry task. It's called by {@link XmppConnection} when it's no longer interested in reconnecting for
6585
6588
  * example when the disconnect method is called.
@@ -8413,7 +8416,7 @@ declare module "JitsiConnection" {
8413
8416
  * This method allows renewal of the tokens if they are expiring.
8414
8417
  * @param token - The new token.
8415
8418
  */
8416
- setToken(token: string): void;
8419
+ refreshToken(token: string): Promise<void>;
8417
8420
  /**
8418
8421
  * Creates and joins new conference.
8419
8422
  * @param name - The name of the conference; if null - a generated name will be
@@ -15203,7 +15206,7 @@ declare module "modules/webaudio/AudioMixer" {
15203
15206
  }
15204
15207
  }
15205
15208
  declare module "version" {
15206
- export const COMMIT_HASH = "31e1d088";
15209
+ export const COMMIT_HASH = "6912eed8";
15207
15210
  }
15208
15211
  declare module "JitsiMeetJS" {
15209
15212
  import JitsiConference, { IConferenceOptions } from "JitsiConference";