Merge branch 'main' into add_option_types

This commit is contained in:
Dessalines 2022-06-03 21:57:56 -04:00
commit 0b620aba8c
11 changed files with 284 additions and 218 deletions

View file

@ -1,7 +1,7 @@
{
"name": "lemmy-js-client",
"description": "A javascript / typescript client for Lemmy",
"version": "0.17.0-rc.8",
"version": "0.16.4-rc.3",
"author": "Dessalines <tyhou13@gmx.com>",
"license": "AGPL-3.0",
"main": "./dist/index.js",
@ -20,23 +20,23 @@
},
"devDependencies": {
"@sniptt/monads": "^0.5.10",
"@types/node": "^17.0.10",
"@types/node": "^17.0.33",
"@types/node-fetch": "^3.0.3",
"@typescript-eslint/eslint-plugin": "^5.10.0",
"@typescript-eslint/parser": "^5.10.0",
"eslint": "^8.7.0",
"@typescript-eslint/eslint-plugin": "^5.23.0",
"@typescript-eslint/parser": "^5.23.0",
"eslint": "^8.15.0",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^7.0.4",
"lint-staged": "^12.2.2",
"node-fetch": "^3.1.1",
"prettier": "^2.5.0",
"husky": "^8.0.1",
"lint-staged": "^12.4.1",
"node-fetch": "^3.2.4",
"prettier": "^2.6.2",
"prettier-plugin-import-sort": "^0.0.7",
"prettier-plugin-organize-imports": "^2.3.4",
"prettier-plugin-packagejson": "^2.2.15",
"prettier-plugin-packagejson": "^2.2.18",
"sortpack": "^2.2.0",
"typedoc": "^0.21.6",
"typedoc-plugin-sourcefile-url": "^1.0.6",
"typescript": "^4.5.4"
"typescript": "^4.6.4"
},
"types": "./dist/index.d.ts",
"lint-staged": {

View file

@ -93,6 +93,7 @@ import {
ListPostReports,
ListPostReportsResponse,
LockPost,
MarkPostAsRead,
PostReportResponse,
PostResponse,
RemovePost,
@ -153,6 +154,7 @@ export class LemmyHttp {
/**
* Gets the site, and your user data.
* `HTTP.GET /site`
*/
async getSite(form: GetSite): Promise<GetSiteResponse> {
return this.wrapper(HttpType.Get, "/site", form);
@ -160,6 +162,7 @@ export class LemmyHttp {
/**
* Create your site.
* `HTTP.POST /site`
*/
async createSite(form: CreateSite): Promise<SiteResponse> {
return this.wrapper(HttpType.Post, "/site", form);
@ -167,6 +170,7 @@ export class LemmyHttp {
/**
* Edit your site.
* `HTTP.PUT /site`
*/
async editSite(form: EditSite): Promise<SiteResponse> {
return this.wrapper(HttpType.Put, "/site", form);
@ -174,6 +178,7 @@ export class LemmyHttp {
/**
* Leave the Site admins.
* `HTTP.POST /user/leave_admin`
*/
async leaveAdmin(form: LeaveAdmin): Promise<GetSiteResponse> {
return this.wrapper(HttpType.Post, "/user/leave_admin", form);
@ -181,6 +186,7 @@ export class LemmyHttp {
/**
* Get your site configuration.
* `HTTP.GET /site/config`
*/
async getSiteConfig(form: GetSiteConfig): Promise<GetSiteConfigResponse> {
return this.wrapper(HttpType.Get, "/site/config", form);
@ -188,6 +194,7 @@ export class LemmyHttp {
/**
* Save your site config.
* `HTTP.PUT /site/config`
*/
async saveSiteConfig(form: SaveSiteConfig): Promise<GetSiteConfigResponse> {
return this.wrapper(HttpType.Put, "/site/config", form);
@ -195,6 +202,7 @@ export class LemmyHttp {
/**
* Get the modlog.
* `HTTP.GET /modlog`
*/
async getModlog(form: GetModlog): Promise<GetModlogResponse> {
return this.wrapper(HttpType.Get, "/modlog", form);
@ -202,6 +210,7 @@ export class LemmyHttp {
/**
* Search lemmy.
* `HTTP.GET /search`
*/
async search(form: Search): Promise<SearchResponse> {
return this.wrapper(HttpType.Get, "/search", form);
@ -209,6 +218,7 @@ export class LemmyHttp {
/**
* Fetch a non-local / federated object.
* `HTTP.GET /resolve_object`
*/
async resolveObject(form: ResolveObject): Promise<ResolveObjectResponse> {
return this.wrapper(HttpType.Get, "/resolve_object", form);
@ -216,6 +226,7 @@ export class LemmyHttp {
/**
* Create a new community.
* `HTTP.POST /community`
*/
async createCommunity(form: CreateCommunity): Promise<CommunityResponse> {
return this.wrapper(HttpType.Post, "/community", form);
@ -223,6 +234,7 @@ export class LemmyHttp {
/**
* Get / fetch a community.
* `HTTP.GET /community`
*/
async getCommunity(form: GetCommunity): Promise<GetCommunityResponse> {
return this.wrapper(HttpType.Get, "/community", form);
@ -230,6 +242,7 @@ export class LemmyHttp {
/**
* Edit a community.
* `HTTP.PUT /community`
*/
async editCommunity(form: EditCommunity): Promise<CommunityResponse> {
return this.wrapper(HttpType.Put, "/community", form);
@ -237,6 +250,7 @@ export class LemmyHttp {
/**
* List communities, with various filters.
* `HTTP.GET /community/list`
*/
async listCommunities(
form: ListCommunities
@ -246,6 +260,7 @@ export class LemmyHttp {
/**
* Follow / subscribe to a community.
* `HTTP.POST /community/follow`
*/
async followCommunity(form: FollowCommunity): Promise<CommunityResponse> {
return this.wrapper(HttpType.Post, "/community/follow", form);
@ -253,6 +268,7 @@ export class LemmyHttp {
/**
* Block a community.
* `HTTP.POST /community/block`
*/
async blockCommunity(form: BlockCommunity): Promise<BlockCommunityResponse> {
return this.wrapper(HttpType.Post, "/community/block", form);
@ -260,6 +276,7 @@ export class LemmyHttp {
/**
* Delete a community.
* `HTTP.POST /community/delete`
*/
async deleteCommunity(form: DeleteCommunity): Promise<CommunityResponse> {
return this.wrapper(HttpType.Post, "/community/delete", form);
@ -267,6 +284,7 @@ export class LemmyHttp {
/**
* A moderator remove for a community.
* `HTTP.POST /community/remove`
*/
async removeCommunity(form: RemoveCommunity): Promise<CommunityResponse> {
return this.wrapper(HttpType.Post, "/community/remove", form);
@ -274,6 +292,7 @@ export class LemmyHttp {
/**
* Transfer your community to an existing moderator.
* `HTTP.POST /community/transfer`
*/
async transferCommunity(
form: TransferCommunity
@ -283,6 +302,7 @@ export class LemmyHttp {
/**
* Ban a user from a community.
* `HTTP.POST /community/ban_user`
*/
async banFromCommunity(
form: BanFromCommunity
@ -292,6 +312,7 @@ export class LemmyHttp {
/**
* Add a moderator to your community.
* `HTTP.POST /community/mod`
*/
async addModToCommunity(
form: AddModToCommunity
@ -301,6 +322,7 @@ export class LemmyHttp {
/**
* Create a post.
* `HTTP.POST /post`
*/
async createPost(form: CreatePost): Promise<PostResponse> {
return this.wrapper(HttpType.Post, "/post", form);
@ -308,6 +330,7 @@ export class LemmyHttp {
/**
* Get / fetch a post.
* `HTTP.GET /post`
*/
async getPost(form: GetPost): Promise<GetPostResponse> {
return this.wrapper(HttpType.Get, "/post", form);
@ -315,6 +338,7 @@ export class LemmyHttp {
/**
* Edit a post.
* `HTTP.PUT /post`
*/
async editPost(form: EditPost): Promise<PostResponse> {
return this.wrapper(HttpType.Put, "/post", form);
@ -322,6 +346,7 @@ export class LemmyHttp {
/**
* Delete a post.
* `HTTP.POST /post/delete`
*/
async deletePost(form: DeletePost): Promise<PostResponse> {
return this.wrapper(HttpType.Post, "/post/delete", form);
@ -329,13 +354,23 @@ export class LemmyHttp {
/**
* A moderator remove for a post.
* `HTTP.POST /post/remove`
*/
async removePost(form: RemovePost): Promise<PostResponse> {
return this.wrapper(HttpType.Post, "/post/remove", form);
}
/**
* Mark a post as read.
* `HTTP.POST /post/mark_as_read`
*/
async markPostAsRead(form: MarkPostAsRead): Promise<PostResponse> {
return this.wrapper(HttpType.Post, "/post/mark_as_read", form);
}
/**
* A moderator can lock a post ( IE disable new comments ).
* `HTTP.POST /post/lock`
*/
async lockPost(form: LockPost): Promise<PostResponse> {
return this.wrapper(HttpType.Post, "/post/lock", form);
@ -343,6 +378,7 @@ export class LemmyHttp {
/**
* A moderator can sticky a post ( IE stick it to the top of a community ).
* `HTTP.POST /post/sticky`
*/
async stickyPost(form: StickyPost): Promise<PostResponse> {
return this.wrapper(HttpType.Post, "/post/sticky", form);
@ -350,6 +386,7 @@ export class LemmyHttp {
/**
* Get / fetch posts, with various filters.
* `HTTP.GET /post/list`
*/
async getPosts(form: GetPosts): Promise<GetPostsResponse> {
return this.wrapper(HttpType.Get, "/post/list", form);
@ -357,6 +394,7 @@ export class LemmyHttp {
/**
* Like / vote on a post.
* `HTTP.POST /post/like`
*/
async likePost(form: CreatePostLike): Promise<PostResponse> {
return this.wrapper(HttpType.Post, "/post/like", form);
@ -364,6 +402,7 @@ export class LemmyHttp {
/**
* Save a post.
* `HTTP.PUT /post/save`
*/
async savePost(form: SavePost): Promise<PostResponse> {
return this.wrapper(HttpType.Put, "/post/save", form);
@ -371,6 +410,7 @@ export class LemmyHttp {
/**
* Report a post.
* `HTTP.POST /post/report`
*/
async createPostReport(form: CreatePostReport): Promise<PostReportResponse> {
return this.wrapper(HttpType.Post, "/post/report", form);
@ -378,6 +418,7 @@ export class LemmyHttp {
/**
* Resolve a post report. Only a mod can do this.
* `HTTP.PUT /post/report/resolve`
*/
async resolvePostReport(
form: ResolvePostReport
@ -387,6 +428,7 @@ export class LemmyHttp {
/**
* List post reports.
* `HTTP.GET /post/report/list`
*/
async listPostReports(
form: ListPostReports
@ -396,6 +438,7 @@ export class LemmyHttp {
/**
* Fetch metadata for any given site.
* `HTTP.GET /post/site_metadata`
*/
async getSiteMetadata(
form: GetSiteMetadata
@ -405,6 +448,7 @@ export class LemmyHttp {
/**
* Create a comment.
* `HTTP.POST /comment`
*/
async createComment(form: CreateComment): Promise<CommentResponse> {
return this.wrapper(HttpType.Post, "/comment", form);
@ -412,6 +456,7 @@ export class LemmyHttp {
/**
* Edit a comment.
* `HTTP.PUT /comment`
*/
async editComment(form: EditComment): Promise<CommentResponse> {
return this.wrapper(HttpType.Put, "/comment", form);
@ -419,6 +464,7 @@ export class LemmyHttp {
/**
* Delete a comment.
* `HTTP.POST /comment/delete`
*/
async deleteComment(form: DeleteComment): Promise<CommentResponse> {
return this.wrapper(HttpType.Post, "/comment/delete", form);
@ -426,6 +472,7 @@ export class LemmyHttp {
/**
* A moderator remove for a comment.
* `HTTP.POST /comment/remove`
*/
async removeComment(form: RemoveComment): Promise<CommentResponse> {
return this.wrapper(HttpType.Post, "/comment/remove", form);
@ -433,6 +480,7 @@ export class LemmyHttp {
/**
* Mark a comment as read.
* `HTTP.POST /comment/mark_as_read`
*/
async markCommentAsRead(form: MarkCommentAsRead): Promise<CommentResponse> {
return this.wrapper(HttpType.Post, "/comment/mark_as_read", form);
@ -440,6 +488,7 @@ export class LemmyHttp {
/**
* Like / vote on a comment.
* `HTTP.POST /comment/like`
*/
async likeComment(form: CreateCommentLike): Promise<CommentResponse> {
return this.wrapper(HttpType.Post, "/comment/like", form);
@ -447,6 +496,7 @@ export class LemmyHttp {
/**
* Save a comment.
* `HTTP.PUT /comment/save`
*/
async saveComment(form: SaveComment): Promise<CommentResponse> {
return this.wrapper(HttpType.Put, "/comment/save", form);
@ -454,6 +504,7 @@ export class LemmyHttp {
/**
* Get / fetch comments.
* `HTTP.GET /comment/list`
*/
async getComments(form: GetComments): Promise<GetCommentsResponse> {
return this.wrapper(HttpType.Get, "/comment/list", form);
@ -461,6 +512,7 @@ export class LemmyHttp {
/**
* Report a comment.
* `HTTP.POST /comment/report`
*/
async createCommentReport(
form: CreateCommentReport
@ -470,6 +522,7 @@ export class LemmyHttp {
/**
* Resolve a comment report. Only a mod can do this.
* `HTTP.PUT /comment/report/resolve`
*/
async resolveCommentReport(
form: ResolveCommentReport
@ -479,6 +532,7 @@ export class LemmyHttp {
/**
* List comment reports.
* `HTTP.GET /comment/report/list`
*/
async listCommentReports(
form: ListCommentReports
@ -488,6 +542,7 @@ export class LemmyHttp {
/**
* Get / fetch private messages.
* `HTTP.GET /private_message/list`
*/
async getPrivateMessages(
form: GetPrivateMessages
@ -497,6 +552,7 @@ export class LemmyHttp {
/**
* Create a private message.
* `HTTP.POST /private_message`
*/
async createPrivateMessage(
form: CreatePrivateMessage
@ -506,6 +562,7 @@ export class LemmyHttp {
/**
* Edit a private message.
* `HTTP.PUT /private_message`
*/
async editPrivateMessage(
form: EditPrivateMessage
@ -515,6 +572,7 @@ export class LemmyHttp {
/**
* Delete a private message.
* `HTTP.POST /private_message/delete`
*/
async deletePrivateMessage(
form: DeletePrivateMessage
@ -524,6 +582,7 @@ export class LemmyHttp {
/**
* Mark a private message as read.
* `HTTP.POST /private_message/mark_as_read`
*/
async markPrivateMessageAsRead(
form: MarkPrivateMessageAsRead
@ -533,6 +592,7 @@ export class LemmyHttp {
/**
* Register a new user.
* `HTTP.POST /user/register`
*/
async register(form: Register): Promise<LoginResponse> {
return this.wrapper(HttpType.Post, "/user/register", form);
@ -540,6 +600,7 @@ export class LemmyHttp {
/**
* Log into lemmy.
* `HTTP.POST /user/login`
*/
async login(form: Login): Promise<LoginResponse> {
return this.wrapper(HttpType.Post, "/user/login", form);
@ -547,6 +608,7 @@ export class LemmyHttp {
/**
* Get the details for a person.
* `HTTP.GET /user`
*/
async getPersonDetails(
form: GetPersonDetails
@ -556,6 +618,7 @@ export class LemmyHttp {
/**
* Get mentions for your user.
* `HTTP.GET /user/mention`
*/
async getPersonMentions(
form: GetPersonMentions
@ -565,6 +628,7 @@ export class LemmyHttp {
/**
* Mark a person mention as read.
* `HTTP.POST /user/mention/mark_as_read`
*/
async markPersonMentionAsRead(
form: MarkPersonMentionAsRead
@ -574,6 +638,7 @@ export class LemmyHttp {
/**
* Get comment replies.
* `HTTP.GET /user/replies`
*/
async getReplies(form: GetReplies): Promise<GetRepliesResponse> {
return this.wrapper(HttpType.Get, "/user/replies", form);
@ -581,6 +646,7 @@ export class LemmyHttp {
/**
* Ban a person from your site.
* `HTTP.POST /user/ban`
*/
async banPerson(form: BanPerson): Promise<BanPersonResponse> {
return this.wrapper(HttpType.Post, "/user/ban", form);
@ -588,6 +654,7 @@ export class LemmyHttp {
/**
* Get a list of banned users
* `HTTP.GET /user/banned`
*/
async getBannedPersons(
form: GetBannedPersons
@ -597,6 +664,7 @@ export class LemmyHttp {
/**
* Block a person.
* `HTTP.POST /user/block`
*/
async blockPerson(form: BlockPerson): Promise<BlockPersonResponse> {
return this.wrapper(HttpType.Post, "/user/block", form);
@ -604,6 +672,7 @@ export class LemmyHttp {
/**
* Fetch a Captcha.
* `HTTP.GET /user/get_captcha`
*/
async getCaptcha(): Promise<GetCaptchaResponse> {
return this.wrapper(HttpType.Get, "/user/get_captcha", {});
@ -611,6 +680,7 @@ export class LemmyHttp {
/**
* Delete your account.
* `HTTP.POST /user/delete_account`
*/
async deleteAccount(form: DeleteAccount): Promise<DeleteAccountResponse> {
return this.wrapper(HttpType.Post, "/user/delete_account", form);
@ -618,6 +688,7 @@ export class LemmyHttp {
/**
* Reset your password.
* `HTTP.POST /user/password_reset`
*/
async passwordReset(form: PasswordReset): Promise<PasswordResetResponse> {
return this.wrapper(HttpType.Post, "/user/password_reset", form);
@ -625,6 +696,7 @@ export class LemmyHttp {
/**
* Change your password from an email / token based reset.
* `HTTP.POST /user/password_change`
*/
async passwordChange(form: PasswordChange): Promise<LoginResponse> {
return this.wrapper(HttpType.Post, "/user/password_change", form);
@ -632,6 +704,7 @@ export class LemmyHttp {
/**
* Mark all replies as read.
* `HTTP.POST /user/mark_all_as_read`
*/
async markAllAsRead(form: MarkAllAsRead): Promise<GetRepliesResponse> {
return this.wrapper(HttpType.Post, "/user/mark_all_as_read", form);
@ -639,6 +712,7 @@ export class LemmyHttp {
/**
* Save your user settings.
* `HTTP.PUT /user/save_user_settings`
*/
async saveUserSettings(form: SaveUserSettings): Promise<LoginResponse> {
return this.wrapper(HttpType.Put, "/user/save_user_settings", form);
@ -646,6 +720,7 @@ export class LemmyHttp {
/**
* Change your user password.
* `HTTP.PUT /user/change_password`
*/
async changePassword(form: ChangePassword): Promise<LoginResponse> {
return this.wrapper(HttpType.Put, "/user/change_password", form);
@ -653,6 +728,7 @@ export class LemmyHttp {
/**
* Get counts for your reports
* `HTTP.GET /user/report_count`
*/
async getReportCount(form: GetReportCount): Promise<GetReportCountResponse> {
return this.wrapper(HttpType.Get, "/user/report_count", form);
@ -660,6 +736,7 @@ export class LemmyHttp {
/**
* Get your unread counts
* `HTTP.GET /user/unread_count`
*/
async getUnreadCount(form: GetUnreadCount): Promise<GetUnreadCountResponse> {
return this.wrapper(HttpType.Get, "/user/unread_count", form);
@ -667,6 +744,7 @@ export class LemmyHttp {
/**
* Verify your email
* `HTTP.POST /user/verify_email`
*/
async verifyEmail(form: VerifyEmail): Promise<VerifyEmailResponse> {
return this.wrapper(HttpType.Post, "/user/verify_email", form);
@ -674,6 +752,7 @@ export class LemmyHttp {
/**
* Add an admin to your site.
* `HTTP.POST /admin/add`
*/
async addAdmin(form: AddAdmin): Promise<AddAdminResponse> {
return this.wrapper(HttpType.Post, "/admin/add", form);
@ -681,6 +760,7 @@ export class LemmyHttp {
/**
* Get the unread registration applications count.
* `HTTP.GET /admin/registration_application/count`
*/
async getUnreadRegistrationApplicationCount(
form: GetUnreadRegistrationApplicationCount
@ -693,7 +773,8 @@ export class LemmyHttp {
}
/**
* List the unread registration applications.
* List the registration applications.
* `HTTP.GET /admin/registration_application/list`
*/
async listRegistrationApplications(
form: ListRegistrationApplications
@ -707,6 +788,7 @@ export class LemmyHttp {
/**
* Approve a registration application
* `HTTP.PUT /admin/registration_application/approve`
*/
async approveRegistrationApplication(
form: ApproveRegistrationApplication

View file

@ -1,3 +1,4 @@
import { ListingType, SortType } from "../others";
import { CommentReportView, CommentView } from "../views";
export interface CreateComment {
@ -77,14 +78,8 @@ export interface CreateCommentLike {
* To get posts for a federated community by name, use `name@instance.tld` .
*/
export interface GetComments {
/**
* The [[ListingType]].
*/
type_?: string;
/**
* The [[SortType]].
*/
sort?: string;
type_?: ListingType;
sort?: SortType;
page?: number;
limit?: number;
community_id?: number;

View file

@ -1,3 +1,4 @@
import { ListingType, SortType } from "../others";
import { Site } from "../source";
import {
CommunityModeratorView,
@ -39,15 +40,8 @@ export interface CommunityResponse {
}
export interface ListCommunities {
/**
* The [[ListingType]].
*/
type_?: string;
/**
* The [[SortType]].
*/
sort?: string;
type_?: ListingType;
sort?: SortType;
page?: number;
limit?: number;
auth?: string;

View file

@ -1,3 +1,4 @@
import { SortType } from "../others";
import {
CommentView,
CommunityModeratorView,
@ -127,7 +128,7 @@ export interface GetPersonDetails {
* To get details for a federated user, use `person@instance.tld`.
*/
username?: string;
sort?: string;
sort?: SortType;
page?: number;
limit?: number;
community_id?: number;
@ -186,10 +187,7 @@ export interface BanPersonResponse {
}
export interface GetReplies {
/**
* The [[SortType]].
*/
sort?: string;
sort?: SortType;
page?: number;
limit?: number;
unread_only?: boolean;
@ -197,10 +195,7 @@ export interface GetReplies {
}
export interface GetPersonMentions {
/**
* The [[SortType]].
*/
sort?: string;
sort?: SortType;
page?: number;
limit?: number;
unread_only?: boolean;

View file

@ -1,4 +1,4 @@
import { SiteMetadata } from "..";
import { ListingType, SiteMetadata, SortType } from "../others";
import {
CommentView,
CommunityModeratorView,
@ -35,16 +35,8 @@ export interface GetPostResponse {
}
export interface GetPosts {
/**
* The [[ListingType]].
*
* Post listing types are `All, Subscribed, Community`
*/
type_?: string;
/**
* The [[SortType]].
*/
sort?: string;
type_?: ListingType;
sort?: SortType;
page?: number;
limit?: number;
community_id?: number;
@ -95,6 +87,15 @@ export interface RemovePost {
auth: string;
}
/**
* Marks a post as read.
*/
export interface MarkPostAsRead {
post_id: number;
read: boolean;
auth: string;
}
/**
* Only admins and mods can lock a post.
*/

View file

@ -1,4 +1,5 @@
import { Option } from "@sniptt/monads";
import { ListingType, SearchType, SortType } from "../others";
import {
CommentView,
CommunityBlockView,
@ -31,22 +32,12 @@ export interface Search {
* The search query string.
*/
q: string;
/**
* The [[SearchType]].
*/
type_?: string;
type_?: SearchType;
community_id?: number;
community_name?: string;
creator_id?: number;
/**
* The [[SortType]].
*/
sort?: string;
/**
* The [[ListingType]].
*/
listing_type?: string;
sort?: SortType;
listing_type?: ListingType;
page?: number;
limit?: number;
auth?: string;
@ -99,6 +90,7 @@ export interface CreateSite {
application_question?: string;
private_instance?: boolean;
default_theme?: string;
default_post_listing_type?: string;
auth: string;
}
@ -117,6 +109,8 @@ export interface EditSite {
application_question?: string;
private_instance?: boolean;
default_theme?: string;
legal_information?: string;
default_post_listing_type?: string;
auth: string;
}

View file

@ -26,6 +26,7 @@ export enum UserOperation {
RemovePost,
LockPost,
StickyPost,
MarkPostAsRead,
SavePost,
EditCommunity,
DeleteCommunity,

View file

@ -58,10 +58,12 @@ export interface Site {
application_question?: string;
private_instance: boolean;
default_theme: string;
default_post_listing_type: string;
actor_id: string;
last_refreshed_at: string;
inbox_url: string;
public_key: string;
legal_information?: string;
}
export interface PrivateMessage {

View file

@ -61,6 +61,7 @@ import {
GetSiteMetadata,
ListPostReports,
LockPost,
MarkPostAsRead,
RemovePost,
ResolvePostReport,
SavePost,
@ -332,6 +333,13 @@ export class LemmyWebsocket {
return wrapper(UserOperation.StickyPost, form);
}
/**
* Mark a post as read.
*/
markPostAsRead(form: MarkPostAsRead) {
return wrapper(UserOperation.MarkPostAsRead, form);
}
/**
* Save a post.
*/

306
yarn.lock
View file

@ -201,19 +201,19 @@
"@babel/helper-validator-identifier" "^7.15.7"
to-fast-properties "^2.0.0"
"@eslint/eslintrc@^1.0.5":
version "1.0.5"
resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.0.5.tgz#33f1b838dbf1f923bfa517e008362b78ddbbf318"
integrity sha512-BLxsnmK3KyPunz5wmCCpqy0YelEoxxGmH73Is+Z74oOTMtExcjkr3dDR6quwrjh1YspA8DH9gnX1o069KiS9AQ==
"@eslint/eslintrc@^1.2.3":
version "1.2.3"
resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.2.3.tgz#fcaa2bcef39e13d6e9e7f6271f4cc7cae1174886"
integrity sha512-uGo44hIwoLGNyduRpjdEpovcbMdd+Nv7amtmJxnKmI8xj6yd5LncmSwDa5NgX/41lIFJtkjD6YdVfgEzPfJ5UA==
dependencies:
ajv "^6.12.4"
debug "^4.3.2"
espree "^9.2.0"
espree "^9.3.2"
globals "^13.9.0"
ignore "^4.0.6"
ignore "^5.2.0"
import-fresh "^3.2.1"
js-yaml "^4.1.0"
minimatch "^3.0.4"
minimatch "^3.1.2"
strip-json-comments "^3.1.1"
"@humanwhocodes/config-array@^0.9.2":
@ -286,19 +286,19 @@
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.11.tgz#6ea7342dfb379ea1210835bada87b3c512120234"
integrity sha512-KB0sixD67CeecHC33MYn+eYARkqTheIRNuu97y2XMjR7Wu3XibO1vaY6VBV6O/a89SPI81cEUIYT87UqUWlZNw==
"@types/node@^17.0.10":
version "17.0.10"
resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.10.tgz#616f16e9d3a2a3d618136b1be244315d95bd7cab"
integrity sha512-S/3xB4KzyFxYGCppyDt68yzBU9ysL88lSdIah4D6cptdcltc4NCPCAMc0+PCpg/lLIyC7IPvj2Z52OJWeIUkog==
"@types/node@^17.0.33":
version "17.0.33"
resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.33.tgz#3c1879b276dc63e73030bb91165e62a4509cd506"
integrity sha512-miWq2m2FiQZmaHfdZNcbpp9PuXg34W5JZ5CrJ/BaS70VuhoJENBEQybeiYSaPBRNq6KQGnjfEnc/F3PN++D+XQ==
"@typescript-eslint/eslint-plugin@^5.10.0":
version "5.10.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.10.0.tgz#e90afea96dff8620892ad216b0e4ccdf8ee32d3a"
integrity sha512-XXVKnMsq2fuu9K2KsIxPUGqb6xAImz8MEChClbXmE3VbveFtBUU5bzM6IPVWqzyADIgdkS2Ws/6Xo7W2TeZWjQ==
"@typescript-eslint/eslint-plugin@^5.23.0":
version "5.23.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.23.0.tgz#bc4cbcf91fbbcc2e47e534774781b82ae25cc3d8"
integrity sha512-hEcSmG4XodSLiAp1uxv/OQSGsDY6QN3TcRU32gANp+19wGE1QQZLRS8/GV58VRUoXhnkuJ3ZxNQ3T6Z6zM59DA==
dependencies:
"@typescript-eslint/scope-manager" "5.10.0"
"@typescript-eslint/type-utils" "5.10.0"
"@typescript-eslint/utils" "5.10.0"
"@typescript-eslint/scope-manager" "5.23.0"
"@typescript-eslint/type-utils" "5.23.0"
"@typescript-eslint/utils" "5.23.0"
debug "^4.3.2"
functional-red-black-tree "^1.0.1"
ignore "^5.1.8"
@ -306,85 +306,80 @@
semver "^7.3.5"
tsutils "^3.21.0"
"@typescript-eslint/parser@^5.10.0":
version "5.10.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.10.0.tgz#8f59e036f5f1cffc178cacbd5ccdd02aeb96c91c"
integrity sha512-pJB2CCeHWtwOAeIxv8CHVGJhI5FNyJAIpx5Pt72YkK3QfEzt6qAlXZuyaBmyfOdM62qU0rbxJzNToPTVeJGrQw==
"@typescript-eslint/parser@^5.23.0":
version "5.23.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.23.0.tgz#443778e1afc9a8ff180f91b5e260ac3bec5e2de1"
integrity sha512-V06cYUkqcGqpFjb8ttVgzNF53tgbB/KoQT/iB++DOIExKmzI9vBJKjZKt/6FuV9c+zrDsvJKbJ2DOCYwX91cbw==
dependencies:
"@typescript-eslint/scope-manager" "5.10.0"
"@typescript-eslint/types" "5.10.0"
"@typescript-eslint/typescript-estree" "5.10.0"
"@typescript-eslint/scope-manager" "5.23.0"
"@typescript-eslint/types" "5.23.0"
"@typescript-eslint/typescript-estree" "5.23.0"
debug "^4.3.2"
"@typescript-eslint/scope-manager@5.10.0":
version "5.10.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.10.0.tgz#bb5d872e8b9e36203908595507fbc4d3105329cb"
integrity sha512-tgNgUgb4MhqK6DoKn3RBhyZ9aJga7EQrw+2/OiDk5hKf3pTVZWyqBi7ukP+Z0iEEDMF5FDa64LqODzlfE4O/Dg==
"@typescript-eslint/scope-manager@5.23.0":
version "5.23.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.23.0.tgz#4305e61c2c8e3cfa3787d30f54e79430cc17ce1b"
integrity sha512-EhjaFELQHCRb5wTwlGsNMvzK9b8Oco4aYNleeDlNuL6qXWDF47ch4EhVNPh8Rdhf9tmqbN4sWDk/8g+Z/J8JVw==
dependencies:
"@typescript-eslint/types" "5.10.0"
"@typescript-eslint/visitor-keys" "5.10.0"
"@typescript-eslint/types" "5.23.0"
"@typescript-eslint/visitor-keys" "5.23.0"
"@typescript-eslint/type-utils@5.10.0":
version "5.10.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.10.0.tgz#8524b9479c19c478347a7df216827e749e4a51e5"
integrity sha512-TzlyTmufJO5V886N+hTJBGIfnjQDQ32rJYxPaeiyWKdjsv2Ld5l8cbS7pxim4DeNs62fKzRSt8Q14Evs4JnZyQ==
"@typescript-eslint/type-utils@5.23.0":
version "5.23.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.23.0.tgz#f852252f2fc27620d5bb279d8fed2a13d2e3685e"
integrity sha512-iuI05JsJl/SUnOTXA9f4oI+/4qS/Zcgk+s2ir+lRmXI+80D8GaGwoUqs4p+X+4AxDolPpEpVUdlEH4ADxFy4gw==
dependencies:
"@typescript-eslint/utils" "5.10.0"
"@typescript-eslint/utils" "5.23.0"
debug "^4.3.2"
tsutils "^3.21.0"
"@typescript-eslint/types@5.10.0":
version "5.10.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.10.0.tgz#beb3cb345076f5b088afe996d57bcd1dfddaa75c"
integrity sha512-wUljCgkqHsMZbw60IbOqT/puLfyqqD5PquGiBo1u1IS3PLxdi3RDGlyf032IJyh+eQoGhz9kzhtZa+VC4eWTlQ==
"@typescript-eslint/types@5.23.0":
version "5.23.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.23.0.tgz#8733de0f58ae0ed318dbdd8f09868cdbf9f9ad09"
integrity sha512-NfBsV/h4dir/8mJwdZz7JFibaKC3E/QdeMEDJhiAE3/eMkoniZ7MjbEMCGXw6MZnZDMN3G9S0mH/6WUIj91dmw==
"@typescript-eslint/typescript-estree@5.10.0":
version "5.10.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.10.0.tgz#4be24a3dea0f930bb1397c46187d0efdd955a224"
integrity sha512-x+7e5IqfwLwsxTdliHRtlIYkgdtYXzE0CkFeV6ytAqq431ZyxCFzNMNR5sr3WOlIG/ihVZr9K/y71VHTF/DUQA==
"@typescript-eslint/typescript-estree@5.23.0":
version "5.23.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.23.0.tgz#dca5f10a0a85226db0796e8ad86addc9aee52065"
integrity sha512-xE9e0lrHhI647SlGMl+m+3E3CKPF1wzvvOEWnuE3CCjjT7UiRnDGJxmAcVKJIlFgK6DY9RB98eLr1OPigPEOGg==
dependencies:
"@typescript-eslint/types" "5.10.0"
"@typescript-eslint/visitor-keys" "5.10.0"
"@typescript-eslint/types" "5.23.0"
"@typescript-eslint/visitor-keys" "5.23.0"
debug "^4.3.2"
globby "^11.0.4"
is-glob "^4.0.3"
semver "^7.3.5"
tsutils "^3.21.0"
"@typescript-eslint/utils@5.10.0":
version "5.10.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.10.0.tgz#c3d152a85da77c400e37281355561c72fb1b5a65"
integrity sha512-IGYwlt1CVcFoE2ueW4/ioEwybR60RAdGeiJX/iDAw0t5w0wK3S7QncDwpmsM70nKgGTuVchEWB8lwZwHqPAWRg==
"@typescript-eslint/utils@5.23.0":
version "5.23.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.23.0.tgz#4691c3d1b414da2c53d8943310df36ab1c50648a"
integrity sha512-dbgaKN21drqpkbbedGMNPCtRPZo1IOUr5EI9Jrrh99r5UW5Q0dz46RKXeSBoPV+56R6dFKpbrdhgUNSJsDDRZA==
dependencies:
"@types/json-schema" "^7.0.9"
"@typescript-eslint/scope-manager" "5.10.0"
"@typescript-eslint/types" "5.10.0"
"@typescript-eslint/typescript-estree" "5.10.0"
"@typescript-eslint/scope-manager" "5.23.0"
"@typescript-eslint/types" "5.23.0"
"@typescript-eslint/typescript-estree" "5.23.0"
eslint-scope "^5.1.1"
eslint-utils "^3.0.0"
"@typescript-eslint/visitor-keys@5.10.0":
version "5.10.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.10.0.tgz#770215497ad67cd15a572b52089991d5dfe06281"
integrity sha512-GMxj0K1uyrFLPKASLmZzCuSddmjZVbVj3Ouy5QVuIGKZopxvOr24JsS7gruz6C3GExE01mublZ3mIBOaon9zuQ==
"@typescript-eslint/visitor-keys@5.23.0":
version "5.23.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.23.0.tgz#057c60a7ca64667a39f991473059377a8067c87b"
integrity sha512-Vd4mFNchU62sJB8pX19ZSPog05B0Y0CE2UxAZPT5k4iqhRYjPnqyY3woMxCd0++t9OTqkgjST+1ydLBi7e2Fvg==
dependencies:
"@typescript-eslint/types" "5.10.0"
"@typescript-eslint/types" "5.23.0"
eslint-visitor-keys "^3.0.0"
acorn-jsx@^5.3.1:
version "5.3.1"
resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.1.tgz#fc8661e11b7ac1539c47dbfea2e72b3af34d267b"
integrity sha512-K0Ptm/47OKfQRpNQ2J/oIN/3QYiK6FwW+eJbILhsdxh2WTLdl+30o8aGdTbm5JbffpFFAg/g+zi1E+jvJha5ng==
acorn-jsx@^5.3.2:
version "5.3.2"
resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937"
integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==
acorn@^8.6.0:
version "8.6.0"
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.6.0.tgz#e3692ba0eb1a0c83eaa4f37f5fa7368dd7142895"
integrity sha512-U1riIR+lBSNi3IbxtaHOIKdH8sLFv3NYfNv8sg7ZsNhcfl4HF2++BfqqrNAxoCLQW1iiylOj76ecnaUxz+z9yw==
acorn@^8.7.0:
version "8.7.0"
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.7.0.tgz#90951fde0f8f09df93549481e5fc141445b791cf"
integrity sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ==
acorn@^8.7.1:
version "8.7.1"
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.7.1.tgz#0197122c843d1bf6d0a5e83220a788f278f63c30"
integrity sha512-Xx54uLJQZ19lKygFXOWsscKUbsBZW0CPykPhVQdhIeIwrbPmJzqeASDInc8nKBnp/JT6igTs82qPXz069H8I/A==
aggregate-error@^3.0.0:
version "3.1.0"
@ -752,10 +747,10 @@ eslint-scope@^5.1.1:
esrecurse "^4.3.0"
estraverse "^4.1.1"
eslint-scope@^7.1.0:
version "7.1.0"
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-7.1.0.tgz#c1f6ea30ac583031f203d65c73e723b01298f153"
integrity sha512-aWwkhnS0qAXqNOgKOK0dJ2nvzEbhEvpy8OlJ9kZ0FeZnA6zpjv1/Vei+puGFFX7zkPCkHHXb7IDX3A+7yPrRWg==
eslint-scope@^7.1.1:
version "7.1.1"
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-7.1.1.tgz#fff34894c2f65e5226d3041ac480b4513a163642"
integrity sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==
dependencies:
esrecurse "^4.3.0"
estraverse "^5.2.0"
@ -772,22 +767,22 @@ eslint-visitor-keys@^2.0.0:
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.0.0.tgz#21fdc8fbcd9c795cc0321f0563702095751511a8"
integrity sha512-QudtT6av5WXels9WjIM7qz1XD1cWGvX4gGXvp/zBn9nXG02D0utdU3Em2m/QjTnrsk6bBjmCygl3rmj118msQQ==
eslint-visitor-keys@^3.0.0, eslint-visitor-keys@^3.1.0:
eslint-visitor-keys@^3.0.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.1.0.tgz#eee4acea891814cda67a7d8812d9647dd0179af2"
integrity sha512-yWJFpu4DtjsWKkt5GeNBBuZMlNcYVs6vRCLoCVEJrTjaSB6LC98gFipNK/erM2Heg/E8mIK+hXG/pJMLK+eRZA==
eslint-visitor-keys@^3.2.0:
version "3.2.0"
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.2.0.tgz#6fbb166a6798ee5991358bc2daa1ba76cc1254a1"
integrity sha512-IOzT0X126zn7ALX0dwFiUQEdsfzrm4+ISsQS8nukaJXwEyYKRSnEIIDULYg1mCtGp7UUXgfGl7BIolXREQK+XQ==
eslint-visitor-keys@^3.3.0:
version "3.3.0"
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826"
integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==
eslint@^8.7.0:
version "8.7.0"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.7.0.tgz#22e036842ee5b7cf87b03fe237731675b4d3633c"
integrity sha512-ifHYzkBGrzS2iDU7KjhCAVMGCvF6M3Xfs8X8b37cgrUlDt6bWRTpRh6T/gtSXv1HJ/BUGgmjvNvOEGu85Iif7w==
eslint@^8.15.0:
version "8.15.0"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.15.0.tgz#fea1d55a7062da48d82600d2e0974c55612a11e9"
integrity sha512-GG5USZ1jhCu8HJkzGgeK8/+RGnHaNYZGrGDzUtigK3BsGESW/rs2az23XqE0WVwDxy1VRvvjSSGu5nB0Bu+6SA==
dependencies:
"@eslint/eslintrc" "^1.0.5"
"@eslint/eslintrc" "^1.2.3"
"@humanwhocodes/config-array" "^0.9.2"
ajv "^6.10.0"
chalk "^4.0.0"
@ -795,10 +790,10 @@ eslint@^8.7.0:
debug "^4.3.2"
doctrine "^3.0.0"
escape-string-regexp "^4.0.0"
eslint-scope "^7.1.0"
eslint-scope "^7.1.1"
eslint-utils "^3.0.0"
eslint-visitor-keys "^3.2.0"
espree "^9.3.0"
eslint-visitor-keys "^3.3.0"
espree "^9.3.2"
esquery "^1.4.0"
esutils "^2.0.2"
fast-deep-equal "^3.1.3"
@ -814,7 +809,7 @@ eslint@^8.7.0:
json-stable-stringify-without-jsonify "^1.0.1"
levn "^0.4.1"
lodash.merge "^4.6.2"
minimatch "^3.0.4"
minimatch "^3.1.2"
natural-compare "^1.4.0"
optionator "^0.9.1"
regexpp "^3.2.0"
@ -823,23 +818,14 @@ eslint@^8.7.0:
text-table "^0.2.0"
v8-compile-cache "^2.0.3"
espree@^9.2.0:
version "9.2.0"
resolved "https://registry.yarnpkg.com/espree/-/espree-9.2.0.tgz#c50814e01611c2d0f8bd4daa83c369eabba80dbc"
integrity sha512-oP3utRkynpZWF/F2x/HZJ+AGtnIclaR7z1pYPxy7NYM2fSO6LgK/Rkny8anRSPK/VwEA1eqm2squui0T7ZMOBg==
espree@^9.3.2:
version "9.3.2"
resolved "https://registry.yarnpkg.com/espree/-/espree-9.3.2.tgz#f58f77bd334731182801ced3380a8cc859091596"
integrity sha512-D211tC7ZwouTIuY5x9XnS0E9sWNChB7IYKX/Xp5eQj3nFXhqmiUDB9q27y76oFl8jTg3pXcQx/bpxMfs3CIZbA==
dependencies:
acorn "^8.6.0"
acorn-jsx "^5.3.1"
eslint-visitor-keys "^3.1.0"
espree@^9.3.0:
version "9.3.0"
resolved "https://registry.yarnpkg.com/espree/-/espree-9.3.0.tgz#c1240d79183b72aaee6ccfa5a90bc9111df085a8"
integrity sha512-d/5nCsb0JcqsSEeQzFZ8DH1RmxPcglRWh24EFTlUEmCKoehXGdpsx0RkHDubqUI8LSAIKMQp4r9SzQ3n+sm4HQ==
dependencies:
acorn "^8.7.0"
acorn-jsx "^5.3.1"
eslint-visitor-keys "^3.1.0"
acorn "^8.7.1"
acorn-jsx "^5.3.2"
eslint-visitor-keys "^3.3.0"
esprima@^4.0.0:
version "4.0.1"
@ -947,10 +933,10 @@ fetch-blob@^3.1.2:
dependencies:
web-streams-polyfill "^3.0.3"
fetch-blob@^3.1.3:
version "3.1.4"
resolved "https://registry.yarnpkg.com/fetch-blob/-/fetch-blob-3.1.4.tgz#e8c6567f80ad7fc22fd302e7dcb72bafde9c1717"
integrity sha512-Eq5Xv5+VlSrYWEqKrusxY1C3Hm/hjeAsCGVG3ft7pZahlUAChpGZT/Ms1WmSLnEAisEXszjzu/s+ce6HZB2VHA==
fetch-blob@^3.1.4:
version "3.1.5"
resolved "https://registry.yarnpkg.com/fetch-blob/-/fetch-blob-3.1.5.tgz#0077bf5f3fcdbd9d75a0b5362f77dbb743489863"
integrity sha512-N64ZpKqoLejlrwkIAnb9iLSA3Vx/kjgzpcDhygcqJ2KKjky8nCgUQ+dzXtbrLaWZGZNmNfQTsiQ0weZ1svglHg==
dependencies:
node-domexception "^1.0.0"
web-streams-polyfill "^3.0.3"
@ -1153,15 +1139,10 @@ human-signals@^2.1.0:
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0"
integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==
husky@^7.0.4:
version "7.0.4"
resolved "https://registry.yarnpkg.com/husky/-/husky-7.0.4.tgz#242048245dc49c8fb1bf0cc7cfb98dd722531535"
integrity sha512-vbaCKN2QLtP/vD4yvs6iz6hBEo6wkSzs8HpRah1Z6aGmF2KW5PdYuAd7uX5a+OyBZHBhd+TFLqgjUgytQr4RvQ==
ignore@^4.0.6:
version "4.0.6"
resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc"
integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==
husky@^8.0.1:
version "8.0.1"
resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.1.tgz#511cb3e57de3e3190514ae49ed50f6bc3f50b3e9"
integrity sha512-xs7/chUH/CKdOCs7Zy0Aev9e/dKOMZf3K1Az1nar3tzlv0jfqnYtu235bstsWTmXOR0EfINrPa97yy4Lz6RiKw==
ignore@^5.1.1, ignore@^5.1.4:
version "5.1.8"
@ -1404,10 +1385,10 @@ lilconfig@2.0.4:
resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-2.0.4.tgz#f4507d043d7058b380b6a8f5cb7bcd4b34cee082"
integrity sha512-bfTIN7lEsiooCocSISTWXkiWJkRqtL9wYtYy+8EK3Y41qh3mpwPU0ycTOgjdY9ErwXCc8QyrQp82bdL0Xkm9yA==
lint-staged@^12.2.2:
version "12.2.2"
resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-12.2.2.tgz#e03d93b41092316e0f38b37c9630da807aae3cca"
integrity sha512-bcHEoM1M/f+K1BYdHcEuIn8K+zMOSJR3mkny6PAuQiTgcSUcRbUWaUD6porAYypxF4k1vYZZ2HutZt1p94Z1jQ==
lint-staged@^12.4.1:
version "12.4.1"
resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-12.4.1.tgz#63fa27bfc8a33515f6902f63f6670864f1fb233c"
integrity sha512-PTXgzpflrQ+pODQTG116QNB+Q6uUTDg5B5HqGvNhoQSGt8Qy+MA/6zSnR8n38+sxP5TapzeQGTvoKni0KRS8Vg==
dependencies:
cli-truncate "^3.1.0"
colorette "^2.0.16"
@ -1415,25 +1396,26 @@ lint-staged@^12.2.2:
debug "^4.3.3"
execa "^5.1.1"
lilconfig "2.0.4"
listr2 "^3.13.5"
listr2 "^4.0.1"
micromatch "^4.0.4"
normalize-path "^3.0.0"
object-inspect "^1.11.1"
object-inspect "^1.12.0"
pidtree "^0.5.0"
string-argv "^0.3.1"
supports-color "^9.2.1"
yaml "^1.10.2"
listr2@^3.13.5:
version "3.14.0"
resolved "https://registry.yarnpkg.com/listr2/-/listr2-3.14.0.tgz#23101cc62e1375fd5836b248276d1d2b51fdbe9e"
integrity sha512-TyWI8G99GX9GjE54cJ+RrNMcIFBfwMPxc3XTFiAYGN4s10hWROGtOg7+O6u6LE3mNkyld7RSLE6nrKBvTfcs3g==
listr2@^4.0.1:
version "4.0.5"
resolved "https://registry.yarnpkg.com/listr2/-/listr2-4.0.5.tgz#9dcc50221583e8b4c71c43f9c7dfd0ef546b75d5"
integrity sha512-juGHV1doQdpNT3GSTs9IUN43QJb7KHdF9uqg7Vufs/tG9VTzpFphqF4pm/ICdAABGQxsyNn9CiYA3StkI6jpwA==
dependencies:
cli-truncate "^2.1.0"
colorette "^2.0.16"
log-update "^4.0.0"
p-map "^4.0.0"
rfdc "^1.3.0"
rxjs "^7.5.1"
rxjs "^7.5.5"
through "^2.3.8"
wrap-ansi "^7.0.0"
@ -1514,6 +1496,13 @@ minimatch@^3.0.0, minimatch@^3.0.4:
dependencies:
brace-expansion "^1.1.7"
minimatch@^3.1.2:
version "3.1.2"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b"
integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==
dependencies:
brace-expansion "^1.1.7"
minimist@^1.2.5:
version "1.2.5"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602"
@ -1547,13 +1536,13 @@ node-fetch@*:
data-uri-to-buffer "^3.0.1"
fetch-blob "^3.1.2"
node-fetch@^3.1.1:
version "3.1.1"
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-3.1.1.tgz#d0d9607e455b3087e3092b821b5b1f1ebf4c2147"
integrity sha512-SMk+vKgU77PYotRdWzqZGTZeuFKlsJ0hu4KPviQKkfY+N3vn2MIzr0rvpnYpR8MtB3IEuhlEcuOLbGvLRlA+yg==
node-fetch@^3.2.4:
version "3.2.4"
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-3.2.4.tgz#3fbca2d8838111048232de54cb532bd3cf134947"
integrity sha512-WvYJRN7mMyOLurFR2YpysQGuwYrJN+qrrpHjJDuKMcSPdfFccRUla/kng2mz6HWSBxJcqPbvatS6Gb4RhOzCJw==
dependencies:
data-uri-to-buffer "^4.0.0"
fetch-blob "^3.1.3"
fetch-blob "^3.1.4"
formdata-polyfill "^4.0.10"
node-releases@^2.0.1:
@ -1573,7 +1562,7 @@ npm-run-path@^4.0.1:
dependencies:
path-key "^3.0.0"
object-inspect@^1.11.1:
object-inspect@^1.12.0:
version "1.12.0"
resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.0.tgz#6e2c120e868fd1fd18cb4f18c31741d0d6e776f0"
integrity sha512-Ho2z80bVIvJloH+YzRmpZVQe87+qASmBUKZDWgx9cu+KDrX2ZDH/3tMy+gXbZETVGs2M8YdxObOh7XAtim9Y0g==
@ -1668,6 +1657,11 @@ picomatch@^2.2.3:
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.0.tgz#f1f061de8f6a4bf022892e2d128234fb98302972"
integrity sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==
pidtree@^0.5.0:
version "0.5.0"
resolved "https://registry.yarnpkg.com/pidtree/-/pidtree-0.5.0.tgz#ad5fbc1de78b8a5f99d6fbdd4f6e4eee21d1aca1"
integrity sha512-9nxspIM7OpZuhBxPg73Zvyq7j1QMPMPsGKTqRc2XOaFQauDvoNz9fM1Wdkjmeo7l9GXOZiRs97sPkuayl39wjA==
prelude-ls@^1.2.1:
version "1.2.1"
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396"
@ -1695,17 +1689,17 @@ prettier-plugin-organize-imports@^2.3.4:
resolved "https://registry.yarnpkg.com/prettier-plugin-organize-imports/-/prettier-plugin-organize-imports-2.3.4.tgz#65473861ae5ab7960439fff270a2258558fbe9ba"
integrity sha512-R8o23sf5iVL/U71h9SFUdhdOEPsi3nm42FD/oDYIZ2PQa4TNWWuWecxln6jlIQzpZTDMUeO1NicJP6lLn2TtRw==
prettier-plugin-packagejson@^2.2.15:
version "2.2.15"
resolved "https://registry.yarnpkg.com/prettier-plugin-packagejson/-/prettier-plugin-packagejson-2.2.15.tgz#4d7ebdc0c9336c8bf07d5ca86980c3f2a8279689"
integrity sha512-r3WKxw0ALyD3gr3RlIFK3o7mUejCVkqwVKtUuPQaB3+aNiZYKxmad+GpZ6WFWTm6Zq2jX0wvSdlkGccQ2pEnCg==
prettier-plugin-packagejson@^2.2.18:
version "2.2.18"
resolved "https://registry.yarnpkg.com/prettier-plugin-packagejson/-/prettier-plugin-packagejson-2.2.18.tgz#c5dc50208d7328b10011daea775fd358d43cab1b"
integrity sha512-iBjQ3IY6IayFrQHhXvg+YvKprPUUiIJ04Vr9+EbeQPfwGajznArIqrN33c5bi4JcIvmLHGROIMOm9aYakJj/CA==
dependencies:
sort-package-json "1.53.1"
sort-package-json "1.57.0"
prettier@^2.5.0:
version "2.5.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.5.1.tgz#fff75fa9d519c54cf0fce328c1017d94546bc56a"
integrity sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg==
prettier@^2.6.2:
version "2.6.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.6.2.tgz#e26d71a18a74c3d0f0597f55f01fb6c06c206032"
integrity sha512-PkUpF+qoXTqhOeWL9fu7As8LXsIUZ1WYaJiY/a7McAQzxjk82OF0tibkFXVCDImZtWxbvojFjerkiLb0/q8mew==
progress@^2.0.3:
version "2.0.3"
@ -1770,10 +1764,10 @@ run-parallel@^1.1.9:
resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.1.10.tgz#60a51b2ae836636c81377df16cb107351bcd13ef"
integrity sha512-zb/1OuZ6flOlH6tQyMPUrE3x3Ulxjlo9WIVXR4yVYi4H9UXQaeIsPbLn2R3O3vQCnDKkAl2qHiuocKKX4Tz/Sw==
rxjs@^7.5.1:
version "7.5.2"
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.5.2.tgz#11e4a3a1dfad85dbf7fb6e33cbba17668497490b"
integrity sha512-PwDt186XaL3QN5qXj/H9DGyHhP3/RYYgZZwqBv9Tv8rsAaiwFH1IsJJlcgD37J7UW5a6O67qX0KWKS3/pu0m4w==
rxjs@^7.5.5:
version "7.5.5"
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.5.5.tgz#2ebad89af0f560f460ad5cc4213219e1f7dd4e9f"
integrity sha512-sy+H0pQofO95VDmFLzyaw9xNJU4KTRSwQIGM6+iG3SypAtCiLDzpeG8sJrNCWn2Up9km+KhkvTdbkrdy+yzZdw==
dependencies:
tslib "^2.1.0"
@ -1856,10 +1850,10 @@ sort-object-keys@^1.1.3:
resolved "https://registry.yarnpkg.com/sort-object-keys/-/sort-object-keys-1.1.3.tgz#bff833fe85cab147b34742e45863453c1e190b45"
integrity sha512-855pvK+VkU7PaKYPc+Jjnmt4EzejQHyhhF33q31qG8x7maDzkeFhAAThdCYay11CISO+qAMwjOBP+fPZe0IPyg==
sort-package-json@1.53.1:
version "1.53.1"
resolved "https://registry.yarnpkg.com/sort-package-json/-/sort-package-json-1.53.1.tgz#8f2672b06314cf04d9a6bcefc75a5f38d600b811"
integrity sha512-ltLORrQuuPMpy23YkWCA8fO7zBOxM4P1j9LcGxci4K2Fk8jmSyCA/ATU6CFyy8qR2HQRx4RBYWzoi78FU/Anuw==
sort-package-json@1.57.0:
version "1.57.0"
resolved "https://registry.yarnpkg.com/sort-package-json/-/sort-package-json-1.57.0.tgz#e95fb44af8ede0bb6147e3f39258102d4bb23fc4"
integrity sha512-FYsjYn2dHTRb41wqnv+uEqCUvBpK3jZcTp9rbz2qDTmel7Pmdtf+i2rLaaPMRZeSVM60V3Se31GyWFpmKs4Q5Q==
dependencies:
detect-indent "^6.0.0"
detect-newline "3.1.0"
@ -2046,10 +2040,10 @@ typescript@^3.2.4:
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.10.tgz#70f3910ac7a51ed6bef79da7800690b19bf778b8"
integrity sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==
typescript@^4.5.4:
version "4.5.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.4.tgz#a17d3a0263bf5c8723b9c52f43c5084edf13c2e8"
integrity sha512-VgYs2A2QIRuGphtzFV7aQJduJ2gyfTljngLzjpfW9FoYZF6xuw1W0vW9ghCKLfcWrCFxK81CSGRAvS1pn4fIUg==
typescript@^4.6.4:
version "4.6.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.6.4.tgz#caa78bbc3a59e6a5c510d35703f6a09877ce45e9"
integrity sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg==
uglify-js@^3.1.4:
version "3.14.2"