@inweb/client 25.6.3 → 25.6.4
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/dist/client.js +17 -8
- package/dist/client.js.map +1 -1
- package/dist/client.min.js +1 -1
- package/dist/client.module.js +5 -5
- package/dist/client.module.js.map +1 -1
- package/lib/Api/File.d.ts +2 -1
- package/lib/Api/Project.d.ts +2 -1
- package/lib/Api/User.d.ts +2 -1
- package/package.json +2 -2
- package/src/Api/File.ts +5 -2
- package/src/Api/Project.ts +5 -2
- package/src/Api/User.ts +5 -2
package/dist/client.js
CHANGED
|
@@ -1968,7 +1968,9 @@
|
|
|
1968
1968
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1969
1969
|
var _m, _o, _p, _q, _r, _s, _t, _u;
|
|
1970
1970
|
this._data = value;
|
|
1971
|
-
this._data.previewUrl = value.preview
|
|
1971
|
+
this._data.previewUrl = value.preview
|
|
1972
|
+
? `${this.httpClient.serverUrl}${this.path}/preview?updated=${value.updatedAt}`
|
|
1973
|
+
: "";
|
|
1972
1974
|
// owner since 24.8
|
|
1973
1975
|
if (typeof this._data.owner === "string")
|
|
1974
1976
|
this._data.owner = { userId: this._data.owner };
|
|
@@ -2060,7 +2062,8 @@
|
|
|
2060
2062
|
return this.data.owner;
|
|
2061
2063
|
}
|
|
2062
2064
|
/**
|
|
2063
|
-
* File preview image URL
|
|
2065
|
+
* File preview image URL or empty string if the file does not have a preview. Use
|
|
2066
|
+
* {@link File.setPreview | setPreview()} to change preview image.
|
|
2064
2067
|
*
|
|
2065
2068
|
* @readonly
|
|
2066
2069
|
*/
|
|
@@ -3052,7 +3055,9 @@
|
|
|
3052
3055
|
}
|
|
3053
3056
|
set data(value) {
|
|
3054
3057
|
this._data = value;
|
|
3055
|
-
this._data.previewUrl = value.avatarUrl
|
|
3058
|
+
this._data.previewUrl = value.avatarUrl
|
|
3059
|
+
? `${this.httpClient.serverUrl}/projects/${this._data.id}/preview?updated=${value.updatedAt}`
|
|
3060
|
+
: "";
|
|
3056
3061
|
this._data.owner.avatarUrl = `${this.httpClient.serverUrl}/users/${this._data.owner.userId}/avatar`;
|
|
3057
3062
|
this._data.owner.fullName = userFullName(this._data.owner);
|
|
3058
3063
|
this._data.owner.initials = userInitials(this._data.owner.fullName);
|
|
@@ -3126,7 +3131,8 @@
|
|
|
3126
3131
|
return this.data.owner;
|
|
3127
3132
|
}
|
|
3128
3133
|
/**
|
|
3129
|
-
* Project preview image URL
|
|
3134
|
+
* Project preview image URL or empty string if the project does not have a preview. Use
|
|
3135
|
+
* {@link Project.setPreview | setPreview()} to change preview image.
|
|
3130
3136
|
*
|
|
3131
3137
|
* @readonly
|
|
3132
3138
|
*/
|
|
@@ -3419,7 +3425,8 @@
|
|
|
3419
3425
|
this.data = data;
|
|
3420
3426
|
}
|
|
3421
3427
|
/**
|
|
3422
|
-
* User avatar image URL
|
|
3428
|
+
* User avatar image URL or empty string if the user does not have an avatar. Use
|
|
3429
|
+
* {@link User.setAvatar | setAvatar()} to change avatar image.
|
|
3423
3430
|
*
|
|
3424
3431
|
* @readonly
|
|
3425
3432
|
*/
|
|
@@ -3462,7 +3469,9 @@
|
|
|
3462
3469
|
}
|
|
3463
3470
|
set data(value) {
|
|
3464
3471
|
this._data = value;
|
|
3465
|
-
this._data.avatarUrl = value.avatarImage
|
|
3472
|
+
this._data.avatarUrl = value.avatarImage
|
|
3473
|
+
? `${this.httpClient.serverUrl}/users/${this._data.id}/avatar?updated=${value.lastModified}`
|
|
3474
|
+
: "";
|
|
3466
3475
|
this._data.fullName = userFullName(this._data);
|
|
3467
3476
|
this._data.initials = userInitials(this._data.fullName);
|
|
3468
3477
|
}
|
|
@@ -3858,7 +3867,7 @@
|
|
|
3858
3867
|
.then((data) => ({
|
|
3859
3868
|
...data,
|
|
3860
3869
|
server: data.version,
|
|
3861
|
-
client: "25.6.
|
|
3870
|
+
client: "25.6.4",
|
|
3862
3871
|
}));
|
|
3863
3872
|
}
|
|
3864
3873
|
/**
|
|
@@ -4583,7 +4592,7 @@
|
|
|
4583
4592
|
}
|
|
4584
4593
|
|
|
4585
4594
|
///////////////////////////////////////////////////////////////////////////////
|
|
4586
|
-
const version = "25.6.
|
|
4595
|
+
const version = "25.6.4";
|
|
4587
4596
|
|
|
4588
4597
|
exports.Assembly = Assembly;
|
|
4589
4598
|
exports.ClashTest = ClashTest;
|