easemob-websdk 4.3.0-beta → 4.3.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/CHANGELOG.md CHANGED
@@ -4,9 +4,10 @@
4
4
 
5
5
  - Adds contact API
6
6
  - setContactRemark
7
- - getAllContacts
8
- - getContactsWithCursor
7
+ - getAllContacts
8
+ - getContactsWithCursor
9
9
  - Adds chatRoom broadcast
10
+ - Adds token expiration callback
10
11
 
11
12
  # 4.2.1 (SEP 26, 2023)
12
13
 
package/Easemob-chat.d.ts CHANGED
@@ -4324,7 +4324,7 @@ export declare namespace EasemobChat {
4324
4324
  /** The user ID. You can type a specific user ID to add a single user to the blocklist or type an array of user IDs, like ["user1","user2"], to add multiple users. */
4325
4325
  name: UserId | UserId[];
4326
4326
  }
4327
- ): Promise<OperateResult>;
4327
+ ): Promise<AsyncResult<OperateResult>>;
4328
4328
 
4329
4329
  /**
4330
4330
  * @deprecated Use {@link addUsersToBlocklist} instead.
@@ -4335,7 +4335,7 @@ export declare namespace EasemobChat {
4335
4335
  /** The user ID. You can type a specific user ID to add a single user to the blocklist or type an array of user IDs, like ["user1","user2"], to add multiple users. */
4336
4336
  name: UserId | UserId[];
4337
4337
  }
4338
- ): Promise<void>;
4338
+ ): Promise<AsyncResult<OperateResult>>;
4339
4339
 
4340
4340
  /**
4341
4341
  * Adds a contact to the blocklist.
@@ -4350,7 +4350,7 @@ export declare namespace EasemobChat {
4350
4350
  /** The user ID. You can type a specific user ID to add a single user to the blocklist or type an array of user IDs, like ["user1","user2"], to add multiple users. */
4351
4351
  name: UserId | UserId[];
4352
4352
  }
4353
- ): Promise<void>;
4353
+ ): Promise<AsyncResult<OperateResult>>;
4354
4354
 
4355
4355
  /** @deprecated Use {@link removeUserFromBlackList} instead. */
4356
4356
  removeFromBlackList(
@@ -218,7 +218,7 @@ export interface Contact {
218
218
  addUsersToBlocklist(options: {
219
219
  /** The user ID. You can type a specific user ID to add a single user to the blocklist or type an array of user IDs, like ["user1","user2"], to add multiple users. */
220
220
  name: UserId | UserId[];
221
- }): Promise<IndexTypes.OperateResult>;
221
+ }): Promise<AsyncResult<IndexTypes.OperateResult>>;
222
222
 
223
223
  /**
224
224
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easemob-websdk",
3
- "version": "4.3.0-beta",
3
+ "version": "4.3.0",
4
4
  "description": "Easemob chat websdk",
5
5
  "main": "Easemob-chat",
6
6
  "scripts": {