mezon-js 2.9.47 → 2.9.49
Sign up to get free protection for your applications and to get access to all the features.
- package/client.ts +3 -0
- package/dist/client.d.ts +1 -0
- package/dist/mezon-js.cjs.js +2 -0
- package/dist/mezon-js.esm.mjs +2 -0
- package/dist/socket.d.ts +1 -0
- package/package.json +1 -1
- package/socket.ts +2 -0
package/client.ts
CHANGED
@@ -283,6 +283,8 @@ export interface User {
|
|
283
283
|
update_time?: string;
|
284
284
|
/** The username of the user's account. */
|
285
285
|
username?: string;
|
286
|
+
//
|
287
|
+
is_mobile?: boolean;
|
286
288
|
}
|
287
289
|
|
288
290
|
/** A collection of zero or more users. */
|
@@ -2161,6 +2163,7 @@ export class Client {
|
|
2161
2163
|
timezone: f.user!.timezone,
|
2162
2164
|
update_time: f.user!.update_time,
|
2163
2165
|
username: f.user!.username,
|
2166
|
+
is_mobile: f.user?.is_mobile,
|
2164
2167
|
metadata: f.user!.metadata
|
2165
2168
|
? JSON.parse(f.user!.metadata!)
|
2166
2169
|
: undefined,
|
package/dist/client.d.ts
CHANGED
package/dist/mezon-js.cjs.js
CHANGED
@@ -7785,6 +7785,7 @@ var Client = class {
|
|
7785
7785
|
return Promise.resolve(result);
|
7786
7786
|
}
|
7787
7787
|
response.friends.forEach((f) => {
|
7788
|
+
var _a;
|
7788
7789
|
result.friends.push({
|
7789
7790
|
user: {
|
7790
7791
|
avatar_url: f.user.avatar_url,
|
@@ -7802,6 +7803,7 @@ var Client = class {
|
|
7802
7803
|
timezone: f.user.timezone,
|
7803
7804
|
update_time: f.user.update_time,
|
7804
7805
|
username: f.user.username,
|
7806
|
+
is_mobile: (_a = f.user) == null ? void 0 : _a.is_mobile,
|
7805
7807
|
metadata: f.user.metadata ? JSON.parse(f.user.metadata) : void 0
|
7806
7808
|
},
|
7807
7809
|
state: f.state
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -7756,6 +7756,7 @@ var Client = class {
|
|
7756
7756
|
return Promise.resolve(result);
|
7757
7757
|
}
|
7758
7758
|
response.friends.forEach((f) => {
|
7759
|
+
var _a;
|
7759
7760
|
result.friends.push({
|
7760
7761
|
user: {
|
7761
7762
|
avatar_url: f.user.avatar_url,
|
@@ -7773,6 +7774,7 @@ var Client = class {
|
|
7773
7774
|
timezone: f.user.timezone,
|
7774
7775
|
update_time: f.user.update_time,
|
7775
7776
|
username: f.user.username,
|
7777
|
+
is_mobile: (_a = f.user) == null ? void 0 : _a.is_mobile,
|
7776
7778
|
metadata: f.user.metadata ? JSON.parse(f.user.metadata) : void 0
|
7777
7779
|
},
|
7778
7780
|
state: f.state
|
package/dist/socket.d.ts
CHANGED
package/package.json
CHANGED