lemmy-js-client 0.20.0-image-api-rework.4 → 0.20.0-image-api-rework.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/http.js +2 -2
- 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
|
}
|
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.5",
|
5
5
|
"author": "Dessalines <tyhou13@gmx.com>",
|
6
6
|
"license": "AGPL-3.0",
|
7
7
|
"main": "./dist/index.js",
|