lemmy-js-client 0.20.0-image-api-rework.4 → 0.20.0-image-api-rework.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/http.js +2 -2
- package/dist/types/CreateSite.d.ts +0 -2
- package/dist/types/EditCommunity.d.ts +0 -8
- package/dist/types/EditSite.d.ts +0 -8
- package/dist/types/GetSiteResponse.d.ts +1 -0
- package/dist/types/LemmyErrorType.d.ts +2 -0
- package/dist/types/SaveUserSettings.d.ts +0 -4
- package/dist/types/SiteResponse.d.ts +1 -1
- package/package.json +1 -1
package/dist/http.js
CHANGED
@@ -997,7 +997,7 @@ class LemmyHttp {
|
|
997
997
|
uploadImage(_a, options_1) {
|
998
998
|
return __awaiter(this, arguments, void 0, function* ({ image }, options) {
|
999
999
|
const formData = createFormData(image);
|
1000
|
-
const response = yield __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, "/
|
1000
|
+
const response = yield __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_buildFullUrl).call(this, "/image"), Object.assign(Object.assign({}, options), { method: HttpType.Post, body: formData, headers: __classPrivateFieldGet(this, _LemmyHttp_headers, "f") }));
|
1001
1001
|
return response.json();
|
1002
1002
|
});
|
1003
1003
|
}
|
@@ -1009,7 +1009,7 @@ class LemmyHttp {
|
|
1009
1009
|
userUploadAvatar(_a, options_1) {
|
1010
1010
|
return __awaiter(this, arguments, void 0, function* ({ image }, options) {
|
1011
1011
|
const formData = createFormData(image);
|
1012
|
-
const response = yield __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, "/
|
1012
|
+
const response = yield __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_buildFullUrl).call(this, "/account/avatar"), Object.assign(Object.assign({}, options), { method: HttpType.Post, body: formData, headers: __classPrivateFieldGet(this, _LemmyHttp_headers, "f") }));
|
1013
1013
|
return response.json();
|
1014
1014
|
});
|
1015
1015
|
}
|
@@ -18,14 +18,6 @@ export type EditCommunity = {
|
|
18
18
|
* A shorter, one line description of your community.
|
19
19
|
*/
|
20
20
|
description?: string;
|
21
|
-
/**
|
22
|
-
* An icon URL.
|
23
|
-
*/
|
24
|
-
icon?: string;
|
25
|
-
/**
|
26
|
-
* A banner URL.
|
27
|
-
*/
|
28
|
-
banner?: string;
|
29
21
|
/**
|
30
22
|
* Whether its an NSFW community.
|
31
23
|
*/
|
package/dist/types/EditSite.d.ts
CHANGED
@@ -18,14 +18,6 @@ export type EditSite = {
|
|
18
18
|
* A shorter, one line description of your site.
|
19
19
|
*/
|
20
20
|
description?: string;
|
21
|
-
/**
|
22
|
-
* A url for your site's icon.
|
23
|
-
*/
|
24
|
-
icon?: string;
|
25
|
-
/**
|
26
|
-
* A url for your site's banner.
|
27
|
-
*/
|
28
|
-
banner?: string;
|
29
21
|
/**
|
30
22
|
* Whether to enable NSFW.
|
31
23
|
*/
|
@@ -40,10 +40,6 @@ export type SaveUserSettings = {
|
|
40
40
|
* The language of the lemmy interface
|
41
41
|
*/
|
42
42
|
interface_language?: string;
|
43
|
-
/**
|
44
|
-
* A URL for your banner.
|
45
|
-
*/
|
46
|
-
banner?: string;
|
47
43
|
/**
|
48
44
|
* Your display name, which can contain strange characters, and does not need to be unique.
|
49
45
|
*/
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "lemmy-js-client",
|
3
3
|
"description": "A javascript / typescript client for Lemmy",
|
4
|
-
"version": "0.20.0-image-api-rework.
|
4
|
+
"version": "0.20.0-image-api-rework.6",
|
5
5
|
"author": "Dessalines <tyhou13@gmx.com>",
|
6
6
|
"license": "AGPL-3.0",
|
7
7
|
"main": "./dist/index.js",
|