Compare commits
1 commit
main
...
add_more_s
Author | SHA1 | Date | |
---|---|---|---|
|
d39f123d62 |
7 changed files with 2 additions and 12 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "lemmy-js-client",
|
||||
"version": "0.18.1-rc.3",
|
||||
"version": "0.18.0",
|
||||
"description": "A javascript / typescript client for Lemmy",
|
||||
"repository": "https://github.com/LemmyNet/lemmy-js-client",
|
||||
"license": "AGPL-3.0",
|
||||
|
|
|
@ -158,7 +158,7 @@ export class LemmyHttp {
|
|||
constructor(
|
||||
baseUrl: string,
|
||||
options?: {
|
||||
fetchFunction?: typeof fetch;
|
||||
fetchFunction: typeof fetch;
|
||||
headers?: { [key: string]: string };
|
||||
}
|
||||
) {
|
||||
|
@ -1284,10 +1284,6 @@ export class LemmyHttp {
|
|||
},
|
||||
});
|
||||
|
||||
if (response.status === 413) {
|
||||
return { msg: "too_large" };
|
||||
}
|
||||
|
||||
const responseJson = await response.json();
|
||||
|
||||
if (responseJson.msg === "ok") {
|
||||
|
|
|
@ -16,8 +16,6 @@ export interface Community {
|
|||
local: boolean;
|
||||
icon?: string;
|
||||
banner?: string;
|
||||
followers_url: string;
|
||||
inbox_url: string;
|
||||
hidden: boolean;
|
||||
posting_restricted_to_mods: boolean;
|
||||
instance_id: InstanceId;
|
||||
|
|
|
@ -5,7 +5,6 @@ import type { SortType } from "./SortType";
|
|||
export interface ListCommunities {
|
||||
type_?: ListingType;
|
||||
sort?: SortType;
|
||||
show_nsfw?: boolean;
|
||||
page?: number;
|
||||
limit?: number;
|
||||
auth?: string;
|
||||
|
|
|
@ -23,5 +23,4 @@ export interface LocalUser {
|
|||
email_verified: boolean;
|
||||
accepted_application: boolean;
|
||||
totp_2fa_url?: string;
|
||||
open_links_in_new_tab: boolean;
|
||||
}
|
||||
|
|
|
@ -15,7 +15,6 @@ export interface Person {
|
|||
local: boolean;
|
||||
banner?: string;
|
||||
deleted: boolean;
|
||||
inbox_url: string;
|
||||
matrix_user_id?: string;
|
||||
admin: boolean;
|
||||
bot_account: boolean;
|
||||
|
|
|
@ -25,5 +25,4 @@ export interface SaveUserSettings {
|
|||
discussion_languages?: Array<LanguageId>;
|
||||
generate_totp_2fa?: boolean;
|
||||
auth: string;
|
||||
open_links_in_new_tab?: boolean;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue