mezon-js 2.13.16 → 2.13.18
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/client.ts +1 -1
- package/dist/mezon-js.cjs.js +1 -1
- package/dist/mezon-js.esm.mjs +1 -1
- package/dist/socket.d.ts +5 -0
- package/package.json +1 -1
- package/socket.ts +11 -1
package/client.ts
CHANGED
package/dist/mezon-js.cjs.js
CHANGED
package/dist/mezon-js.esm.mjs
CHANGED
package/dist/socket.d.ts
CHANGED
|
@@ -664,6 +664,11 @@ export interface BlockFriend {
|
|
|
664
664
|
}
|
|
665
665
|
export interface UnblockFriend {
|
|
666
666
|
user_id: string;
|
|
667
|
+
username: string;
|
|
668
|
+
avatar: string;
|
|
669
|
+
display_name: string;
|
|
670
|
+
status: string;
|
|
671
|
+
user_status: string;
|
|
667
672
|
}
|
|
668
673
|
export interface AddUserEmojiUsageEvent {
|
|
669
674
|
emoji_id: string;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
|
@@ -1027,6 +1027,16 @@ export interface BlockFriend {
|
|
|
1027
1027
|
export interface UnblockFriend {
|
|
1028
1028
|
//
|
|
1029
1029
|
user_id: string;
|
|
1030
|
+
//
|
|
1031
|
+
username: string;
|
|
1032
|
+
//
|
|
1033
|
+
avatar: string;
|
|
1034
|
+
//
|
|
1035
|
+
display_name: string;
|
|
1036
|
+
//
|
|
1037
|
+
status: string;
|
|
1038
|
+
//
|
|
1039
|
+
user_status: string;
|
|
1030
1040
|
}
|
|
1031
1041
|
|
|
1032
1042
|
export interface AddUserEmojiUsageEvent {
|
|
@@ -1987,7 +1997,7 @@ export class DefaultSocket implements Socket {
|
|
|
1987
1997
|
} else if (message.block_friend) {
|
|
1988
1998
|
this.onblockfriend(<BlockFriend>message.block_friend);
|
|
1989
1999
|
} else if (message.un_block_friend) {
|
|
1990
|
-
this.onunblockfriend(<
|
|
2000
|
+
this.onunblockfriend(<UnblockFriend>message.un_block_friend);
|
|
1991
2001
|
} else if (message.add_friend) {
|
|
1992
2002
|
this.onaddfriend(<AddFriend>message.add_friend);
|
|
1993
2003
|
} else if (message.remove_friend) {
|