lemmy-js-client 0.18.1-rc.2 → 0.18.1
Sign up to get free protection for your applications and to get access to all the features.
package/dist/http.js
CHANGED
@@ -766,6 +766,9 @@ class LemmyHttp {
|
|
766
766
|
body: formData,
|
767
767
|
headers: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _LemmyHttp_headers, "f")), headers),
|
768
768
|
});
|
769
|
+
if (response.status === 413) {
|
770
|
+
return { msg: "too_large" };
|
771
|
+
}
|
769
772
|
const responseJson = yield response.json();
|
770
773
|
if (responseJson.msg === "ok") {
|
771
774
|
const { file: hash, delete_token: deleteToken } = responseJson.files[0];
|
package/dist/types/Person.d.ts
CHANGED