Compare commits

..

2 commits

Author SHA1 Message Date
SleeplessOne1917
c7dae42e52
Merge branch 'main' into optional-fetch-fn 2023-06-23 20:35:53 +00:00
SleeplessOne1917
76e17c6c02 Make fetch function optional 2023-06-22 08:06:35 -04:00
11 changed files with 5 additions and 15 deletions

View file

@ -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",

View file

@ -1284,10 +1284,6 @@ export class LemmyHttp {
},
});
if (response.status === 413) {
return { msg: "too_large" };
}
const responseJson = await response.json();
if (responseJson.msg === "ok") {

View file

@ -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;

View file

@ -37,6 +37,7 @@ export interface CreateSite {
rate_limit_search_per_second?: number;
federation_enabled?: boolean;
federation_debug?: boolean;
federation_worker_count?: number;
captcha_enabled?: boolean;
captcha_difficulty?: string;
allowed_instances?: Array<string>;

View file

@ -37,6 +37,7 @@ export interface EditSite {
rate_limit_search_per_second?: number;
federation_enabled?: boolean;
federation_debug?: boolean;
federation_worker_count?: number;
captcha_enabled?: boolean;
captcha_difficulty?: string;
allowed_instances?: Array<string>;

View file

@ -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;

View file

@ -22,6 +22,7 @@ export interface LocalSite {
slur_filter_regex?: string;
actor_name_max_length: number;
federation_enabled: boolean;
federation_worker_count: number;
captcha_enabled: boolean;
captcha_difficulty: string;
published: string;

View file

@ -23,5 +23,4 @@ export interface LocalUser {
email_verified: boolean;
accepted_application: boolean;
totp_2fa_url?: string;
open_links_in_new_tab: boolean;
}

View file

@ -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;

View file

@ -25,5 +25,4 @@ export interface SaveUserSettings {
discussion_languages?: Array<LanguageId>;
generate_totp_2fa?: boolean;
auth: string;
open_links_in_new_tab?: boolean;
}

View file

@ -14,7 +14,4 @@ export type SortType =
| "NewComments"
| "TopHour"
| "TopSixHour"
| "TopTwelveHour"
| "TopThreeMonths"
| "TopSixMonths"
| "TopNineMonths";
| "TopTwelveHour";