From 52b456827de40be67de9598d08ec91d0d5e2cadc Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 17 Oct 2021 13:42:40 -0400 Subject: [PATCH 01/80] Get unread count (#34) * Adding GetUnreadCount * v0.13.4-rc.1 --- package.json | 2 +- src/http.ts | 9 +++++++++ src/interfaces/api/person.ts | 10 ++++++++++ src/interfaces/others.ts | 1 + src/websocket.ts | 7 +++++++ 5 files changed, 28 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 262a81a..ffc11ba 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.13.1-rc.1", + "version": "0.13.4-rc.1", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", diff --git a/src/http.ts b/src/http.ts index 531bd1c..cc934b5 100644 --- a/src/http.ts +++ b/src/http.ts @@ -109,6 +109,8 @@ import { BlockPersonResponse, GetReportCount, GetReportCountResponse, + GetUnreadCount, + GetUnreadCountResponse, } from './interfaces/api/person'; import { VERSION } from './interfaces/others'; @@ -637,6 +639,13 @@ export class LemmyHttp { return this.wrapper(HttpType.Get, '/user/report_count', form); } + /** + * Get your unread counts + */ + async getUnreadCount(form: GetUnreadCount): Promise { + return this.wrapper(HttpType.Get, '/user/unread_count', form); + } + /** * Add an admin to your site. */ diff --git a/src/interfaces/api/person.ts b/src/interfaces/api/person.ts index 5f27730..c093b8c 100644 --- a/src/interfaces/api/person.ts +++ b/src/interfaces/api/person.ts @@ -275,6 +275,16 @@ export interface GetReportCountResponse { post_reports: number; } +export interface GetUnreadCount { + auth: string; +} + +export interface GetUnreadCountResponse { + replies: number; + mentions: number; + private_messages: number; +} + export interface BlockPerson { person_id: number; block: boolean; diff --git a/src/interfaces/others.ts b/src/interfaces/others.ts index 4af1fe6..6539fe4 100644 --- a/src/interfaces/others.ts +++ b/src/interfaces/others.ts @@ -74,6 +74,7 @@ export enum UserOperation { ResolvePostReport, ListPostReports, GetReportCount, + GetUnreadCount, } /** diff --git a/src/websocket.ts b/src/websocket.ts index 829cefe..0e405a7 100644 --- a/src/websocket.ts +++ b/src/websocket.ts @@ -73,6 +73,7 @@ import { ChangePassword, BlockPerson, GetReportCount, + GetUnreadCount, } from './interfaces/api/person'; import { UserJoin, PostJoin, CommunityJoin } from './interfaces/api/websocket'; import { UserOperation } from './interfaces/others'; @@ -508,6 +509,12 @@ export class LemmyWebsocket { return wrapper(UserOperation.GetReportCount, form); } + /** + * Get your unread counts + */ + getUnreadCount(form: GetUnreadCount) { + return wrapper(UserOperation.GetUnreadCount, form); + } /** * Delete your account. */ From edcd37d50764e2e14ae6bbf7becbef7c521a4340 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 12 Nov 2021 11:38:16 -0500 Subject: [PATCH 02/80] v0.14.0-rc.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ffc11ba..998b97b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.13.4-rc.1", + "version": "0.14.0-rc.1", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From 5e4ff291c5fe0ac977a194bd7b1e10a182300a68 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 6 Dec 2021 14:44:10 -0500 Subject: [PATCH 03/80] Upgrade deps 2 (#39) * Upgrade deps * Running prettier. --- .eslintrc.json | 15 +- .prettierrc.js | 4 +- package.json | 27 +- src/http.ts | 247 ++-- src/index.ts | 6 +- src/interfaces/api/comment.ts | 2 +- src/interfaces/api/community.ts | 2 +- src/interfaces/api/index.ts | 12 +- src/interfaces/api/person.ts | 6 +- src/interfaces/api/post.ts | 6 +- src/interfaces/api/site.ts | 14 +- src/interfaces/index.ts | 10 +- src/interfaces/others.ts | 42 +- src/interfaces/views.ts | 14 +- src/websocket.ts | 60 +- yarn.lock | 2124 ++++++++++++------------------- 16 files changed, 1044 insertions(+), 1547 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index aec9f66..a68b614 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -4,11 +4,11 @@ "browser": true }, "plugins": [ - "jane" + "@typescript-eslint" ], "extends": [ - "plugin:jane/recommended", - "plugin:jane/typescript" + "eslint:recommended", + "plugin:@typescript-eslint/recommended" ], "parser": "@typescript-eslint/parser", "parserOptions": { @@ -16,14 +16,11 @@ "warnOnUnsupportedTypeScriptVersion": false }, "rules": { - "@typescript-eslint/camelcase": 0, - "@typescript-eslint/member-delimiter-style": 0, "@typescript-eslint/no-empty-interface": 0, + "@typescript-eslint/no-empty-function": 0, + "@typescript-eslint/ban-ts-comment": 0, "@typescript-eslint/no-explicit-any": 0, - "@typescript-eslint/no-this-alias": 0, - "@typescript-eslint/no-unused-vars": 0, - "@typescript-eslint/no-use-before-define": 0, - "@typescript-eslint/no-useless-constructor": 0, + "@typescript-eslint/explicit-module-boundary-types": 0, "arrow-body-style": 0, "curly": 0, "eol-last": 0, diff --git a/.prettierrc.js b/.prettierrc.js index 5983e1a..8d36af3 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -1,4 +1,4 @@ -module.exports = Object.assign(require('eslint-plugin-jane/prettier-ts'), { - arrowParens: 'avoid', +module.exports = Object.assign(require("eslint-plugin-prettier"), { + arrowParens: "avoid", semi: true, }); diff --git a/package.json b/package.json index 998b97b..42f97f9 100644 --- a/package.json +++ b/package.json @@ -16,18 +16,23 @@ }, "repository": "https://github.com/LemmyNet/lemmy-js-client", "devDependencies": { - "@types/node": "^16.10.2", + "@types/node": "^16.11.11", "@types/node-fetch": "^3.0.3", - "eslint": "^7.32.0", - "eslint-plugin-jane": "^9.0.6", - "husky": "^7.0.2", - "lint-staged": "^11.1.2", - "node-fetch": "^3.0.0", - "prettier": "^2.4.1", + "@typescript-eslint/eslint-plugin": "^5.5.0", + "@typescript-eslint/parser": "^5.5.0", + "eslint": "^8.3.0", + "eslint-plugin-prettier": "^4.0.0", + "husky": "^7.0.4", + "lint-staged": "^12.1.2", + "node-fetch": "^3.1.0", + "prettier": "^2.5.0", + "prettier-plugin-import-sort": "^0.0.7", + "prettier-plugin-organize-imports": "^2.3.4", + "prettier-plugin-packagejson": "^2.2.15", "sortpack": "^2.2.0", "typedoc": "^0.21.6", "typedoc-plugin-sourcefile-url": "^1.0.6", - "typescript": "^4.4.3" + "typescript": "^4.5.2" }, "types": "./dist/index.d.ts", "lint-staged": { @@ -38,5 +43,11 @@ "package.json": [ "sortpack" ] + }, + "importSort": { + ".js, .jsx, .ts, .tsx": { + "style": "module", + "parser": "typescript" + } } } diff --git a/src/http.ts b/src/http.ts index cc934b5..419647b 100644 --- a/src/http.ts +++ b/src/http.ts @@ -1,4 +1,4 @@ -import fetch from 'node-fetch'; +import fetch from "node-fetch"; import { CommentReportResponse, CommentResponse, @@ -15,7 +15,7 @@ import { RemoveComment, ResolveCommentReport, SaveComment, -} from './interfaces/api/comment'; +} from "./interfaces/api/comment"; import { AddModToCommunity, AddModToCommunityResponse, @@ -34,10 +34,49 @@ import { ListCommunitiesResponse, RemoveCommunity, TransferCommunity, -} from './interfaces/api/community'; +} from "./interfaces/api/community"; +import { + AddAdmin, + AddAdminResponse, + BanPerson, + BanPersonResponse, + BlockPerson, + BlockPersonResponse, + ChangePassword, + CreatePrivateMessage, + DeleteAccount, + DeletePrivateMessage, + EditPrivateMessage, + GetCaptchaResponse, + GetPersonDetails, + GetPersonDetailsResponse, + GetPersonMentions, + GetPersonMentionsResponse, + GetPrivateMessages, + GetReplies, + GetRepliesResponse, + GetReportCount, + GetReportCountResponse, + GetUnreadCount, + GetUnreadCountResponse, + Login, + LoginResponse, + MarkAllAsRead, + MarkPersonMentionAsRead, + MarkPrivateMessageAsRead, + PasswordChange, + PasswordReset, + PasswordResetResponse, + PersonMentionResponse, + PrivateMessageResponse, + PrivateMessagesResponse, + Register, + SaveUserSettings, +} from "./interfaces/api/person"; import { CreatePost, CreatePostLike, + CreatePostReport, DeletePost, EditPost, GetPost, @@ -46,17 +85,16 @@ import { GetPostsResponse, GetSiteMetadata, GetSiteMetadataResponse, + ListPostReports, + ListPostReportsResponse, LockPost, - CreatePostReport, PostReportResponse, PostResponse, RemovePost, + ResolvePostReport, SavePost, StickyPost, - ResolvePostReport, - ListPostReports, - ListPostReportsResponse, -} from './interfaces/api/post'; +} from "./interfaces/api/post"; import { CreateSite, EditSite, @@ -73,52 +111,13 @@ import { SearchResponse, SiteResponse, TransferSite, -} from './interfaces/api/site'; -import { - AddAdmin, - AddAdminResponse, - BanPerson, - BanPersonResponse, - CreatePrivateMessage, - DeleteAccount, - DeletePrivateMessage, - EditPrivateMessage, - GetCaptchaResponse, - GetPrivateMessages, - GetReplies, - GetRepliesResponse, - GetPersonDetails, - GetPersonDetailsResponse, - GetPersonMentions, - GetPersonMentionsResponse, - Login, - LoginResponse, - MarkAllAsRead, - MarkPrivateMessageAsRead, - MarkPersonMentionAsRead, - PasswordChange, - PasswordReset, - PasswordResetResponse, - PrivateMessageResponse, - PrivateMessagesResponse, - Register, - SaveUserSettings, - ChangePassword, - PersonMentionResponse, - BlockPerson, - BlockPersonResponse, - GetReportCount, - GetReportCountResponse, - GetUnreadCount, - GetUnreadCountResponse, -} from './interfaces/api/person'; - -import { VERSION } from './interfaces/others'; +} from "./interfaces/api/site"; +import { VERSION } from "./interfaces/others"; enum HttpType { - Get = 'GET', - Post = 'POST', - Put = 'PUT', + Get = "GET", + Post = "POST", + Put = "PUT", } /** @@ -145,84 +144,84 @@ export class LemmyHttp { * Gets the site, and your user data. */ async getSite(form: GetSite): Promise { - return this.wrapper(HttpType.Get, '/site', form); + return this.wrapper(HttpType.Get, "/site", form); } /** * Create your site. */ async createSite(form: CreateSite): Promise { - return this.wrapper(HttpType.Post, '/site', form); + return this.wrapper(HttpType.Post, "/site", form); } /** * Edit your site. */ async editSite(form: EditSite): Promise { - return this.wrapper(HttpType.Put, '/site', form); + return this.wrapper(HttpType.Put, "/site", form); } /** * Transfer your site to another user. */ async transferSite(form: TransferSite): Promise { - return this.wrapper(HttpType.Post, '/site/transfer', form); + return this.wrapper(HttpType.Post, "/site/transfer", form); } /** * Get your site configuration. */ async getSiteConfig(form: GetSiteConfig): Promise { - return this.wrapper(HttpType.Get, '/site/config', form); + return this.wrapper(HttpType.Get, "/site/config", form); } /** * Save your site config. */ async saveSiteConfig(form: SaveSiteConfig): Promise { - return this.wrapper(HttpType.Put, '/site/config', form); + return this.wrapper(HttpType.Put, "/site/config", form); } /** * Get the modlog. */ async getModlog(form: GetModlog): Promise { - return this.wrapper(HttpType.Get, '/modlog', form); + return this.wrapper(HttpType.Get, "/modlog", form); } /** * Search lemmy. */ async search(form: Search): Promise { - return this.wrapper(HttpType.Get, '/search', form); + return this.wrapper(HttpType.Get, "/search", form); } /** * Fetch a non-local / federated object. */ async resolveObject(form: ResolveObject): Promise { - return this.wrapper(HttpType.Get, '/resolve_object', form); + return this.wrapper(HttpType.Get, "/resolve_object", form); } /** * Create a new community. */ async createCommunity(form: CreateCommunity): Promise { - return this.wrapper(HttpType.Post, '/community', form); + return this.wrapper(HttpType.Post, "/community", form); } /** * Get / fetch a community. */ async getCommunity(form: GetCommunity): Promise { - return this.wrapper(HttpType.Get, '/community', form); + return this.wrapper(HttpType.Get, "/community", form); } /** * Edit a community. */ async editCommunity(form: EditCommunity): Promise { - return this.wrapper(HttpType.Put, '/community', form); + return this.wrapper(HttpType.Put, "/community", form); } /** @@ -231,35 +230,35 @@ export class LemmyHttp { async listCommunities( form: ListCommunities ): Promise { - return this.wrapper(HttpType.Get, '/community/list', form); + return this.wrapper(HttpType.Get, "/community/list", form); } /** * Follow / subscribe to a community. */ async followCommunity(form: FollowCommunity): Promise { - return this.wrapper(HttpType.Post, '/community/follow', form); + return this.wrapper(HttpType.Post, "/community/follow", form); } /** * Block a community. */ async blockCommunity(form: BlockCommunity): Promise { - return this.wrapper(HttpType.Post, '/community/block', form); + return this.wrapper(HttpType.Post, "/community/block", form); } /** * Delete a community. */ async deleteCommunity(form: DeleteCommunity): Promise { - return this.wrapper(HttpType.Post, '/community/delete', form); + return this.wrapper(HttpType.Post, "/community/delete", form); } /** * A moderator remove for a community. */ async removeCommunity(form: RemoveCommunity): Promise { - return this.wrapper(HttpType.Post, '/community/remove', form); + return this.wrapper(HttpType.Post, "/community/remove", form); } /** @@ -268,7 +267,7 @@ export class LemmyHttp { async transferCommunity( form: TransferCommunity ): Promise { - return this.wrapper(HttpType.Post, '/community/transfer', form); + return this.wrapper(HttpType.Post, "/community/transfer", form); } /** @@ -277,7 +276,7 @@ export class LemmyHttp { async banFromCommunity( form: BanFromCommunity ): Promise { - return this.wrapper(HttpType.Post, '/community/ban_user', form); + return this.wrapper(HttpType.Post, "/community/ban_user", form); } /** @@ -286,84 +285,84 @@ export class LemmyHttp { async addModToCommunity( form: AddModToCommunity ): Promise { - return this.wrapper(HttpType.Post, '/community/mod', form); + return this.wrapper(HttpType.Post, "/community/mod", form); } /** * Create a post. */ async createPost(form: CreatePost): Promise { - return this.wrapper(HttpType.Post, '/post', form); + return this.wrapper(HttpType.Post, "/post", form); } /** * Get / fetch a post. */ async getPost(form: GetPost): Promise { - return this.wrapper(HttpType.Get, '/post', form); + return this.wrapper(HttpType.Get, "/post", form); } /** * Edit a post. */ async editPost(form: EditPost): Promise { - return this.wrapper(HttpType.Put, '/post', form); + return this.wrapper(HttpType.Put, "/post", form); } /** * Delete a post. */ async deletePost(form: DeletePost): Promise { - return this.wrapper(HttpType.Post, '/post/delete', form); + return this.wrapper(HttpType.Post, "/post/delete", form); } /** * A moderator remove for a post. */ async removePost(form: RemovePost): Promise { - return this.wrapper(HttpType.Post, '/post/remove', form); + return this.wrapper(HttpType.Post, "/post/remove", form); } /** * A moderator can lock a post ( IE disable new comments ). */ async lockPost(form: LockPost): Promise { - return this.wrapper(HttpType.Post, '/post/lock', form); + return this.wrapper(HttpType.Post, "/post/lock", form); } /** * A moderator can sticky a post ( IE stick it to the top of a community ). */ async stickyPost(form: StickyPost): Promise { - return this.wrapper(HttpType.Post, '/post/sticky', form); + return this.wrapper(HttpType.Post, "/post/sticky", form); } /** * Get / fetch posts, with various filters. */ async getPosts(form: GetPosts): Promise { - return this.wrapper(HttpType.Get, '/post/list', form); + return this.wrapper(HttpType.Get, "/post/list", form); } /** * Like / vote on a post. */ async likePost(form: CreatePostLike): Promise { - return this.wrapper(HttpType.Post, '/post/like', form); + return this.wrapper(HttpType.Post, "/post/like", form); } /** * Save a post. */ async savePost(form: SavePost): Promise { - return this.wrapper(HttpType.Put, '/post/save', form); + return this.wrapper(HttpType.Put, "/post/save", form); } /** * Report a post. */ async createPostReport(form: CreatePostReport): Promise { - return this.wrapper(HttpType.Post, '/post/report', form); + return this.wrapper(HttpType.Post, "/post/report", form); } /** @@ -372,7 +371,7 @@ export class LemmyHttp { async resolvePostReport( form: ResolvePostReport ): Promise { - return this.wrapper(HttpType.Put, '/post/report/resolve', form); + return this.wrapper(HttpType.Put, "/post/report/resolve", form); } /** @@ -381,7 +380,7 @@ export class LemmyHttp { async listPostReports( form: ListPostReports ): Promise { - return this.wrapper(HttpType.Get, '/post/report/list', form); + return this.wrapper(HttpType.Get, "/post/report/list", form); } /** @@ -390,63 +389,63 @@ export class LemmyHttp { async getSiteMetadata( form: GetSiteMetadata ): Promise { - return this.wrapper(HttpType.Get, '/post/site_metadata', form); + return this.wrapper(HttpType.Get, "/post/site_metadata", form); } /** * Create a comment. */ async createComment(form: CreateComment): Promise { - return this.wrapper(HttpType.Post, '/comment', form); + return this.wrapper(HttpType.Post, "/comment", form); } /** * Edit a comment. */ async editComment(form: EditComment): Promise { - return this.wrapper(HttpType.Put, '/comment', form); + return this.wrapper(HttpType.Put, "/comment", form); } /** * Delete a comment. */ async deleteComment(form: DeleteComment): Promise { - return this.wrapper(HttpType.Post, '/comment/delete', form); + return this.wrapper(HttpType.Post, "/comment/delete", form); } /** * A moderator remove for a comment. */ async removeComment(form: RemoveComment): Promise { - return this.wrapper(HttpType.Post, '/comment/remove', form); + return this.wrapper(HttpType.Post, "/comment/remove", form); } /** * Mark a comment as read. */ async markCommentAsRead(form: MarkCommentAsRead): Promise { - return this.wrapper(HttpType.Post, '/comment/mark_as_read', form); + return this.wrapper(HttpType.Post, "/comment/mark_as_read", form); } /** * Like / vote on a comment. */ async likeComment(form: CreateCommentLike): Promise { - return this.wrapper(HttpType.Post, '/comment/like', form); + return this.wrapper(HttpType.Post, "/comment/like", form); } /** * Save a comment. */ async saveComment(form: SaveComment): Promise { - return this.wrapper(HttpType.Put, '/comment/save', form); + return this.wrapper(HttpType.Put, "/comment/save", form); } /** * Get / fetch comments. */ async getComments(form: GetComments): Promise { - return this.wrapper(HttpType.Get, '/comment/list', form); + return this.wrapper(HttpType.Get, "/comment/list", form); } /** @@ -455,7 +454,7 @@ export class LemmyHttp { async createCommentReport( form: CreateCommentReport ): Promise { - return this.wrapper(HttpType.Post, '/comment/report', form); + return this.wrapper(HttpType.Post, "/comment/report", form); } /** @@ -464,7 +463,7 @@ export class LemmyHttp { async resolveCommentReport( form: ResolveCommentReport ): Promise { - return this.wrapper(HttpType.Put, '/comment/report/resolve', form); + return this.wrapper(HttpType.Put, "/comment/report/resolve", form); } /** @@ -473,7 +472,7 @@ export class LemmyHttp { async listCommentReports( form: ListCommentReports ): Promise { - return this.wrapper(HttpType.Get, '/comment/report/list', form); + return this.wrapper(HttpType.Get, "/comment/report/list", form); } /** @@ -482,7 +481,7 @@ export class LemmyHttp { async getPrivateMessages( form: GetPrivateMessages ): Promise { - return this.wrapper(HttpType.Get, '/private_message/list', form); + return this.wrapper(HttpType.Get, "/private_message/list", form); } /** @@ -491,7 +490,7 @@ export class LemmyHttp { async createPrivateMessage( form: CreatePrivateMessage ): Promise { - return this.wrapper(HttpType.Post, '/private_message', form); + return this.wrapper(HttpType.Post, "/private_message", form); } /** @@ -500,7 +499,7 @@ export class LemmyHttp { async editPrivateMessage( form: EditPrivateMessage ): Promise { - return this.wrapper(HttpType.Put, '/private_message', form); + return this.wrapper(HttpType.Put, "/private_message", form); } /** @@ -509,7 +508,7 @@ export class LemmyHttp { async deletePrivateMessage( form: DeletePrivateMessage ): Promise { - return this.wrapper(HttpType.Post, '/private_message/delete', form); + return this.wrapper(HttpType.Post, "/private_message/delete", form); } /** @@ -518,21 +517,21 @@ export class LemmyHttp { async markPrivateMessageAsRead( form: MarkPrivateMessageAsRead ): Promise { - return this.wrapper(HttpType.Post, '/private_message/mark_as_read', form); + return this.wrapper(HttpType.Post, "/private_message/mark_as_read", form); } /** * Register a new user. */ async register(form: Register): Promise { - return this.wrapper(HttpType.Post, '/user/register', form); + return this.wrapper(HttpType.Post, "/user/register", form); } /** * Log into lemmy. */ async login(form: Login): Promise { - return this.wrapper(HttpType.Post, '/user/login', form); + return this.wrapper(HttpType.Post, "/user/login", form); } /** @@ -541,7 +540,7 @@ export class LemmyHttp { async getPersonDetails( form: GetPersonDetails ): Promise { - return this.wrapper(HttpType.Get, '/user', form); + return this.wrapper(HttpType.Get, "/user", form); } /** @@ -550,7 +549,7 @@ export class LemmyHttp { async getPersonMentions( form: GetPersonMentions ): Promise { - return this.wrapper(HttpType.Get, '/user/mention', form); + return this.wrapper(HttpType.Get, "/user/mention", form); } /** @@ -559,98 +558,98 @@ export class LemmyHttp { async markPersonMentionAsRead( form: MarkPersonMentionAsRead ): Promise { - return this.wrapper(HttpType.Post, '/user/mention/mark_as_read', form); + return this.wrapper(HttpType.Post, "/user/mention/mark_as_read", form); } /** * Get comment replies. */ async getReplies(form: GetReplies): Promise { - return this.wrapper(HttpType.Get, '/user/replies', form); + return this.wrapper(HttpType.Get, "/user/replies", form); } /** * Ban a person from your site. */ async banPerson(form: BanPerson): Promise { - return this.wrapper(HttpType.Post, '/user/ban', form); + return this.wrapper(HttpType.Post, "/user/ban", form); } /** * Block a person. */ async blockPerson(form: BlockPerson): Promise { - return this.wrapper(HttpType.Post, '/user/block', form); + return this.wrapper(HttpType.Post, "/user/block", form); } /** * Fetch a Captcha. */ async getCaptcha(): Promise { - return this.wrapper(HttpType.Get, '/user/get_captcha', {}); + return this.wrapper(HttpType.Get, "/user/get_captcha", {}); } /** * Delete your account. */ async deleteAccount(form: DeleteAccount): Promise { - return this.wrapper(HttpType.Post, '/user/delete_account', form); + return this.wrapper(HttpType.Post, "/user/delete_account", form); } /** * Reset your password. */ async passwordReset(form: PasswordReset): Promise { - return this.wrapper(HttpType.Post, '/user/password_reset', form); + return this.wrapper(HttpType.Post, "/user/password_reset", form); } /** * Change your password from an email / token based reset. */ async passwordChange(form: PasswordChange): Promise { - return this.wrapper(HttpType.Post, '/user/password_change', form); + return this.wrapper(HttpType.Post, "/user/password_change", form); } /** * Mark all replies as read. */ async markAllAsRead(form: MarkAllAsRead): Promise { - return this.wrapper(HttpType.Post, '/user/mark_all_as_read', form); + return this.wrapper(HttpType.Post, "/user/mark_all_as_read", form); } /** * Save your user settings. */ async saveUserSettings(form: SaveUserSettings): Promise { - return this.wrapper(HttpType.Put, '/user/save_user_settings', form); + return this.wrapper(HttpType.Put, "/user/save_user_settings", form); } /** * Change your user password. */ async changePassword(form: ChangePassword): Promise { - return this.wrapper(HttpType.Put, '/user/change_password', form); + return this.wrapper(HttpType.Put, "/user/change_password", form); } /** * Get counts for your reports */ async getReportCount(form: GetReportCount): Promise { - return this.wrapper(HttpType.Get, '/user/report_count', form); + return this.wrapper(HttpType.Get, "/user/report_count", form); } /** * Get your unread counts */ async getUnreadCount(form: GetUnreadCount): Promise { - return this.wrapper(HttpType.Get, '/user/unread_count', form); + return this.wrapper(HttpType.Get, "/user/unread_count", form); } /** * Add an admin to your site. */ async addAdmin(form: AddAdmin): Promise { - return this.wrapper(HttpType.Post, '/admin/add', form); + return this.wrapper(HttpType.Post, "/admin/add", form); } private buildFullUrl(endpoint: string): string { @@ -665,14 +664,14 @@ export class LemmyHttp { if (type_ == HttpType.Get) { let getUrl = `${this.buildFullUrl(endpoint)}?${encodeGetParams(form)}`; return fetch(getUrl, { - method: 'GET', + method: "GET", headers: this.headers, }).then(d => d.json() as Promise); } else { return fetch(this.buildFullUrl(endpoint), { method: type_, headers: { - 'Content-Type': 'application/json', + "Content-Type": "application/json", ...this.headers, }, body: JSON.stringify(form), @@ -683,6 +682,6 @@ export class LemmyHttp { function encodeGetParams(p: any): string { return Object.entries(p) - .map(kv => kv.map(encodeURIComponent).join('=')) - .join('&'); + .map(kv => kv.map(encodeURIComponent).join("=")) + .join("&"); } diff --git a/src/index.ts b/src/index.ts index c2335ff..dc09883 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,3 @@ -export * from './interfaces'; -export * from './http'; -export * from './websocket'; +export * from "./http"; +export * from "./interfaces"; +export * from "./websocket"; diff --git a/src/interfaces/api/comment.ts b/src/interfaces/api/comment.ts index 2a5c77e..11f63f9 100644 --- a/src/interfaces/api/comment.ts +++ b/src/interfaces/api/comment.ts @@ -1,4 +1,4 @@ -import { CommentReportView, CommentView } from '../views'; +import { CommentReportView, CommentView } from "../views"; export interface CreateComment { content: string; diff --git a/src/interfaces/api/community.ts b/src/interfaces/api/community.ts index 90dedac..e7d6a37 100644 --- a/src/interfaces/api/community.ts +++ b/src/interfaces/api/community.ts @@ -2,7 +2,7 @@ import { CommunityModeratorView, CommunityView, PersonViewSafe, -} from '../views'; +} from "../views"; /** * You can use either `id` or `name` as an id. diff --git a/src/interfaces/api/index.ts b/src/interfaces/api/index.ts index 08342a9..81cff4d 100644 --- a/src/interfaces/api/index.ts +++ b/src/interfaces/api/index.ts @@ -1,6 +1,6 @@ -export * from './comment'; -export * from './community'; -export * from './post'; -export * from './site'; -export * from './person'; -export * from './websocket'; +export * from "./comment"; +export * from "./community"; +export * from "./person"; +export * from "./post"; +export * from "./site"; +export * from "./websocket"; diff --git a/src/interfaces/api/person.ts b/src/interfaces/api/person.ts index c093b8c..89c177c 100644 --- a/src/interfaces/api/person.ts +++ b/src/interfaces/api/person.ts @@ -1,11 +1,11 @@ import { CommentView, CommunityModeratorView, - PostView, - PrivateMessageView, PersonMentionView, PersonViewSafe, -} from '../views'; + PostView, + PrivateMessageView, +} from "../views"; export interface Login { username_or_email: string; diff --git a/src/interfaces/api/post.ts b/src/interfaces/api/post.ts index be05d2d..651bed4 100644 --- a/src/interfaces/api/post.ts +++ b/src/interfaces/api/post.ts @@ -1,11 +1,11 @@ -import { SiteMetadata } from '..'; +import { SiteMetadata } from ".."; import { - CommunityView, CommentView, CommunityModeratorView, + CommunityView, PostReportView, PostView, -} from '../views'; +} from "../views"; export interface CreatePost { name: string; diff --git a/src/interfaces/api/site.ts b/src/interfaces/api/site.ts index aaa3c72..d03d2cc 100644 --- a/src/interfaces/api/site.ts +++ b/src/interfaces/api/site.ts @@ -1,15 +1,11 @@ import { + CommentView, CommunityBlockView, CommunityFollowerView, CommunityModeratorView, - LocalUserSettingsView, - PersonBlockView, -} from '../views'; -import { - CommentView, CommunityView, + LocalUserSettingsView, ModAddCommunityView, - ModTransferCommunityView, ModAddView, ModBanFromCommunityView, ModBanView, @@ -18,10 +14,12 @@ import { ModRemoveCommunityView, ModRemovePostView, ModStickyPostView, + ModTransferCommunityView, + PersonBlockView, + PersonViewSafe, PostView, SiteView, - PersonViewSafe, -} from '../views'; +} from "../views"; /** * Search lemmy for different types of data. diff --git a/src/interfaces/index.ts b/src/interfaces/index.ts index f80473e..e1c190e 100644 --- a/src/interfaces/index.ts +++ b/src/interfaces/index.ts @@ -1,5 +1,5 @@ -export * from './api'; -export * from './aggregates'; -export * from './others'; -export * from './source'; -export * from './views'; +export * from "./aggregates"; +export * from "./api"; +export * from "./others"; +export * from "./source"; +export * from "./views"; diff --git a/src/interfaces/others.ts b/src/interfaces/others.ts index 6539fe4..5941b0b 100644 --- a/src/interfaces/others.ts +++ b/src/interfaces/others.ts @@ -1,4 +1,4 @@ -export const VERSION = 'v3'; +export const VERSION = "v3"; /** * All of the websocket operations available. @@ -84,62 +84,62 @@ export enum SortType { /** * Posts sorted by the most recent comment. */ - Active = 'Active', + Active = "Active", /** * Posts sorted by the published time. */ - Hot = 'Hot', - New = 'New', + Hot = "Hot", + New = "New", /** * The top posts for this last day. */ - TopDay = 'TopDay', + TopDay = "TopDay", /** * The top posts for this last week. */ - TopWeek = 'TopWeek', + TopWeek = "TopWeek", /** * The top posts for this last month. */ - TopMonth = 'TopMonth', + TopMonth = "TopMonth", /** * The top posts for this last year. */ - TopYear = 'TopYear', + TopYear = "TopYear", /** * The top posts of all time. */ - TopAll = 'TopAll', + TopAll = "TopAll", /** * Posts sorted by the most comments. */ - MostComments = 'MostComments', + MostComments = "MostComments", /** * Posts sorted by the newest comments, with no necrobumping. IE a forum sort. */ - NewComments = 'NewComments', + NewComments = "NewComments", } /** * The different listing types for post and comment fetches. */ export enum ListingType { - All = 'All', - Local = 'Local', - Subscribed = 'Subscribed', - Community = 'Community', + All = "All", + Local = "Local", + Subscribed = "Subscribed", + Community = "Community", } /** * Search types for lemmy's search. */ export enum SearchType { - All = 'All', - Comments = 'Comments', - Posts = 'Posts', - Communities = 'Communities', - Users = 'Users', - Url = 'Url', + All = "All", + Comments = "Comments", + Posts = "Posts", + Communities = "Communities", + Users = "Users", + Url = "Url", } /** diff --git a/src/interfaces/views.ts b/src/interfaces/views.ts index 7ffa61e..5b5d791 100644 --- a/src/interfaces/views.ts +++ b/src/interfaces/views.ts @@ -1,17 +1,17 @@ import { CommentAggregates, CommunityAggregates, + PersonAggregates, PostAggregates, SiteAggregates, - PersonAggregates, -} from './aggregates'; +} from "./aggregates"; import { Comment, CommentReport, CommunitySafe, + LocalUserSettings, ModAdd, ModAddCommunity, - ModTransferCommunity, ModBan, ModBanFromCommunity, ModLockPost, @@ -19,14 +19,14 @@ import { ModRemoveCommunity, ModRemovePost, ModStickyPost, + ModTransferCommunity, + PersonMention, + PersonSafe, Post, PostReport, PrivateMessage, Site, - PersonMention, - PersonSafe, - LocalUserSettings, -} from './source'; +} from "./source"; export interface PersonViewSafe { person: PersonSafe; diff --git a/src/websocket.ts b/src/websocket.ts index 0e405a7..26edf3f 100644 --- a/src/websocket.ts +++ b/src/websocket.ts @@ -10,7 +10,7 @@ import { RemoveComment, ResolveCommentReport, SaveComment, -} from './interfaces/api/comment'; +} from "./interfaces/api/comment"; import { AddModToCommunity, BanFromCommunity, @@ -23,7 +23,31 @@ import { ListCommunities, RemoveCommunity, TransferCommunity, -} from './interfaces/api/community'; +} from "./interfaces/api/community"; +import { + AddAdmin, + BanPerson, + BlockPerson, + ChangePassword, + CreatePrivateMessage, + DeleteAccount, + DeletePrivateMessage, + EditPrivateMessage, + GetPersonDetails, + GetPersonMentions, + GetPrivateMessages, + GetReplies, + GetReportCount, + GetUnreadCount, + Login, + MarkAllAsRead, + MarkPersonMentionAsRead, + MarkPrivateMessageAsRead, + PasswordChange, + PasswordReset, + Register, + SaveUserSettings, +} from "./interfaces/api/person"; import { CreatePost, CreatePostLike, @@ -39,7 +63,7 @@ import { ResolvePostReport, SavePost, StickyPost, -} from './interfaces/api/post'; +} from "./interfaces/api/post"; import { CreateSite, EditSite, @@ -50,33 +74,9 @@ import { SaveSiteConfig, Search, TransferSite, -} from './interfaces/api/site'; -import { - AddAdmin, - BanPerson, - CreatePrivateMessage, - DeleteAccount, - DeletePrivateMessage, - EditPrivateMessage, - GetPrivateMessages, - GetReplies, - GetPersonDetails, - GetPersonMentions, - Login, - MarkAllAsRead, - MarkPrivateMessageAsRead, - MarkPersonMentionAsRead, - PasswordChange, - PasswordReset, - Register, - SaveUserSettings, - ChangePassword, - BlockPerson, - GetReportCount, - GetUnreadCount, -} from './interfaces/api/person'; -import { UserJoin, PostJoin, CommunityJoin } from './interfaces/api/websocket'; -import { UserOperation } from './interfaces/others'; +} from "./interfaces/api/site"; +import { CommunityJoin, PostJoin, UserJoin } from "./interfaces/api/websocket"; +import { UserOperation } from "./interfaces/others"; /** * Helps build lemmy websocket message requests, that you can use in your Websocket sends. diff --git a/yarn.lock b/yarn.lock index c1b443d..2e60d6e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,140 +2,233 @@ # yarn lockfile v1 -"@babel/code-frame@7.12.11", "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4", "@babel/code-frame@^7.12.11": - version "7.12.11" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.12.11.tgz#f4ad435aa263db935b8f10f2c552d23fb716a63f" - integrity sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw== +"@babel/code-frame@^7.16.0": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.16.0.tgz#0dfc80309beec8411e65e706461c408b0bb9b431" + integrity sha512-IF4EOMEV+bfYwOmNxGzSnjR2EmQod7f1UXOpZM3l4i4o4QNwzjtJAu/HxdjHq0aYBvdqMuQEY1eg0nqW9ZPORA== dependencies: - "@babel/highlight" "^7.10.4" + "@babel/highlight" "^7.16.0" -"@babel/generator@^7.12.11": - version "7.12.11" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.12.11.tgz#98a7df7b8c358c9a37ab07a24056853016aba3af" - integrity sha512-Ggg6WPOJtSi8yYQvLVjG8F/TlpWDlKx0OpS4Kt+xMQPs5OaGYWy+v1A+1TvxI6sAMGZpKWWoAQ1DaeQbImlItA== +"@babel/compat-data@^7.16.0": + version "7.16.4" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.16.4.tgz#081d6bbc336ec5c2435c6346b2ae1fb98b5ac68e" + integrity sha512-1o/jo7D+kC9ZjHX5v+EHrdjl3PhxMrLSOTGsOdHJ+KL8HCaEK6ehrVL2RS6oHDZp+L7xLirLrPmQtEng769J/Q== + +"@babel/core@^7.2.2": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.16.0.tgz#c4ff44046f5fe310525cc9eb4ef5147f0c5374d4" + integrity sha512-mYZEvshBRHGsIAiyH5PzCFTCfbWfoYbO/jcSdXQSUQu1/pW0xDZAUP7KEc32heqWTAfAHhV9j1vH8Sav7l+JNQ== dependencies: - "@babel/types" "^7.12.11" + "@babel/code-frame" "^7.16.0" + "@babel/generator" "^7.16.0" + "@babel/helper-compilation-targets" "^7.16.0" + "@babel/helper-module-transforms" "^7.16.0" + "@babel/helpers" "^7.16.0" + "@babel/parser" "^7.16.0" + "@babel/template" "^7.16.0" + "@babel/traverse" "^7.16.0" + "@babel/types" "^7.16.0" + convert-source-map "^1.7.0" + debug "^4.1.0" + gensync "^1.0.0-beta.2" + json5 "^2.1.2" + semver "^6.3.0" + source-map "^0.5.0" + +"@babel/generator@^7.16.0": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.16.0.tgz#d40f3d1d5075e62d3500bccb67f3daa8a95265b2" + integrity sha512-RR8hUCfRQn9j9RPKEVXo9LiwoxLPYn6hNZlvUOR8tSnaxlD0p0+la00ZP9/SnRt6HchKr+X0fO2r8vrETiJGew== + dependencies: + "@babel/types" "^7.16.0" jsesc "^2.5.1" source-map "^0.5.0" -"@babel/helper-function-name@^7.12.11": - version "7.12.11" - resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.12.11.tgz#1fd7738aee5dcf53c3ecff24f1da9c511ec47b42" - integrity sha512-AtQKjtYNolKNi6nNNVLQ27CP6D9oFR6bq/HPYSizlzbp7uC1M59XJe8L+0uXjbIaZaUJF99ruHqVGiKXU/7ybA== +"@babel/helper-compilation-targets@^7.16.0": + version "7.16.3" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.16.3.tgz#5b480cd13f68363df6ec4dc8ac8e2da11363cbf0" + integrity sha512-vKsoSQAyBmxS35JUOOt+07cLc6Nk/2ljLIHwmq2/NM6hdioUaqEXq/S+nXvbvXbZkNDlWOymPanJGOc4CBjSJA== dependencies: - "@babel/helper-get-function-arity" "^7.12.10" - "@babel/template" "^7.12.7" - "@babel/types" "^7.12.11" + "@babel/compat-data" "^7.16.0" + "@babel/helper-validator-option" "^7.14.5" + browserslist "^4.17.5" + semver "^6.3.0" -"@babel/helper-get-function-arity@^7.12.10": - version "7.12.10" - resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.12.10.tgz#b158817a3165b5faa2047825dfa61970ddcc16cf" - integrity sha512-mm0n5BPjR06wh9mPQaDdXWDoll/j5UpCAPl1x8fS71GHm7HA6Ua2V4ylG1Ju8lvcTOietbPNNPaSilKj+pj+Ag== +"@babel/helper-function-name@^7.16.0": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.16.0.tgz#b7dd0797d00bbfee4f07e9c4ea5b0e30c8bb1481" + integrity sha512-BZh4mEk1xi2h4HFjWUXRQX5AEx4rvaZxHgax9gcjdLWdkjsY7MKt5p0otjsg5noXw+pB+clMCjw+aEVYADMjog== dependencies: - "@babel/types" "^7.12.10" + "@babel/helper-get-function-arity" "^7.16.0" + "@babel/template" "^7.16.0" + "@babel/types" "^7.16.0" -"@babel/helper-split-export-declaration@^7.12.11": - version "7.12.11" - resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.12.11.tgz#1b4cc424458643c47d37022223da33d76ea4603a" - integrity sha512-LsIVN8j48gHgwzfocYUSkO/hjYAOJqlpJEc7tGXcIm4cubjVUf8LGW6eWRyxEu7gA25q02p0rQUWoCI33HNS5g== +"@babel/helper-get-function-arity@^7.16.0": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.16.0.tgz#0088c7486b29a9cb5d948b1a1de46db66e089cfa" + integrity sha512-ASCquNcywC1NkYh/z7Cgp3w31YW8aojjYIlNg4VeJiHkqyP4AzIvr4qx7pYDb4/s8YcsZWqqOSxgkvjUz1kpDQ== dependencies: - "@babel/types" "^7.12.11" + "@babel/types" "^7.16.0" -"@babel/helper-validator-identifier@^7.10.4", "@babel/helper-validator-identifier@^7.12.11": - version "7.12.11" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.12.11.tgz#c9a1f021917dcb5ccf0d4e453e399022981fc9ed" - integrity sha512-np/lG3uARFybkoHokJUmf1QfEvRVCPbmQeUQpKow5cQ3xWrV9i3rUHodKDJPQfTVX61qKi+UdYk8kik84n7XOw== - -"@babel/highlight@^7.10.4": - version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.10.4.tgz#7d1bdfd65753538fabe6c38596cdb76d9ac60143" - integrity sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA== +"@babel/helper-hoist-variables@^7.16.0": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.16.0.tgz#4c9023c2f1def7e28ff46fc1dbcd36a39beaa81a" + integrity sha512-1AZlpazjUR0EQZQv3sgRNfM9mEVWPK3M6vlalczA+EECcPz3XPh6VplbErL5UoMpChhSck5wAJHthlj1bYpcmg== dependencies: - "@babel/helper-validator-identifier" "^7.10.4" + "@babel/types" "^7.16.0" + +"@babel/helper-member-expression-to-functions@^7.16.0": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.16.0.tgz#29287040efd197c77636ef75188e81da8bccd5a4" + integrity sha512-bsjlBFPuWT6IWhl28EdrQ+gTvSvj5tqVP5Xeftp07SEuz5pLnsXZuDkDD3Rfcxy0IsHmbZ+7B2/9SHzxO0T+sQ== + dependencies: + "@babel/types" "^7.16.0" + +"@babel/helper-module-imports@^7.16.0": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.16.0.tgz#90538e60b672ecf1b448f5f4f5433d37e79a3ec3" + integrity sha512-kkH7sWzKPq0xt3H1n+ghb4xEMP8k0U7XV3kkB+ZGy69kDk2ySFW1qPi06sjKzFY3t1j6XbJSqr4mF9L7CYVyhg== + dependencies: + "@babel/types" "^7.16.0" + +"@babel/helper-module-transforms@^7.16.0": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.16.0.tgz#1c82a8dd4cb34577502ebd2909699b194c3e9bb5" + integrity sha512-My4cr9ATcaBbmaEa8M0dZNA74cfI6gitvUAskgDtAFmAqyFKDSHQo5YstxPbN+lzHl2D9l/YOEFqb2mtUh4gfA== + dependencies: + "@babel/helper-module-imports" "^7.16.0" + "@babel/helper-replace-supers" "^7.16.0" + "@babel/helper-simple-access" "^7.16.0" + "@babel/helper-split-export-declaration" "^7.16.0" + "@babel/helper-validator-identifier" "^7.15.7" + "@babel/template" "^7.16.0" + "@babel/traverse" "^7.16.0" + "@babel/types" "^7.16.0" + +"@babel/helper-optimise-call-expression@^7.16.0": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.16.0.tgz#cecdb145d70c54096b1564f8e9f10cd7d193b338" + integrity sha512-SuI467Gi2V8fkofm2JPnZzB/SUuXoJA5zXe/xzyPP2M04686RzFKFHPK6HDVN6JvWBIEW8tt9hPR7fXdn2Lgpw== + dependencies: + "@babel/types" "^7.16.0" + +"@babel/helper-replace-supers@^7.16.0": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.16.0.tgz#73055e8d3cf9bcba8ddb55cad93fedc860f68f17" + integrity sha512-TQxuQfSCdoha7cpRNJvfaYxxxzmbxXw/+6cS7V02eeDYyhxderSoMVALvwupA54/pZcOTtVeJ0xccp1nGWladA== + dependencies: + "@babel/helper-member-expression-to-functions" "^7.16.0" + "@babel/helper-optimise-call-expression" "^7.16.0" + "@babel/traverse" "^7.16.0" + "@babel/types" "^7.16.0" + +"@babel/helper-simple-access@^7.16.0": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.16.0.tgz#21d6a27620e383e37534cf6c10bba019a6f90517" + integrity sha512-o1rjBT/gppAqKsYfUdfHq5Rk03lMQrkPHG1OWzHWpLgVXRH4HnMM9Et9CVdIqwkCQlobnGHEJMsgWP/jE1zUiw== + dependencies: + "@babel/types" "^7.16.0" + +"@babel/helper-split-export-declaration@^7.16.0": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.16.0.tgz#29672f43663e936df370aaeb22beddb3baec7438" + integrity sha512-0YMMRpuDFNGTHNRiiqJX19GjNXA4H0E8jZ2ibccfSxaCogbm3am5WN/2nQNj0YnQwGWM1J06GOcQ2qnh3+0paw== + dependencies: + "@babel/types" "^7.16.0" + +"@babel/helper-validator-identifier@^7.15.7": + version "7.15.7" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz#220df993bfe904a4a6b02ab4f3385a5ebf6e2389" + integrity sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w== + +"@babel/helper-validator-option@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.14.5.tgz#6e72a1fff18d5dfcb878e1e62f1a021c4b72d5a3" + integrity sha512-OX8D5eeX4XwcroVW45NMvoYaIuFI+GQpA2a8Gi+X/U/cDUIRsV37qQfF905F0htTRCREQIB4KqPeaveRJUl3Ow== + +"@babel/helpers@^7.16.0": + version "7.16.3" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.16.3.tgz#27fc64f40b996e7074dc73128c3e5c3e7f55c43c" + integrity sha512-Xn8IhDlBPhvYTvgewPKawhADichOsbkZuzN7qz2BusOM0brChsyXMDJvldWaYMMUNiCQdQzNEioXTp3sC8Nt8w== + dependencies: + "@babel/template" "^7.16.0" + "@babel/traverse" "^7.16.3" + "@babel/types" "^7.16.0" + +"@babel/highlight@^7.16.0": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.16.0.tgz#6ceb32b2ca4b8f5f361fb7fd821e3fddf4a1725a" + integrity sha512-t8MH41kUQylBtu2+4IQA3atqevA2lRgqA2wyVB/YiWmsDSuylZZuXOUy9ric30hfzauEFfdsuk/eXTRrGrfd0g== + dependencies: + "@babel/helper-validator-identifier" "^7.15.7" chalk "^2.0.0" js-tokens "^4.0.0" -"@babel/parser@^7.12.11", "@babel/parser@^7.12.7", "@babel/parser@^7.7.0": - version "7.12.11" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.12.11.tgz#9ce3595bcd74bc5c466905e86c535b8b25011e79" - integrity sha512-N3UxG+uuF4CMYoNj8AhnbAcJF0PiuJ9KHuy1lQmkYsxTer/MAH9UBNHsBoAX/4s6NvlDD047No8mYVGGzLL4hg== +"@babel/parser@^7.0.0-beta.54", "@babel/parser@^7.16.0", "@babel/parser@^7.16.3": + version "7.16.4" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.16.4.tgz#d5f92f57cf2c74ffe9b37981c0e72fee7311372e" + integrity sha512-6V0qdPUaiVHH3RtZeLIsc+6pDhbYzHR8ogA8w+f+Wc77DuXto19g2QUwveINoS34Uw+W8/hQDGJCx+i4n7xcng== -"@babel/runtime-corejs3@^7.10.2": - version "7.12.5" - resolved "https://registry.yarnpkg.com/@babel/runtime-corejs3/-/runtime-corejs3-7.12.5.tgz#ffee91da0eb4c6dae080774e94ba606368e414f4" - integrity sha512-roGr54CsTmNPPzZoCP1AmDXuBoNao7tnSA83TXTwt+UK5QVyh1DIJnrgYRPWKCF2flqZQXwa7Yr8v7VmLzF0YQ== +"@babel/template@^7.16.0": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.16.0.tgz#d16a35ebf4cd74e202083356fab21dd89363ddd6" + integrity sha512-MnZdpFD/ZdYhXwiunMqqgyZyucaYsbL0IrjoGjaVhGilz+x8YB++kRfygSOIj1yOtWKPlx7NBp+9I1RQSgsd5A== dependencies: - core-js-pure "^3.0.0" - regenerator-runtime "^0.13.4" + "@babel/code-frame" "^7.16.0" + "@babel/parser" "^7.16.0" + "@babel/types" "^7.16.0" -"@babel/runtime@^7.10.2", "@babel/runtime@^7.11.2": - version "7.12.5" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.12.5.tgz#410e7e487441e1b360c29be715d870d9b985882e" - integrity sha512-plcc+hbExy3McchJCEQG3knOsuh3HH+Prx1P6cLIkET/0dLuQDEnrT+s27Axgc9bqfsmNUNHfscgMUdBpC9xfg== +"@babel/traverse@^7.0.0-beta.54", "@babel/traverse@^7.16.0", "@babel/traverse@^7.16.3": + version "7.16.3" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.16.3.tgz#f63e8a938cc1b780f66d9ed3c54f532ca2d14787" + integrity sha512-eolumr1vVMjqevCpwVO99yN/LoGL0EyHiLO5I043aYQvwOJ9eR5UsZSClHVCzfhBduMAsSzgA/6AyqPjNayJag== dependencies: - regenerator-runtime "^0.13.4" - -"@babel/template@^7.12.7": - version "7.12.7" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.12.7.tgz#c817233696018e39fbb6c491d2fb684e05ed43bc" - integrity sha512-GkDzmHS6GV7ZeXfJZ0tLRBhZcMcY0/Lnb+eEbXDBfCAcZCjrZKe6p3J4we/D24O9Y8enxWAg1cWwof59yLh2ow== - dependencies: - "@babel/code-frame" "^7.10.4" - "@babel/parser" "^7.12.7" - "@babel/types" "^7.12.7" - -"@babel/traverse@^7.7.0": - version "7.12.12" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.12.12.tgz#d0cd87892704edd8da002d674bc811ce64743376" - integrity sha512-s88i0X0lPy45RrLM8b9mz8RPH5FqO9G9p7ti59cToE44xFm1Q+Pjh5Gq4SXBbtb88X7Uy7pexeqRIQDDMNkL0w== - dependencies: - "@babel/code-frame" "^7.12.11" - "@babel/generator" "^7.12.11" - "@babel/helper-function-name" "^7.12.11" - "@babel/helper-split-export-declaration" "^7.12.11" - "@babel/parser" "^7.12.11" - "@babel/types" "^7.12.12" + "@babel/code-frame" "^7.16.0" + "@babel/generator" "^7.16.0" + "@babel/helper-function-name" "^7.16.0" + "@babel/helper-hoist-variables" "^7.16.0" + "@babel/helper-split-export-declaration" "^7.16.0" + "@babel/parser" "^7.16.3" + "@babel/types" "^7.16.0" debug "^4.1.0" globals "^11.1.0" - lodash "^4.17.19" -"@babel/types@^7.12.10", "@babel/types@^7.12.11", "@babel/types@^7.12.12", "@babel/types@^7.12.7", "@babel/types@^7.7.0": - version "7.12.12" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.12.12.tgz#4608a6ec313abbd87afa55004d373ad04a96c299" - integrity sha512-lnIX7piTxOH22xE7fDXDbSHg9MM1/6ORnafpJmov5rs0kX5g4BZxeXNJLXsMRiO0U5Rb8/FvMS6xlTnTHvxonQ== +"@babel/types@^7.0.0-beta.54", "@babel/types@^7.16.0": + version "7.16.0" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.16.0.tgz#db3b313804f96aadd0b776c4823e127ad67289ba" + integrity sha512-PJgg/k3SdLsGb3hhisFvtLOw5ts113klrpLuIPtCJIU+BB24fqq6lf8RWqKJEjzqXR9AEH1rIb5XTqwBHB+kQg== dependencies: - "@babel/helper-validator-identifier" "^7.12.11" - lodash "^4.17.19" + "@babel/helper-validator-identifier" "^7.15.7" to-fast-properties "^2.0.0" -"@eslint/eslintrc@^0.4.3": - version "0.4.3" - resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.4.3.tgz#9e42981ef035beb3dd49add17acb96e8ff6f394c" - integrity sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw== +"@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== dependencies: ajv "^6.12.4" - debug "^4.1.1" - espree "^7.3.0" + debug "^4.3.2" + espree "^9.2.0" globals "^13.9.0" ignore "^4.0.6" import-fresh "^3.2.1" - js-yaml "^3.13.1" + js-yaml "^4.1.0" minimatch "^3.0.4" strip-json-comments "^3.1.1" -"@humanwhocodes/config-array@^0.5.0": - version "0.5.0" - resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.5.0.tgz#1407967d4c6eecd7388f83acf1eaf4d0c6e58ef9" - integrity sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg== +"@humanwhocodes/config-array@^0.9.2": + version "0.9.2" + resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.9.2.tgz#68be55c737023009dfc5fe245d51181bb6476914" + integrity sha512-UXOuFCGcwciWckOpmfKDq/GyhlTf9pN/BzG//x8p8zTOFEcGuA68ANXheFS0AGvy3qgZqLBUkMs7hqzqCKOVwA== dependencies: - "@humanwhocodes/object-schema" "^1.2.0" + "@humanwhocodes/object-schema" "^1.2.1" debug "^4.1.1" minimatch "^3.0.4" -"@humanwhocodes/object-schema@^1.2.0": - version "1.2.0" - resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.0.tgz#87de7af9c231826fdd68ac7258f77c429e0e5fcf" - integrity sha512-wdppn25U8z/2yiaT6YGquE6X8sSv7hNMWSXYSSU1jGv/yd6XqjXgTDJ8KP4NgjTXfJ3GbRjeeb8RTV7a/VpM+w== +"@humanwhocodes/object-schema@^1.2.1": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45" + integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== "@nodelib/fs.scandir@2.1.4": version "2.1.4" @@ -158,15 +251,23 @@ "@nodelib/fs.scandir" "2.1.4" fastq "^1.6.0" -"@types/json-schema@^7.0.3": - version "7.0.7" - resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.7.tgz#98a993516c859eb0d5c4c8f098317a9ea68db9ad" - integrity sha512-cxWFQVseBm6O9Gbw1IWb8r6OS4OhSt3hPZLkFApLjM8TEXROBuQGLAH2i2gZpcXdLBIrpXuTDhH7Vbm1iXmNGA== +"@types/glob@^7.1.1": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@types/glob/-/glob-7.2.0.tgz#bc1b5bf3aa92f25bd5dd39f35c57361bdce5b2eb" + integrity sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA== + dependencies: + "@types/minimatch" "*" + "@types/node" "*" -"@types/json5@^0.0.29": - version "0.0.29" - resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" - integrity sha1-7ihweulOEdK4J7y+UnC86n8+ce4= +"@types/json-schema@^7.0.9": + version "7.0.9" + resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.9.tgz#97edc9037ea0c38585320b28964dde3b39e4660d" + integrity sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ== + +"@types/minimatch@*": + version "3.0.5" + resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.5.tgz#1001cc5e6a3704b83c236027e77f2f58ea010f40" + integrity sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ== "@types/node-fetch@^3.0.3": version "3.0.3" @@ -175,147 +276,90 @@ dependencies: node-fetch "*" -"@types/node@^16.10.2": - version "16.10.2" - resolved "https://registry.yarnpkg.com/@types/node/-/node-16.10.2.tgz#5764ca9aa94470adb4e1185fe2e9f19458992b2e" - integrity sha512-zCclL4/rx+W5SQTzFs9wyvvyCwoK9QtBpratqz2IYJ3O8Umrn0m3nsTv0wQBk9sRGpvUe9CwPDrQFB10f1FIjQ== +"@types/node@*", "@types/node@^16.11.11": + version "16.11.11" + resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.11.tgz#6ea7342dfb379ea1210835bada87b3c512120234" + integrity sha512-KB0sixD67CeecHC33MYn+eYARkqTheIRNuu97y2XMjR7Wu3XibO1vaY6VBV6O/a89SPI81cEUIYT87UqUWlZNw== -"@types/normalize-package-data@^2.4.0": - version "2.4.0" - resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e" - integrity sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA== - -"@types/parse-json@^4.0.0": - version "4.0.0" - resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0" - integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA== - -"@typescript-eslint/eslint-plugin@4.11.0": - version "4.11.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.11.0.tgz#bc6c1e4175c0cf42083da4314f7931ad12f731cc" - integrity sha512-x4arJMXBxyD6aBXLm3W7mSDZRiABzy+2PCLJbL7OPqlp53VXhaA1HKK7R2rTee5OlRhnUgnp8lZyVIqjnyPT6g== +"@typescript-eslint/eslint-plugin@^5.5.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.6.0.tgz#efd8668b3d6627c46ce722c2afe813928fe120a0" + integrity sha512-MIbeMy5qfLqtgs1hWd088k1hOuRsN9JrHUPwVVKCD99EOUqScd7SrwoZl4Gso05EAP9w1kvLWUVGJOVpRPkDPA== dependencies: - "@typescript-eslint/experimental-utils" "4.11.0" - "@typescript-eslint/scope-manager" "4.11.0" - debug "^4.1.1" + "@typescript-eslint/experimental-utils" "5.6.0" + "@typescript-eslint/scope-manager" "5.6.0" + debug "^4.3.2" functional-red-black-tree "^1.0.1" - regexpp "^3.0.0" - semver "^7.3.2" - tsutils "^3.17.1" + ignore "^5.1.8" + regexpp "^3.2.0" + semver "^7.3.5" + tsutils "^3.21.0" -"@typescript-eslint/experimental-utils@4.11.0": - version "4.11.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-4.11.0.tgz#d1a47cc6cfe1c080ce4ead79267574b9881a1565" - integrity sha512-1VC6mSbYwl1FguKt8OgPs8xxaJgtqFpjY/UzUYDBKq4pfQ5lBvN2WVeqYkzf7evW42axUHYl2jm9tNyFsb8oLg== +"@typescript-eslint/experimental-utils@5.6.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-5.6.0.tgz#f3a5960f2004abdcac7bb81412bafc1560841c23" + integrity sha512-VDoRf3Qj7+W3sS/ZBXZh3LBzp0snDLEgvp6qj0vOAIiAPM07bd5ojQ3CTzF/QFl5AKh7Bh1ycgj6lFBJHUt/DA== dependencies: - "@types/json-schema" "^7.0.3" - "@typescript-eslint/scope-manager" "4.11.0" - "@typescript-eslint/types" "4.11.0" - "@typescript-eslint/typescript-estree" "4.11.0" - eslint-scope "^5.0.0" - eslint-utils "^2.0.0" + "@types/json-schema" "^7.0.9" + "@typescript-eslint/scope-manager" "5.6.0" + "@typescript-eslint/types" "5.6.0" + "@typescript-eslint/typescript-estree" "5.6.0" + eslint-scope "^5.1.1" + eslint-utils "^3.0.0" -"@typescript-eslint/experimental-utils@^4.0.1": - version "4.14.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-4.14.0.tgz#5aa7b006736634f588a69ee343ca959cd09988df" - integrity sha512-6i6eAoiPlXMKRbXzvoQD5Yn9L7k9ezzGRvzC/x1V3650rUk3c3AOjQyGYyF9BDxQQDK2ElmKOZRD0CbtdkMzQQ== +"@typescript-eslint/parser@^5.5.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.6.0.tgz#11677324659641400d653253c03dcfbed468d199" + integrity sha512-YVK49NgdUPQ8SpCZaOpiq1kLkYRPMv9U5gcMrywzI8brtwZjr/tG3sZpuHyODt76W/A0SufNjYt9ZOgrC4tLIQ== dependencies: - "@types/json-schema" "^7.0.3" - "@typescript-eslint/scope-manager" "4.14.0" - "@typescript-eslint/types" "4.14.0" - "@typescript-eslint/typescript-estree" "4.14.0" - eslint-scope "^5.0.0" - eslint-utils "^2.0.0" + "@typescript-eslint/scope-manager" "5.6.0" + "@typescript-eslint/types" "5.6.0" + "@typescript-eslint/typescript-estree" "5.6.0" + debug "^4.3.2" -"@typescript-eslint/parser@4.11.0": - version "4.11.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.11.0.tgz#1dd3d7e42708c10ce9f3aa64c63c0ab99868b4e2" - integrity sha512-NBTtKCC7ZtuxEV5CrHUO4Pg2s784pvavc3cnz6V+oJvVbK4tH9135f/RBP6eUA2KHiFKAollSrgSctQGmHbqJQ== +"@typescript-eslint/scope-manager@5.6.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.6.0.tgz#9dd7f007dc8f3a34cdff6f79f5eaab27ae05157e" + integrity sha512-1U1G77Hw2jsGWVsO2w6eVCbOg0HZ5WxL/cozVSTfqnL/eB9muhb8THsP0G3w+BB5xAHv9KptwdfYFAUfzcIh4A== dependencies: - "@typescript-eslint/scope-manager" "4.11.0" - "@typescript-eslint/types" "4.11.0" - "@typescript-eslint/typescript-estree" "4.11.0" - debug "^4.1.1" + "@typescript-eslint/types" "5.6.0" + "@typescript-eslint/visitor-keys" "5.6.0" -"@typescript-eslint/scope-manager@4.11.0": - version "4.11.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.11.0.tgz#2d906537db8a3a946721699e4fc0833810490254" - integrity sha512-6VSTm/4vC2dHM3ySDW9Kl48en+yLNfVV6LECU8jodBHQOhO8adAVizaZ1fV0QGZnLQjQ/y0aBj5/KXPp2hBTjA== +"@typescript-eslint/types@5.6.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.6.0.tgz#745cb1b59daadcc1f32f7be95f0f68accf38afdd" + integrity sha512-OIZffked7mXv4mXzWU5MgAEbCf9ecNJBKi+Si6/I9PpTaj+cf2x58h2oHW5/P/yTnPkKaayfjhLvx+crnl5ubA== + +"@typescript-eslint/typescript-estree@5.6.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.6.0.tgz#dfbb19c9307fdd81bd9c650c67e8397821d7faf0" + integrity sha512-92vK5tQaE81rK7fOmuWMrSQtK1IMonESR+RJR2Tlc7w4o0MeEdjgidY/uO2Gobh7z4Q1hhS94Cr7r021fMVEeA== dependencies: - "@typescript-eslint/types" "4.11.0" - "@typescript-eslint/visitor-keys" "4.11.0" + "@typescript-eslint/types" "5.6.0" + "@typescript-eslint/visitor-keys" "5.6.0" + debug "^4.3.2" + globby "^11.0.4" + is-glob "^4.0.3" + semver "^7.3.5" + tsutils "^3.21.0" -"@typescript-eslint/scope-manager@4.14.0": - version "4.14.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.14.0.tgz#55a4743095d684e1f7b7180c4bac2a0a3727f517" - integrity sha512-/J+LlRMdbPh4RdL4hfP1eCwHN5bAhFAGOTsvE6SxsrM/47XQiPSgF5MDgLyp/i9kbZV9Lx80DW0OpPkzL+uf8Q== +"@typescript-eslint/visitor-keys@5.6.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.6.0.tgz#3e36509e103fe9713d8f035ac977235fd63cb6e6" + integrity sha512-1p7hDp5cpRFUyE3+lvA74egs+RWSgumrBpzBCDzfTFv0aQ7lIeay80yU0hIxgAhwQ6PcasW35kaOCyDOv6O/Ng== dependencies: - "@typescript-eslint/types" "4.14.0" - "@typescript-eslint/visitor-keys" "4.14.0" - -"@typescript-eslint/types@4.11.0": - version "4.11.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.11.0.tgz#86cf95e7eac4ccfd183f9fcf1480cece7caf4ca4" - integrity sha512-XXOdt/NPX++txOQHM1kUMgJUS43KSlXGdR/aDyEwuAEETwuPt02Nc7v+s57PzuSqMbNLclblQdv3YcWOdXhQ7g== - -"@typescript-eslint/types@4.14.0": - version "4.14.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.14.0.tgz#d8a8202d9b58831d6fd9cee2ba12f8a5a5dd44b6" - integrity sha512-VsQE4VvpldHrTFuVPY1ZnHn/Txw6cZGjL48e+iBxTi2ksa9DmebKjAeFmTVAYoSkTk7gjA7UqJ7pIsyifTsI4A== - -"@typescript-eslint/typescript-estree@4.11.0": - version "4.11.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.11.0.tgz#1144d145841e5987d61c4c845442a24b24165a4b" - integrity sha512-eA6sT5dE5RHAFhtcC+b5WDlUIGwnO9b0yrfGa1mIOIAjqwSQCpXbLiFmKTdRbQN/xH2EZkGqqLDrKUuYOZ0+Hg== - dependencies: - "@typescript-eslint/types" "4.11.0" - "@typescript-eslint/visitor-keys" "4.11.0" - debug "^4.1.1" - globby "^11.0.1" - is-glob "^4.0.1" - lodash "^4.17.15" - semver "^7.3.2" - tsutils "^3.17.1" - -"@typescript-eslint/typescript-estree@4.14.0": - version "4.14.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.14.0.tgz#4bcd67486e9acafc3d0c982b23a9ab8ac8911ed7" - integrity sha512-wRjZ5qLao+bvS2F7pX4qi2oLcOONIB+ru8RGBieDptq/SudYwshveORwCVU4/yMAd4GK7Fsf8Uq1tjV838erag== - dependencies: - "@typescript-eslint/types" "4.14.0" - "@typescript-eslint/visitor-keys" "4.14.0" - debug "^4.1.1" - globby "^11.0.1" - is-glob "^4.0.1" - lodash "^4.17.15" - semver "^7.3.2" - tsutils "^3.17.1" - -"@typescript-eslint/visitor-keys@4.11.0": - version "4.11.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.11.0.tgz#906669a50f06aa744378bb84c7d5c4fdbc5b7d51" - integrity sha512-tRYKyY0i7cMk6v4UIOCjl1LhuepC/pc6adQqJk4Is3YcC6k46HvsV9Wl7vQoLbm9qADgeujiT7KdLrylvFIQ+A== - dependencies: - "@typescript-eslint/types" "4.11.0" - eslint-visitor-keys "^2.0.0" - -"@typescript-eslint/visitor-keys@4.14.0": - version "4.14.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.14.0.tgz#b1090d9d2955b044b2ea2904a22496849acbdf54" - integrity sha512-MeHHzUyRI50DuiPgV9+LxcM52FCJFYjJiWHtXlbyC27b80mfOwKeiKI+MHOTEpcpfmoPFm/vvQS88bYIx6PZTA== - dependencies: - "@typescript-eslint/types" "4.14.0" - eslint-visitor-keys "^2.0.0" + "@typescript-eslint/types" "5.6.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@^7.4.0: - version "7.4.1" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" - integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== +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== aggregate-error@^3.0.0: version "3.1.0" @@ -335,16 +379,6 @@ ajv@^6.10.0, ajv@^6.12.4: json-schema-traverse "^0.4.1" uri-js "^4.2.2" -ajv@^8.0.1: - version "8.5.0" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.5.0.tgz#695528274bcb5afc865446aa275484049a18ae4b" - integrity sha512-Y2l399Tt1AguU3BPRP9Fn4eN+Or+StUGWCUpbnFyXSo8NZ9S4uj+AG2pjs5apK+ZMOwYOz1+a+VKvKH7CudXgQ== - dependencies: - fast-deep-equal "^3.1.1" - json-schema-traverse "^1.0.0" - require-from-string "^2.0.2" - uri-js "^4.2.2" - ansi-colors@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.1.tgz#cbb9ae256bf750af1eab344f229aa27fe94ba348" @@ -362,6 +396,16 @@ ansi-regex@^5.0.0: resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75" integrity sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg== +ansi-regex@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" + integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== + +ansi-regex@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-6.0.1.tgz#3183e38fae9a65d7cb5e53945cd5897d0260a06a" + integrity sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA== + ansi-styles@^3.2.1: version "3.2.1" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" @@ -376,6 +420,11 @@ ansi-styles@^4.0.0, ansi-styles@^4.1.0: dependencies: color-convert "^2.0.1" +ansi-styles@^6.0.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-6.1.0.tgz#87313c102b8118abd57371afab34618bf7350ed3" + integrity sha512-VbqNsoz55SYGczauuup0MFUyXNQviSpFTj1RQtFzmQLk18qbVSpTFFGMT293rmDaQuKCT6InmbuEyUne4mTuxQ== + argparse@^1.0.7: version "1.0.10" resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" @@ -383,81 +432,21 @@ argparse@^1.0.7: dependencies: sprintf-js "~1.0.2" -aria-query@^4.2.2: - version "4.2.2" - resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-4.2.2.tgz#0d2ca6c9aceb56b8977e9fed6aed7e15bbd2f83b" - integrity sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA== - dependencies: - "@babel/runtime" "^7.10.2" - "@babel/runtime-corejs3" "^7.10.2" - -array-includes@^3.1.1, array-includes@^3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.2.tgz#a8db03e0b88c8c6aeddc49cb132f9bcab4ebf9c8" - integrity sha512-w2GspexNQpx+PutG3QpT437/BenZBj0M/MZGn5mzv/MofYqo0xmRHzn4lFsoDlWJ+THYsGJmFlW68WlDFx7VRw== - dependencies: - call-bind "^1.0.0" - define-properties "^1.1.3" - es-abstract "^1.18.0-next.1" - get-intrinsic "^1.0.1" - is-string "^1.0.5" +argparse@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" + integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== array-union@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== -array.prototype.flat@^1.2.3: - version "1.2.4" - resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.2.4.tgz#6ef638b43312bd401b4c6199fdec7e2dc9e9a123" - integrity sha512-4470Xi3GAPAjZqFcljX2xzckv1qeKPizoNkiS0+O4IoPR2ZNpcjE0pkhdihlDouK+x6QOast26B4Q/O9DJnwSg== - dependencies: - call-bind "^1.0.0" - define-properties "^1.1.3" - es-abstract "^1.18.0-next.1" - -array.prototype.flatmap@^1.2.3: - version "1.2.4" - resolved "https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.2.4.tgz#94cfd47cc1556ec0747d97f7c7738c58122004c9" - integrity sha512-r9Z0zYoxqHz60vvQbWEdXIEtCwHF0yxaWfno9qzXeNHvfyl3BZqygmGzb84dsubyaXLH4husF+NFgMSdpZhk2Q== - dependencies: - call-bind "^1.0.0" - define-properties "^1.1.3" - es-abstract "^1.18.0-next.1" - function-bind "^1.1.1" - -ast-types-flow@^0.0.7: - version "0.0.7" - resolved "https://registry.yarnpkg.com/ast-types-flow/-/ast-types-flow-0.0.7.tgz#f70b735c6bca1a5c9c22d982c3e39e7feba3bdad" - integrity sha1-9wtzXGvKGlycItmCw+Oef+ujva0= - astral-regex@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31" integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== -axe-core@^4.0.2: - version "4.1.1" - resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.1.1.tgz#70a7855888e287f7add66002211a423937063eaf" - integrity sha512-5Kgy8Cz6LPC9DJcNb3yjAXTu3XihQgEdnIg50c//zOC/MyLP0Clg+Y8Sh9ZjjnvBrDZU4DgXS9C3T9r4/scGZQ== - -axobject-query@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/axobject-query/-/axobject-query-2.2.0.tgz#943d47e10c0b704aa42275e20edf3722648989be" - integrity sha512-Td525n+iPOOyUQIeBfcASuG6uJsDOITl7Mds5gFyerkWiX7qhUTdYUBlSgNMyVqtSJqwpt1kXGLdUt6SykLMRA== - -babel-eslint@10.1.0, babel-eslint@^10.1.0: - version "10.1.0" - resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-10.1.0.tgz#6968e568a910b78fb3779cdd8b6ac2f479943232" - integrity sha512-ifWaTHQ0ce+448CYop8AdrQiBsGrnC+bMgfyKFdi6EsPLTAWG+QfyDeM6OH+FmWnKvEq5NnBMLvlBUPKQZoDSg== - dependencies: - "@babel/code-frame" "^7.0.0" - "@babel/parser" "^7.7.0" - "@babel/traverse" "^7.7.0" - "@babel/types" "^7.7.0" - eslint-visitor-keys "^1.0.0" - resolve "^1.12.0" - balanced-match@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" @@ -478,19 +467,51 @@ braces@^3.0.1: dependencies: fill-range "^7.0.1" -call-bind@^1.0.0, call-bind@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.2.tgz#b1d4e89e688119c3c9a903ad30abb2f6a919be3c" - integrity sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA== +browserslist@^4.17.5: + version "4.18.1" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.18.1.tgz#60d3920f25b6860eb917c6c7b185576f4d8b017f" + integrity sha512-8ScCzdpPwR2wQh8IT82CA2VgDwjHyqMovPBZSNH54+tm4Jk2pCuv90gmAdH6J84OCRWi0b4gMe6O6XPXuJnjgQ== dependencies: - function-bind "^1.1.1" - get-intrinsic "^1.0.2" + caniuse-lite "^1.0.30001280" + electron-to-chromium "^1.3.896" + escalade "^3.1.1" + node-releases "^2.0.1" + picocolors "^1.0.0" + +builtin-modules@^3.0.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-3.2.0.tgz#45d5db99e7ee5e6bc4f362e008bf917ab5049887" + integrity sha512-lGzLKcioL90C7wMczpkY0n/oART3MbBa8R9OFGE1rJxoVI86u4WAGfEk8Wjv10eKSyTHVGkSo3bvBylCEtk7LA== + +caller-callsite@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/caller-callsite/-/caller-callsite-2.0.0.tgz#847e0fce0a223750a9a027c54b33731ad3154134" + integrity sha1-hH4PzgoiN1CpoCfFSzNzGtMVQTQ= + dependencies: + callsites "^2.0.0" + +caller-path@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/caller-path/-/caller-path-2.0.0.tgz#468f83044e369ab2010fac5f06ceee15bb2cb1f4" + integrity sha1-Ro+DBE42mrIBD6xfBs7uFbsssfQ= + dependencies: + caller-callsite "^2.0.0" + +callsites@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/callsites/-/callsites-2.0.0.tgz#06eb84f00eea413da86affefacbffb36093b3c50" + integrity sha1-BuuE8A7qQT2oav/vrL/7Ngk7PFA= callsites@^3.0.0: version "3.1.0" resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== +caniuse-lite@^1.0.30001280: + version "1.0.30001285" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001285.tgz#fe1e52229187e11d6670590790d669b9e03315b7" + integrity sha512-KAOkuUtcQ901MtmvxfKD+ODHH9YVDYnBt+TGYSz2KIfnq22CiArbUxXPN9067gNbgMlnNYRSwho8OPXZPALB9Q== + chalk@^2.0.0: version "2.4.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" @@ -500,7 +521,7 @@ chalk@^2.0.0: escape-string-regexp "^1.0.5" supports-color "^5.3.0" -chalk@^4.0.0, chalk@^4.1.0: +chalk@^4.0.0: version "4.1.0" resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.0.tgz#4e14870a618d9e2edd97dd8345fd9d9dc315646a" integrity sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A== @@ -508,26 +529,6 @@ chalk@^4.0.0, chalk@^4.1.0: ansi-styles "^4.1.0" supports-color "^7.1.0" -chalk@^4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.1.tgz#c80b3fab28bf6371e6863325eee67e618b77e6ad" - integrity sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - -ci-info@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-2.0.0.tgz#67a9e964be31a51e15e5010d58e6f12834002f46" - integrity sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ== - -clean-regexp@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/clean-regexp/-/clean-regexp-1.0.0.tgz#8df7c7aae51fd36874e8f8d05b9180bc11a3fed7" - integrity sha1-jffHquUf02h06PjQW5GAvBGj/tc= - dependencies: - escape-string-regexp "^1.0.5" - clean-stack@^2.0.0: version "2.2.0" resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-2.2.0.tgz#ee8472dbb129e727b31e8a10a427dee9dfe4008b" @@ -548,6 +549,14 @@ cli-truncate@^2.1.0: slice-ansi "^3.0.0" string-width "^4.2.0" +cli-truncate@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/cli-truncate/-/cli-truncate-3.1.0.tgz#3f23ab12535e3d73e839bb43e73c9de487db1389" + integrity sha512-wfOBkjXteqSnI59oPcJkcPl/ZmwvMMOj340qUIY1SKZCv0B9Cf4D4fAucRkIKQmsIuYK3x1rrgU7MeGRruiuiA== + dependencies: + slice-ansi "^5.0.0" + string-width "^5.0.0" + color-convert@^1.9.0: version "1.9.3" resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" @@ -572,41 +581,37 @@ color-name@~1.1.4: resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== -colorette@^1.2.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.2.2.tgz#cbcc79d5e99caea2dbf10eb3a26fd8b3e6acfa94" - integrity sha512-MKGMzyfeuutC/ZJ1cba9NqcNpfeqMUcYmyF1ZFY6/Cn7CNSAKx6a+s48sqLqyAiZuaP2TcqMhoo+dlwFnVxT9w== +colorette@^2.0.16: + version "2.0.16" + resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.16.tgz#713b9af84fdb000139f04546bd4a93f62a5085da" + integrity sha512-hUewv7oMjCp+wkBv5Rm0v87eJhq4woh5rSR+42YSQJKecCqgIqNkZ6lAlQms/BwHPJA5NKMRlpxPRv0n8HQW6g== -commander@^7.2.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/commander/-/commander-7.2.0.tgz#a36cb57d0b501ce108e4d20559a150a391d97ab7" - integrity sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw== +commander@^8.3.0: + version "8.3.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-8.3.0.tgz#4837ea1b2da67b9c616a67afbb0fafee567bca66" + integrity sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww== concat-map@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= -contains-path@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/contains-path/-/contains-path-0.1.0.tgz#fe8cf184ff6670b6baef01a9d4861a5cbec4120a" - integrity sha1-/ozxhP9mcLa67wGp1IYaXL7EEgo= - -core-js-pure@^3.0.0: - version "3.8.3" - resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.8.3.tgz#10e9e3b2592ecaede4283e8f3ad7020811587c02" - integrity sha512-V5qQZVAr9K0xu7jXg1M7qTEwuxUgqr7dUOezGaNa7i+Xn9oXAU/d1fzqD9ObuwpVQOaorO5s70ckyi1woP9lVA== - -cosmiconfig@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-7.0.0.tgz#ef9b44d773959cae63ddecd122de23853b60f8d3" - integrity sha512-pondGvTuVYDk++upghXJabWzL6Kxu6f26ljFw64Swq9v6sQPUL3EUlVDV56diOjpCayKihL6hVe8exIACU4XcA== +convert-source-map@^1.7.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.8.0.tgz#f3373c32d21b4d780dd8004514684fb791ca4369" + integrity sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA== dependencies: - "@types/parse-json" "^4.0.0" - import-fresh "^3.2.1" - parse-json "^5.0.0" - path-type "^4.0.0" - yaml "^1.10.0" + safe-buffer "~5.1.1" + +cosmiconfig@^5.0.5: + version "5.2.1" + resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-5.2.1.tgz#040f726809c591e77a17c0a3626ca45b4f168b1a" + integrity sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA== + dependencies: + import-fresh "^2.0.0" + is-directory "^0.3.1" + js-yaml "^3.13.1" + parse-json "^4.0.0" cross-spawn@^7.0.2, cross-spawn@^7.0.3: version "7.0.3" @@ -617,41 +622,49 @@ cross-spawn@^7.0.2, cross-spawn@^7.0.3: shebang-command "^2.0.0" which "^2.0.1" -damerau-levenshtein@^1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/damerau-levenshtein/-/damerau-levenshtein-1.0.6.tgz#143c1641cb3d85c60c32329e26899adea8701791" - integrity sha512-JVrozIeElnj3QzfUIt8tB8YMluBJom4Vw9qTPpjGYQ9fYlB3D/rb6OordUxf3xeFB35LKWs0xqcO5U6ySvBtug== - data-uri-to-buffer@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/data-uri-to-buffer/-/data-uri-to-buffer-3.0.1.tgz#594b8973938c5bc2c33046535785341abc4f3636" integrity sha512-WboRycPNsVw3B3TL559F7kuBUM4d8CgMEvk6xEJlOp7OBPjt6G7z8WMWlD2rOFZLk6OYfFIUGsCOWzcQH9K2og== -debug@^2.6.9: - version "2.6.9" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" - integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== - dependencies: - ms "2.0.0" +data-uri-to-buffer@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/data-uri-to-buffer/-/data-uri-to-buffer-4.0.0.tgz#b5db46aea50f6176428ac05b73be39a57701a64b" + integrity sha512-Vr3mLBA8qWmcuschSLAOogKgQ/Jwxulv3RNE4FXnYWRGujzrRWQI4m12fQqRkwX06C0KanhLr4hK+GydchZsaA== -debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1: +debug@^4.1.0, debug@^4.1.1: version "4.3.1" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.1.tgz#f0d229c505e0c6d8c49ac553d1b13dc183f6b2ee" integrity sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ== dependencies: ms "2.1.2" +debug@^4.3.2: + version "4.3.3" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.3.tgz#04266e0b70a98d4462e6e288e38259213332b664" + integrity sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q== + dependencies: + ms "2.1.2" + deep-is@^0.1.3: version "0.1.3" resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" integrity sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ= -define-properties@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1" - integrity sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ== - dependencies: - object-keys "^1.0.12" +detect-indent@^6.0.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-6.1.0.tgz#592485ebbbf6b3b1ab2be175c8393d04ca0d57e6" + integrity sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA== + +detect-newline@3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651" + integrity sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA== + +detect-newline@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-2.1.0.tgz#f41f1c10be4b00e87b5f13da680759f2c5bfd3e2" + integrity sha1-9B8cEL5LAOh7XxPaaAdZ8sW/0+I= dir-glob@^3.0.1: version "3.0.1" @@ -660,21 +673,6 @@ dir-glob@^3.0.1: dependencies: path-type "^4.0.0" -doctrine@1.5.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-1.5.0.tgz#379dce730f6166f76cefa4e6707a159b02c5a6fa" - integrity sha1-N53Ocw9hZvds76TmcHoVmwLFpvo= - dependencies: - esutils "^2.0.2" - isarray "^1.0.0" - -doctrine@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d" - integrity sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw== - dependencies: - esutils "^2.0.2" - doctrine@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" @@ -682,15 +680,20 @@ doctrine@^3.0.0: dependencies: esutils "^2.0.2" +electron-to-chromium@^1.3.896: + version "1.4.12" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.12.tgz#5f73d1278c6205fc41d7a0ebd75563046b77c5d8" + integrity sha512-zjfhG9Us/hIy8AlQ5OzfbR/C4aBv1Dg/ak4GX35CELYlJ4tDAtoEcQivXvyBdqdNQ+R6PhlgQqV8UNPJmhkJog== + emoji-regex@^8.0.0: version "8.0.0" resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== -emoji-regex@^9.0.0: - version "9.2.0" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-9.2.0.tgz#a26da8e832b16a9753309f25e35e3c0efb9a066a" - integrity sha512-DNc3KFPK18bPdElMJnf/Pkv5TXhxFU3YFDEuGLDRtPmV4rkmCjBkCSEp22u6rBHdSN9Vlp/GK7k98prmE1Jgug== +emoji-regex@^9.2.2: + version "9.2.2" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-9.2.2.tgz#840c8803b0d8047f4ff0cf963176b32d4ef3ed72" + integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg== enquirer@^2.3.5, enquirer@^2.3.6: version "2.3.6" @@ -699,58 +702,17 @@ enquirer@^2.3.5, enquirer@^2.3.6: dependencies: ansi-colors "^4.1.1" -error-ex@^1.2.0, error-ex@^1.3.1: +error-ex@^1.3.1: version "1.3.2" resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== dependencies: is-arrayish "^0.2.1" -es-abstract@^1.17.0-next.1: - version "1.17.7" - resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.17.7.tgz#a4de61b2f66989fc7421676c1cb9787573ace54c" - integrity sha512-VBl/gnfcJ7OercKA9MVaegWsBHFjV492syMudcnQZvt/Dw8ezpcOHYZXa/J96O8vx+g4x65YKhxOwDUh63aS5g== - dependencies: - es-to-primitive "^1.2.1" - function-bind "^1.1.1" - has "^1.0.3" - has-symbols "^1.0.1" - is-callable "^1.2.2" - is-regex "^1.1.1" - object-inspect "^1.8.0" - object-keys "^1.1.1" - object.assign "^4.1.1" - string.prototype.trimend "^1.0.1" - string.prototype.trimstart "^1.0.1" - -es-abstract@^1.18.0-next.1: - version "1.18.0-next.2" - resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.18.0-next.2.tgz#088101a55f0541f595e7e057199e27ddc8f3a5c2" - integrity sha512-Ih4ZMFHEtZupnUh6497zEL4y2+w8+1ljnCyaTa+adcoafI1GOvMwFlDjBLfWR7y9VLfrjRJe9ocuHY1PSR9jjw== - dependencies: - call-bind "^1.0.2" - es-to-primitive "^1.2.1" - function-bind "^1.1.1" - get-intrinsic "^1.0.2" - has "^1.0.3" - has-symbols "^1.0.1" - is-callable "^1.2.2" - is-negative-zero "^2.0.1" - is-regex "^1.1.1" - object-inspect "^1.9.0" - object-keys "^1.1.1" - object.assign "^4.1.2" - string.prototype.trimend "^1.0.3" - string.prototype.trimstart "^1.0.3" - -es-to-primitive@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a" - integrity sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA== - dependencies: - is-callable "^1.1.4" - is-date-object "^1.0.1" - is-symbol "^1.0.2" +escalade@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" + integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== escape-string-regexp@^1.0.5: version "1.0.5" @@ -762,184 +724,14 @@ escape-string-regexp@^4.0.0: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== -eslint-ast-utils@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/eslint-ast-utils/-/eslint-ast-utils-1.1.0.tgz#3d58ba557801cfb1c941d68131ee9f8c34bd1586" - integrity sha512-otzzTim2/1+lVrlH19EfQQJEhVJSu0zOb9ygb3iapN6UlyaDtyRq4b5U1FuW0v1lRa9Fp/GJyHkSwm6NqABgCA== - dependencies: - lodash.get "^4.4.2" - lodash.zip "^4.2.0" - -eslint-config-prettier@7.1.0: - version "7.1.0" - resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-7.1.0.tgz#5402eb559aa94b894effd6bddfa0b1ca051c858f" - integrity sha512-9sm5/PxaFG7qNJvJzTROMM1Bk1ozXVTKI0buKOyb0Bsr1hrwi0H/TzxF/COtf1uxikIK8SwhX7K6zg78jAzbeA== - -eslint-import-resolver-node@^0.3.4: - version "0.3.4" - resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.4.tgz#85ffa81942c25012d8231096ddf679c03042c717" - integrity sha512-ogtf+5AB/O+nM6DIeBUNr2fuT7ot9Qg/1harBfBtaP13ekEWFQEEMP94BCB7zaNW3gyY+8SHYF00rnqYwXKWOA== - dependencies: - debug "^2.6.9" - resolve "^1.13.1" - -eslint-module-utils@^2.6.0: - version "2.6.0" - resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.6.0.tgz#579ebd094f56af7797d19c9866c9c9486629bfa6" - integrity sha512-6j9xxegbqe8/kZY8cYpcp0xhbK0EgJlg3g9mib3/miLaExuuwc3n5UEfSnU6hWMbT0FAYVvDbL9RrRgpUeQIvA== - dependencies: - debug "^2.6.9" - pkg-dir "^2.0.0" - -eslint-plugin-babel@5.3.1: - version "5.3.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-babel/-/eslint-plugin-babel-5.3.1.tgz#75a2413ffbf17e7be57458301c60291f2cfbf560" - integrity sha512-VsQEr6NH3dj664+EyxJwO4FCYm/00JhYb3Sk3ft8o+fpKuIfQ9TaW6uVUfvwMXHcf/lsnRIoyFPsLMyiWCSL/g== - dependencies: - eslint-rule-composer "^0.3.0" - -eslint-plugin-es@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-es/-/eslint-plugin-es-3.0.1.tgz#75a7cdfdccddc0589934aeeb384175f221c57893" - integrity sha512-GUmAsJaN4Fc7Gbtl8uOBlayo2DqhwWvEzykMHSCZHU3XdJ+NSzzZcVhXh3VxX5icqQ+oQdIEawXX8xkR3mIFmQ== - dependencies: - eslint-utils "^2.0.0" - regexpp "^3.0.0" - -eslint-plugin-import@2.22.1: - version "2.22.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.22.1.tgz#0896c7e6a0cf44109a2d97b95903c2bb689d7702" - integrity sha512-8K7JjINHOpH64ozkAhpT3sd+FswIZTfMZTjdx052pnWrgRCVfp8op9tbjpAk3DdUeI/Ba4C8OjdC0r90erHEOw== - dependencies: - array-includes "^3.1.1" - array.prototype.flat "^1.2.3" - contains-path "^0.1.0" - debug "^2.6.9" - doctrine "1.5.0" - eslint-import-resolver-node "^0.3.4" - eslint-module-utils "^2.6.0" - has "^1.0.3" - minimatch "^3.0.4" - object.values "^1.1.1" - read-pkg-up "^2.0.0" - resolve "^1.17.0" - tsconfig-paths "^3.9.0" - -eslint-plugin-jane@^9.0.6: - version "9.0.6" - resolved "https://registry.yarnpkg.com/eslint-plugin-jane/-/eslint-plugin-jane-9.0.6.tgz#eeef17db748ef4cdacf66a54d08e5b1e99b7372b" - integrity sha512-TREFB1cewQqx4Bv6I1hAZ3oYmWPFAwUdEV8Kh2bvuGpA1V2hGWEJi6XqLUUkuo+hyVRYcceQp4MGYdgj0PtbLg== - dependencies: - "@typescript-eslint/eslint-plugin" "4.11.0" - "@typescript-eslint/parser" "4.11.0" - babel-eslint "10.1.0" - eslint-config-prettier "7.1.0" - eslint-plugin-babel "5.3.1" - eslint-plugin-import "2.22.1" - eslint-plugin-jest "24.1.3" - eslint-plugin-jsx-a11y "6.4.1" - eslint-plugin-node "11.1.0" - eslint-plugin-prettier "3.3.0" - eslint-plugin-promise "4.2.1" - eslint-plugin-react "7.21.5" - eslint-plugin-react-hooks "4.2.0" - eslint-plugin-unicorn "24.0.0" - -eslint-plugin-jest@24.1.3: - version "24.1.3" - resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-24.1.3.tgz#fa3db864f06c5623ff43485ca6c0e8fc5fe8ba0c" - integrity sha512-dNGGjzuEzCE3d5EPZQ/QGtmlMotqnYWD/QpCZ1UuZlrMAdhG5rldh0N0haCvhGnUkSeuORS5VNROwF9Hrgn3Lg== - dependencies: - "@typescript-eslint/experimental-utils" "^4.0.1" - -eslint-plugin-jsx-a11y@6.4.1: - version "6.4.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.4.1.tgz#a2d84caa49756942f42f1ffab9002436391718fd" - integrity sha512-0rGPJBbwHoGNPU73/QCLP/vveMlM1b1Z9PponxO87jfr6tuH5ligXbDT6nHSSzBC8ovX2Z+BQu7Bk5D/Xgq9zg== - dependencies: - "@babel/runtime" "^7.11.2" - aria-query "^4.2.2" - array-includes "^3.1.1" - ast-types-flow "^0.0.7" - axe-core "^4.0.2" - axobject-query "^2.2.0" - damerau-levenshtein "^1.0.6" - emoji-regex "^9.0.0" - has "^1.0.3" - jsx-ast-utils "^3.1.0" - language-tags "^1.0.5" - -eslint-plugin-node@11.1.0: - version "11.1.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-node/-/eslint-plugin-node-11.1.0.tgz#c95544416ee4ada26740a30474eefc5402dc671d" - integrity sha512-oUwtPJ1W0SKD0Tr+wqu92c5xuCeQqB3hSCHasn/ZgjFdA9iDGNkNf2Zi9ztY7X+hNuMib23LNGRm6+uN+KLE3g== - dependencies: - eslint-plugin-es "^3.0.0" - eslint-utils "^2.0.0" - ignore "^5.1.1" - minimatch "^3.0.4" - resolve "^1.10.1" - semver "^6.1.0" - -eslint-plugin-prettier@3.3.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.3.0.tgz#61e295349a65688ffac0b7808ef0a8244bdd8d40" - integrity sha512-tMTwO8iUWlSRZIwS9k7/E4vrTsfvsrcM5p1eftyuqWH25nKsz/o6/54I7jwQ/3zobISyC7wMy9ZsFwgTxOcOpQ== +eslint-plugin-prettier@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-4.0.0.tgz#8b99d1e4b8b24a762472b4567992023619cb98e0" + integrity sha512-98MqmCJ7vJodoQK359bqQWaxOE0CS8paAz/GgjaZLyex4TTk3g9HugoO89EqWCrFiOqn9EVvcoo7gZzONCWVwQ== dependencies: prettier-linter-helpers "^1.0.0" -eslint-plugin-promise@4.2.1: - version "4.2.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-4.2.1.tgz#845fd8b2260ad8f82564c1222fce44ad71d9418a" - integrity sha512-VoM09vT7bfA7D+upt+FjeBO5eHIJQBUWki1aPvB+vbNiHS3+oGIJGIeyBtKQTME6UPXXy3vV07OL1tHd3ANuDw== - -eslint-plugin-react-hooks@4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.2.0.tgz#8c229c268d468956334c943bb45fc860280f5556" - integrity sha512-623WEiZJqxR7VdxFCKLI6d6LLpwJkGPYKODnkH3D7WpOG5KM8yWueBd8TLsNAetEJNF5iJmolaAKO3F8yzyVBQ== - -eslint-plugin-react@7.21.5: - version "7.21.5" - resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.21.5.tgz#50b21a412b9574bfe05b21db176e8b7b3b15bff3" - integrity sha512-8MaEggC2et0wSF6bUeywF7qQ46ER81irOdWS4QWxnnlAEsnzeBevk1sWh7fhpCghPpXb+8Ks7hvaft6L/xsR6g== - dependencies: - array-includes "^3.1.1" - array.prototype.flatmap "^1.2.3" - doctrine "^2.1.0" - has "^1.0.3" - jsx-ast-utils "^2.4.1 || ^3.0.0" - object.entries "^1.1.2" - object.fromentries "^2.0.2" - object.values "^1.1.1" - prop-types "^15.7.2" - resolve "^1.18.1" - string.prototype.matchall "^4.0.2" - -eslint-plugin-unicorn@24.0.0: - version "24.0.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-unicorn/-/eslint-plugin-unicorn-24.0.0.tgz#08017ccd7ac704777d459cff6e13a35f54cbcab1" - integrity sha512-NfLjIZas/ZUwc3S+pUtbTRqgCkODxPEkJBJ5ZR8wIu90BmX4jmXp10hoOZMScR2CR1NYTtrx0OX4BQvBnbzZzA== - dependencies: - ci-info "^2.0.0" - clean-regexp "^1.0.0" - eslint-ast-utils "^1.1.0" - eslint-template-visitor "^2.2.1" - eslint-utils "^2.1.0" - import-modules "^2.0.0" - lodash "^4.17.20" - pluralize "^8.0.0" - read-pkg-up "^7.0.1" - regexp-tree "^0.1.21" - reserved-words "^0.1.2" - safe-regex "^2.1.1" - semver "^7.3.4" - -eslint-rule-composer@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/eslint-rule-composer/-/eslint-rule-composer-0.3.0.tgz#79320c927b0c5c0d3d3d2b76c8b4a488f25bbaf9" - integrity sha512-bt+Sh8CtDmn2OajxvNO+BX7Wn4CIWMpTRm3MaiKPCQcnnlm0CS2mhui6QaoeQugs+3Kj2ESKEEGJUdVafwhiCg== - -eslint-scope@^5.0.0, eslint-scope@^5.1.1: +eslint-scope@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== @@ -947,64 +739,61 @@ eslint-scope@^5.0.0, eslint-scope@^5.1.1: esrecurse "^4.3.0" estraverse "^4.1.1" -eslint-template-visitor@^2.2.1: - version "2.2.2" - resolved "https://registry.yarnpkg.com/eslint-template-visitor/-/eslint-template-visitor-2.2.2.tgz#46cd2b06eca5c1d97369aadd96e131df88fdd59c" - integrity sha512-SkcLjzKw3JjKTWHacRDeLBa2gxb600zbCKTkXj/V97QnZ9yxkknoPL8vc8PFueqbFXP7mYNTQzjCjcMpTRdRaA== +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== + dependencies: + esrecurse "^4.3.0" + estraverse "^5.2.0" + +eslint-utils@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-3.0.0.tgz#8aebaface7345bb33559db0a1f13a1d2d48c3672" + integrity sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA== dependencies: - babel-eslint "^10.1.0" eslint-visitor-keys "^2.0.0" - esquery "^1.3.1" - multimap "^1.1.0" - -eslint-utils@^2.0.0, eslint-utils@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-2.1.0.tgz#d2de5e03424e707dc10c74068ddedae708741b27" - integrity sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg== - dependencies: - eslint-visitor-keys "^1.1.0" - -eslint-visitor-keys@^1.0.0, eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e" - integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ== eslint-visitor-keys@^2.0.0: version "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@^7.32.0: - version "7.32.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.32.0.tgz#c6d328a14be3fb08c8d1d21e12c02fdb7a2a812d" - integrity sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA== +eslint-visitor-keys@^3.0.0, eslint-visitor-keys@^3.1.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@^8.3.0: + version "8.4.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.4.0.tgz#2fa01b271cafc28addc2719e551acff5e89f5230" + integrity sha512-kv0XQcAQJL/VD9THQKhTQZVqkJKA+tIj/v2ZKNaIHRAADcJWFb+B/BAewUYuF6UVg1s2xC5qXVoDk0G8sKGeTA== dependencies: - "@babel/code-frame" "7.12.11" - "@eslint/eslintrc" "^0.4.3" - "@humanwhocodes/config-array" "^0.5.0" + "@eslint/eslintrc" "^1.0.5" + "@humanwhocodes/config-array" "^0.9.2" ajv "^6.10.0" chalk "^4.0.0" cross-spawn "^7.0.2" - debug "^4.0.1" + debug "^4.3.2" doctrine "^3.0.0" enquirer "^2.3.5" escape-string-regexp "^4.0.0" - eslint-scope "^5.1.1" - eslint-utils "^2.1.0" - eslint-visitor-keys "^2.0.0" - espree "^7.3.1" + eslint-scope "^7.1.0" + eslint-utils "^3.0.0" + eslint-visitor-keys "^3.1.0" + espree "^9.2.0" esquery "^1.4.0" esutils "^2.0.2" fast-deep-equal "^3.1.3" file-entry-cache "^6.0.1" functional-red-black-tree "^1.0.1" - glob-parent "^5.1.2" + glob-parent "^6.0.1" globals "^13.6.0" ignore "^4.0.6" import-fresh "^3.0.0" imurmurhash "^0.1.4" is-glob "^4.0.0" - js-yaml "^3.13.1" + js-yaml "^4.1.0" json-stable-stringify-without-jsonify "^1.0.1" levn "^0.4.1" lodash.merge "^4.6.2" @@ -1012,35 +801,27 @@ eslint@^7.32.0: natural-compare "^1.4.0" optionator "^0.9.1" progress "^2.0.0" - regexpp "^3.1.0" + regexpp "^3.2.0" semver "^7.2.1" - strip-ansi "^6.0.0" + strip-ansi "^6.0.1" strip-json-comments "^3.1.0" - table "^6.0.9" text-table "^0.2.0" v8-compile-cache "^2.0.3" -espree@^7.3.0, espree@^7.3.1: - version "7.3.1" - resolved "https://registry.yarnpkg.com/espree/-/espree-7.3.1.tgz#f2df330b752c6f55019f8bd89b7660039c1bbbb6" - integrity sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g== +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== dependencies: - acorn "^7.4.0" + acorn "^8.6.0" acorn-jsx "^5.3.1" - eslint-visitor-keys "^1.3.0" + eslint-visitor-keys "^3.1.0" esprima@^4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== -esquery@^1.3.1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.3.1.tgz#b78b5828aa8e214e29fb74c4d5b752e1c033da57" - integrity sha512-olpvt9QG0vniUBZspVRN6lwB7hOZoTRtT+jzR+tS4ffYx2mzbw+z0XCOk44aaLYKApNX5nMm+E+P6o25ip/DHQ== - dependencies: - estraverse "^5.1.0" - esquery@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.4.0.tgz#2148ffc38b82e8c7057dfed48425b3e61f0f24a5" @@ -1070,10 +851,10 @@ esutils@^2.0.2: resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== -execa@^5.0.0: - version "5.0.1" - resolved "https://registry.yarnpkg.com/execa/-/execa-5.0.1.tgz#aee63b871c9b2cb56bc9addcd3c70a785c6bf0d1" - integrity sha512-4hFTjFbFzQa3aCLobpbPJR/U+VoL1wdV5ozOWjeet0AWDeYr9UFGM1eUFWHX+VtOWFq4p0xXUXfW1YxUaP4fpw== +execa@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd" + integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg== dependencies: cross-spawn "^7.0.3" get-stream "^6.0.0" @@ -1095,6 +876,17 @@ fast-diff@^1.1.2: resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03" integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w== +fast-glob@^3.0.3: + version "3.2.7" + resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.7.tgz#fd6cb7a2d7e9aa7a7846111e85a196d6b2f766a1" + integrity sha512-rYGMRwip6lUMvYD3BTScMwT1HtAs2d71SMv66Vrxs0IekGZEjhM0pcMfjQPnknBt2zeCwQMEupiN02ZP4DiT1Q== + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.2" + merge2 "^1.3.0" + micromatch "^4.0.4" + fast-glob@^3.1.1: version "3.2.5" resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.5.tgz#7939af2a656de79a4f1901903ee8adcaa7cb9661" @@ -1145,20 +937,15 @@ fill-range@^7.0.1: dependencies: to-regex-range "^5.0.1" -find-up@^2.0.0, find-up@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" - integrity sha1-RdG35QbHF93UgndaK3eSCjwMV6c= - dependencies: - locate-path "^2.0.0" +find-line-column@^0.5.2: + version "0.5.2" + resolved "https://registry.yarnpkg.com/find-line-column/-/find-line-column-0.5.2.tgz#db00238ff868551a182e74a103416d295a98c8ca" + integrity sha1-2wAjj/hoVRoYLnShA0FtKVqYyMo= -find-up@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19" - integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== - dependencies: - locate-path "^5.0.0" - path-exists "^4.0.0" +find-root@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/find-root/-/find-root-1.1.0.tgz#abcfc8ba76f708c42a97b3d685b7e9450bfb9ce4" + integrity sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng== flat-cache@^3.0.4: version "3.0.4" @@ -1173,6 +960,13 @@ flatted@^3.1.0: resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.1.1.tgz#c4b489e80096d9df1dfc97c79871aea7c617c469" integrity sha512-zAoAQiudy+r5SvnSw3KJy5os/oRJYHzrzja/tBDqrZtNhUw8bt6y8OBzMWcjWr+8liV8Eb6yOhw8WZ7VFZ5ZzA== +formdata-polyfill@^4.0.10: + version "4.0.10" + resolved "https://registry.yarnpkg.com/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz#24807c31c9d402e002ab3d8c720144ceb8848423" + integrity sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g== + dependencies: + fetch-blob "^3.1.2" + fs.realpath@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" @@ -1188,25 +982,21 @@ functional-red-black-tree@^1.0.1: resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc= -get-intrinsic@^1.0.1, get-intrinsic@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.0.2.tgz#6820da226e50b24894e08859469dc68361545d49" - integrity sha512-aeX0vrFm21ILl3+JpFFRNe9aUvp6VFZb2/CTbgLb8j75kOhvoNYjt9d8KA/tJG4gSo8nzEDedRl0h7vDmBYRVg== - dependencies: - function-bind "^1.1.1" - has "^1.0.3" - has-symbols "^1.0.1" - -get-own-enumerable-property-symbols@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz#b5fde77f22cbe35f390b4e089922c50bce6ef664" - integrity sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g== +gensync@^1.0.0-beta.2: + version "1.0.0-beta.2" + resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0" + integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg== get-stream@^6.0.0: version "6.0.1" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== +git-hooks-list@1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/git-hooks-list/-/git-hooks-list-1.0.3.tgz#be5baaf78203ce342f2f844a9d2b03dba1b45156" + integrity sha512-Y7wLWcrLUXwk2noSka166byGCvhMtDRpgHdzCno1UQv/n/Hegp++a2xBWJL1lJarnKD3SWaljD+0z1ztqxuKyQ== + glob-parent@^5.1.0: version "5.1.1" resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.1.tgz#b6c1ef417c4e5663ea498f1c45afac6916bbc229" @@ -1221,6 +1011,13 @@ glob-parent@^5.1.2: dependencies: is-glob "^4.0.1" +glob-parent@^6.0.1: + version "6.0.2" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3" + integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A== + dependencies: + is-glob "^4.0.3" + glob@^7.1.3: version "7.1.6" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" @@ -1264,10 +1061,24 @@ globals@^13.9.0: dependencies: type-fest "^0.20.2" -globby@^11.0.1: - version "11.0.2" - resolved "https://registry.yarnpkg.com/globby/-/globby-11.0.2.tgz#1af538b766a3b540ebfb58a32b2e2d5897321d83" - integrity sha512-2ZThXDvvV8fYFRVIxnrMQBipZQDr7MxKAmQK1vujaj9/7eF0efG7BPUKJ7jP7G5SLF37xKDXvO4S/KKLj/Z0og== +globby@10.0.0: + version "10.0.0" + resolved "https://registry.yarnpkg.com/globby/-/globby-10.0.0.tgz#abfcd0630037ae174a88590132c2f6804e291072" + integrity sha512-3LifW9M4joGZasyYPz2A1U74zbC/45fvpXUvO/9KbSa+VV0aGZarWkfdgKyR9sExNP0t0x0ss/UMJpNpcaTspw== + dependencies: + "@types/glob" "^7.1.1" + array-union "^2.1.0" + dir-glob "^3.0.1" + fast-glob "^3.0.3" + glob "^7.1.3" + ignore "^5.1.1" + merge2 "^1.2.3" + slash "^3.0.0" + +globby@^11.0.4: + version "11.0.4" + resolved "https://registry.yarnpkg.com/globby/-/globby-11.0.4.tgz#2cbaff77c2f2a62e71e9b2813a67b97a3a3001a5" + integrity sha512-9O4MVG9ioZJ08ffbcyVYyLOJLk5JQ688pJ4eMGLpdWLHq/Wr1D9BlriLQyL0E+jbkuePVZXYFj47QM/v093wHg== dependencies: array-union "^2.1.0" dir-glob "^3.0.1" @@ -1276,11 +1087,6 @@ globby@^11.0.1: merge2 "^1.3.0" slash "^3.0.0" -graceful-fs@^4.1.2: - version "4.2.4" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.4.tgz#2256bde14d3632958c465ebc96dc467ca07a29fb" - integrity sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw== - handlebars@^4.7.7: version "4.7.7" resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.7.7.tgz#9ce33416aad02dbd6c8fafa8240d5d98004945a1" @@ -1303,11 +1109,6 @@ has-flag@^4.0.0: resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== -has-symbols@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.1.tgz#9f5214758a44196c406d9bd76cebf81ec2dd31e8" - integrity sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg== - has@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" @@ -1315,20 +1116,15 @@ has@^1.0.3: dependencies: function-bind "^1.1.1" -hosted-git-info@^2.1.4: - version "2.8.8" - resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.8.tgz#7539bd4bc1e0e0a895815a2e0262420b12858488" - integrity sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg== - human-signals@^2.1.0: version "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.2: - version "7.0.2" - resolved "https://registry.yarnpkg.com/husky/-/husky-7.0.2.tgz#21900da0f30199acca43a46c043c4ad84ae88dff" - integrity sha512-8yKEWNX4z2YsofXAMT7KvA1g8p+GxtB1ffV8XtpAEGuXNAbCV5wdNKH+qTpw8SM9fh4aMPDR+yQuKfgnreyZlg== +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" @@ -1340,6 +1136,19 @@ ignore@^5.1.1, ignore@^5.1.4: resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.1.8.tgz#f150a8b50a34289b33e22f5889abd4d8016f0e57" integrity sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw== +ignore@^5.1.8: + version "5.1.9" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.1.9.tgz#9ec1a5cbe8e1446ec60d4420060d43aa6e7382fb" + integrity sha512-2zeMQpbKz5dhZ9IwL0gbxSW5w0NK/MSAMtNuhgIHEPmaU3vPdKPL0UdvUCXs5SS4JAwsBxysK5sFMW8ocFiVjQ== + +import-fresh@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-2.0.0.tgz#d81355c15612d386c61f9ddd3922d4304822a546" + integrity sha1-2BNVwVYS04bGH53dOSLUMEgipUY= + dependencies: + caller-path "^2.0.0" + resolve-from "^3.0.0" + import-fresh@^3.0.0, import-fresh@^3.2.1: version "3.3.0" resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b" @@ -1348,10 +1157,54 @@ import-fresh@^3.0.0, import-fresh@^3.2.1: parent-module "^1.0.0" resolve-from "^4.0.0" -import-modules@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/import-modules/-/import-modules-2.1.0.tgz#abe7df297cb6c1f19b57246eb8b8bd9664b6d8c2" - integrity sha512-8HEWcnkbGpovH9yInoisxaSoIg9Brbul+Ju3Kqe2UsYDUBJD/iQjSgEj0zPcTDPKfPp2fs5xlv1i+JSye/m1/A== +import-sort-config@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/import-sort-config/-/import-sort-config-6.0.0.tgz#7313775b761eb479ab2d383945ecb15c008763b8" + integrity sha512-FJpF2F3+30JXqH1rJKeajxoSCHCueai3/0ntDN4y3GJL5pjnLDt/VjCy5FzjH7u0NHnllL/zVEf1wfmsVxJlPQ== + dependencies: + cosmiconfig "^5.0.5" + find-root "^1.0.0" + minimatch "^3.0.4" + resolve-from "^4.0.0" + +import-sort-parser-babylon@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/import-sort-parser-babylon/-/import-sort-parser-babylon-6.0.0.tgz#e1a4c28e0794ad7d9ff36cd045559d8ca8c38be7" + integrity sha512-NyShTiNhTh4Vy7kJUVe6CuvOaQAzzfSIT72wtp3CzGjz8bHjNj59DCAjncuviicmDOgVAgmLuSh1WMcLYAMWGg== + dependencies: + "@babel/core" "^7.2.2" + "@babel/parser" "^7.0.0-beta.54" + "@babel/traverse" "^7.0.0-beta.54" + "@babel/types" "^7.0.0-beta.54" + find-line-column "^0.5.2" + +import-sort-parser-typescript@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/import-sort-parser-typescript/-/import-sort-parser-typescript-6.0.0.tgz#98e73cef9e077d073e798722ed59e215b51c17e2" + integrity sha512-pgxnr3I156DonupQriNsgDb2zJN9TxrqCCIN1rwT/6SDO1rkJb+a0fjqshCjlgacTSA92oPAp1eAwmQUeZi3dw== + dependencies: + typescript "^3.2.4" + +import-sort-parser@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/import-sort-parser/-/import-sort-parser-6.0.0.tgz#0d901f264d98ed7caaae71f66128a686f828f2f4" + integrity sha512-H5L+d6HnqHvThB0GmAA3/43Sv74oCwL0iMk3/ixOv0LRJ69rCyHXeG/+UadMHrD2FefEmgPIWboEPAG7gsQrkA== + +import-sort-style@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/import-sort-style/-/import-sort-style-6.0.0.tgz#088523f056e5064c34a6426f4733674d81b42e6a" + integrity sha512-z0H5PKs7YoDeKxNYXv2AA1mjjZFY07fjeNCXUdTM3ymJtWeeEoTm8CQkFm2l+KPZoMczIvdwzJpWkkOamBnsPw== + +import-sort@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/import-sort/-/import-sort-6.0.0.tgz#48ba2a7b53f2566ca1dd004327ea271321ad64ff" + integrity sha512-XUwSQMGAGmcW/wfshFE0gXgb1NPF6ibbQD6wDr3KRDykZf/lZj0jf58Bwa02xNb8EE59oz7etFe9OHnJocUW5Q== + dependencies: + detect-newline "^2.1.0" + import-sort-parser "^6.0.0" + import-sort-style "^6.0.0" + is-builtin-module "^3.0.0" + resolve "^1.8.1" imurmurhash@^0.1.4: version "0.1.4" @@ -1376,36 +1229,29 @@ inherits@2: resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== -internal-slot@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.2.tgz#9c2e9fb3cd8e5e4256c6f45fe310067fcfa378a3" - integrity sha512-2cQNfwhAfJIkU4KZPkDI+Gj5yNNnbqi40W9Gge6dfnk4TocEVm00B3bdiL+JINrbGJil2TeHvM4rETGzk/f/0g== - dependencies: - es-abstract "^1.17.0-next.1" - has "^1.0.3" - side-channel "^1.0.2" - is-arrayish@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" integrity sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0= -is-callable@^1.1.4, is-callable@^1.2.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.2.tgz#c7c6715cd22d4ddb48d3e19970223aceabb080d9" - integrity sha512-dnMqspv5nU3LoewK2N/y7KLtxtakvTuaCsU9FU50/QDmdbHNy/4/JuRtMHqRU22o3q+W89YQndQEeCVwK+3qrA== +is-builtin-module@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-3.1.0.tgz#6fdb24313b1c03b75f8b9711c0feb8c30b903b00" + integrity sha512-OV7JjAgOTfAFJmHZLvpSTb4qi0nIILDV1gWPYDnDJUTNFM5aGlRAhk4QcT8i7TuAleeEV5Fdkqn3t4mS+Q11fg== + dependencies: + builtin-modules "^3.0.0" -is-core-module@^2.1.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.2.0.tgz#97037ef3d52224d85163f5597b2b63d9afed981a" - integrity sha512-XRAfAdyyY5F5cOXn7hYQDqh2Xmii+DEfIcQGxK/uNwMHhIkPWO0g8msXcbzLe+MpGoR951MlqM/2iIlU4vKDdQ== +is-core-module@^2.2.0: + version "2.8.0" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.8.0.tgz#0321336c3d0925e497fd97f5d95cb114a5ccd548" + integrity sha512-vd15qHsaqrRL7dtH6QNuy0ndJmRDrS9HAM1CAiSifNUFv4x1a0CCVsj18hJ1mShxIG6T2i1sO78MkP56r0nYRw== dependencies: has "^1.0.3" -is-date-object@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.2.tgz#bda736f2cd8fd06d32844e7743bfa7494c3bfd7e" - integrity sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g== +is-directory@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/is-directory/-/is-directory-0.3.1.tgz#61339b6f2475fc772fd9c9d83f5c8575dc154ae1" + integrity sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE= is-extglob@^2.1.1: version "2.1.1" @@ -1417,6 +1263,11 @@ is-fullwidth-code-point@^3.0.0: resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== +is-fullwidth-code-point@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz#fae3167c729e7463f8461ce512b080a49268aa88" + integrity sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ== + is-glob@^4.0.0, is-glob@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc" @@ -1424,66 +1275,34 @@ is-glob@^4.0.0, is-glob@^4.0.1: dependencies: is-extglob "^2.1.1" -is-negative-zero@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.1.tgz#3de746c18dda2319241a53675908d8f766f11c24" - integrity sha512-2z6JzQvZRa9A2Y7xC6dQQm4FSTSTNWjKIYYTt4246eMTJmIo0Q+ZyOsU66X8lxK1AbB92dFeglPLrhwpeRKO6w== +is-glob@^4.0.3: + version "4.0.3" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" + integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== + dependencies: + is-extglob "^2.1.1" is-number@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== -is-obj@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-1.0.1.tgz#3e4729ac1f5fde025cd7d83a896dab9f4f67db0f" - integrity sha1-PkcprB9f3gJc19g6iW2rn09n2w8= - -is-regex@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.1.tgz#c6f98aacc546f6cec5468a07b7b153ab564a57b9" - integrity sha512-1+QkEcxiLlB7VEyFtyBg94e08OAsvq7FUBgApTq/w2ymCLyKJgDPsybBENVtA7XCQEgEXxKPonG+mvYRxh/LIg== - dependencies: - has-symbols "^1.0.1" - -is-regexp@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-regexp/-/is-regexp-1.0.0.tgz#fd2d883545c46bac5a633e7b9a09e87fa2cb5069" - integrity sha1-/S2INUXEa6xaYz57mgnof6LLUGk= +is-plain-obj@2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-2.1.0.tgz#45e42e37fccf1f40da8e5f76ee21515840c09287" + integrity sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA== is-stream@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.0.tgz#bde9c32680d6fae04129d6ac9d921ce7815f78e3" integrity sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw== -is-string@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/is-string/-/is-string-1.0.5.tgz#40493ed198ef3ff477b8c7f92f644ec82a5cd3a6" - integrity sha512-buY6VNRjhQMiF1qWDouloZlQbRhDPCebwxSjxMjxgemYT46YMd2NR0/H+fBhEfWX4A/w9TBJ+ol+okqJKFE6vQ== - -is-symbol@^1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.3.tgz#38e1014b9e6329be0de9d24a414fd7441ec61937" - integrity sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ== - dependencies: - has-symbols "^1.0.1" - -is-unicode-supported@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" - integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw== - -isarray@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE= - isexe@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= -"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: +js-tokens@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== @@ -1496,63 +1315,45 @@ js-yaml@^3.13.1: argparse "^1.0.7" esprima "^4.0.0" +js-yaml@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" + integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== + dependencies: + argparse "^2.0.1" + jsesc@^2.5.1: version "2.5.2" resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== -json-parse-even-better-errors@^2.3.0: - version "2.3.1" - resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" - integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== +json-parse-better-errors@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9" + integrity sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw== json-schema-traverse@^0.4.1: version "0.4.1" resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== -json-schema-traverse@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2" - integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== - json-stable-stringify-without-jsonify@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" integrity sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE= -json5@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.1.tgz#779fb0018604fa854eacbf6252180d83543e3dbe" - integrity sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow== +json5@^2.1.2: + version "2.2.0" + resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.0.tgz#2dfefe720c6ba525d9ebd909950f0515316c89a3" + integrity sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA== dependencies: - minimist "^1.2.0" + minimist "^1.2.5" jsonc-parser@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/jsonc-parser/-/jsonc-parser-3.0.0.tgz#abdd785701c7e7eaca8a9ec8cf070ca51a745a22" integrity sha512-fQzRfAbIBnR0IQvftw9FJveWiHp72Fg20giDrHz6TdfB12UH/uue0D3hm57UB5KgAVuniLMCaS8P1IMj9NR7cA== -"jsx-ast-utils@^2.4.1 || ^3.0.0", jsx-ast-utils@^3.1.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-3.2.0.tgz#41108d2cec408c3453c1bbe8a4aae9e1e2bd8f82" - integrity sha512-EIsmt3O3ljsU6sot/J4E1zDRxfBNrhjyf/OKjlydwgEimQuznlM4Wv7U+ueONJMyEn1WRE0K8dhi3dVAXYT24Q== - dependencies: - array-includes "^3.1.2" - object.assign "^4.1.2" - -language-subtag-registry@~0.3.2: - version "0.3.21" - resolved "https://registry.yarnpkg.com/language-subtag-registry/-/language-subtag-registry-0.3.21.tgz#04ac218bea46f04cb039084602c6da9e788dd45a" - integrity sha512-L0IqwlIXjilBVVYKFT37X9Ih11Um5NEl9cbJIuU/SwP/zEEAbBPOnEeeuxVMf45ydWQRDQN3Nqc96OgbH1K+Pg== - -language-tags@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/language-tags/-/language-tags-1.0.5.tgz#d321dbc4da30ba8bf3024e040fa5c14661f9193a" - integrity sha1-0yHbxNowuovzAk4ED6XBRmH5GTo= - dependencies: - language-subtag-registry "~0.3.2" - levn@^0.4.1: version "0.4.1" resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" @@ -1561,107 +1362,50 @@ levn@^0.4.1: prelude-ls "^1.2.1" type-check "~0.4.0" -lines-and-columns@^1.1.6: - version "1.1.6" - resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00" - integrity sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA= +lilconfig@2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-2.0.4.tgz#f4507d043d7058b380b6a8f5cb7bcd4b34cee082" + integrity sha512-bfTIN7lEsiooCocSISTWXkiWJkRqtL9wYtYy+8EK3Y41qh3mpwPU0ycTOgjdY9ErwXCc8QyrQp82bdL0Xkm9yA== -lint-staged@^11.1.2: - version "11.1.2" - resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-11.1.2.tgz#4dd78782ae43ee6ebf2969cad9af67a46b33cd90" - integrity sha512-6lYpNoA9wGqkL6Hew/4n1H6lRqF3qCsujVT0Oq5Z4hiSAM7S6NksPJ3gnr7A7R52xCtiZMcEUNNQ6d6X5Bvh9w== +lint-staged@^12.1.2: + version "12.1.2" + resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-12.1.2.tgz#90c571927e1371fc133e720671dd7989eab53f74" + integrity sha512-bSMcQVqMW98HLLLR2c2tZ+vnDCnx4fd+0QJBQgN/4XkdspGRPc8DGp7UuOEBe1ApCfJ+wXXumYnJmU+wDo7j9A== dependencies: - chalk "^4.1.1" - cli-truncate "^2.1.0" - commander "^7.2.0" - cosmiconfig "^7.0.0" - debug "^4.3.1" + cli-truncate "^3.1.0" + colorette "^2.0.16" + commander "^8.3.0" + debug "^4.3.2" enquirer "^2.3.6" - execa "^5.0.0" - listr2 "^3.8.2" - log-symbols "^4.1.0" + execa "^5.1.1" + lilconfig "2.0.4" + listr2 "^3.13.3" micromatch "^4.0.4" normalize-path "^3.0.0" - please-upgrade-node "^3.2.0" - string-argv "0.3.1" - stringify-object "^3.3.0" + object-inspect "^1.11.0" + string-argv "^0.3.1" + supports-color "^9.0.2" + yaml "^1.10.2" -listr2@^3.8.2: - version "3.9.0" - resolved "https://registry.yarnpkg.com/listr2/-/listr2-3.9.0.tgz#27f23c91ba4fdf513b0682bf604bc6b0ab36b6c1" - integrity sha512-+JxQt7Vi4WEWgJsxmOEX9lDbCumrb3mrEYIeE1VI7I4lf2rXE4v9pq3RMVNp+a9s6mCgc/IsF0ppHsLrx2BEAw== +listr2@^3.13.3: + version "3.13.5" + resolved "https://registry.yarnpkg.com/listr2/-/listr2-3.13.5.tgz#105a813f2eb2329c4aae27373a281d610ee4985f" + integrity sha512-3n8heFQDSk+NcwBn3CgxEibZGaRzx+pC64n3YjpMD1qguV4nWus3Al+Oo3KooqFKTQEJ1v7MmnbnyyNspgx3NA== dependencies: cli-truncate "^2.1.0" - colorette "^1.2.2" + colorette "^2.0.16" log-update "^4.0.0" p-map "^4.0.0" - rxjs "^6.6.7" + rfdc "^1.3.0" + rxjs "^7.4.0" through "^2.3.8" wrap-ansi "^7.0.0" -load-json-file@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-2.0.0.tgz#7947e42149af80d696cbf797bcaabcfe1fe29ca8" - integrity sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg= - dependencies: - graceful-fs "^4.1.2" - parse-json "^2.2.0" - pify "^2.0.0" - strip-bom "^3.0.0" - -locate-path@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" - integrity sha1-K1aLJl7slExtnA3pw9u7ygNUzY4= - dependencies: - p-locate "^2.0.0" - path-exists "^3.0.0" - -locate-path@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" - integrity sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g== - dependencies: - p-locate "^4.1.0" - -lodash.clonedeep@^4.5.0: - version "4.5.0" - resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef" - integrity sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8= - -lodash.get@^4.4.2: - version "4.4.2" - resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99" - integrity sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk= - lodash.merge@^4.6.2: version "4.6.2" resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== -lodash.truncate@^4.4.2: - version "4.4.2" - resolved "https://registry.yarnpkg.com/lodash.truncate/-/lodash.truncate-4.4.2.tgz#5a350da0b1113b837ecfffd5812cbe58d6eae193" - integrity sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM= - -lodash.zip@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/lodash.zip/-/lodash.zip-4.2.0.tgz#ec6662e4896408ed4ab6c542a3990b72cc080020" - integrity sha1-7GZi5IlkCO1KtsVCo5kLcswIACA= - -lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20: - version "4.17.20" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52" - integrity sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA== - -log-symbols@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503" - integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg== - dependencies: - chalk "^4.1.0" - is-unicode-supported "^0.1.0" - log-update@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/log-update/-/log-update-4.0.0.tgz#589ecd352471f2a1c0c570287543a64dfd20e0a1" @@ -1672,13 +1416,6 @@ log-update@^4.0.0: slice-ansi "^4.0.0" wrap-ansi "^6.2.0" -loose-envify@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" - integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q== - dependencies: - js-tokens "^3.0.0 || ^4.0.0" - lru-cache@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920" @@ -1708,7 +1445,7 @@ merge-stream@^2.0.0: resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== -merge2@^1.3.0: +merge2@^1.2.3, merge2@^1.3.0: version "1.4.1" resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== @@ -1741,26 +1478,16 @@ minimatch@^3.0.0, minimatch@^3.0.4: dependencies: brace-expansion "^1.1.7" -minimist@^1.2.0, minimist@^1.2.5: +minimist@^1.2.5: version "1.2.5" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw== -ms@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= - ms@2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== -multimap@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/multimap/-/multimap-1.1.0.tgz#5263febc085a1791c33b59bb3afc6a76a2a10ca8" - integrity sha512-0ZIR9PasPxGXmRsEF8jsDzndzHDj7tIav+JUmvIFB/WHswliFnquxECT/De7GR4yg99ky/NlRKJT82G1y271bw== - natural-compare@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" @@ -1771,7 +1498,7 @@ neo-async@^2.6.0: resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== -node-fetch@*, node-fetch@^3.0.0: +node-fetch@*: version "3.0.0" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-3.0.0.tgz#79da7146a520036f2c5f644e4a26095f17e411ea" integrity sha512-bKMI+C7/T/SPU1lKnbQbwxptpCrG9ashG+VkytmXCPZyuM9jB6VU+hY0oi4lC8LxTtAeWdckNCTa3nrGsAdA3Q== @@ -1779,15 +1506,19 @@ node-fetch@*, node-fetch@^3.0.0: data-uri-to-buffer "^3.0.1" fetch-blob "^3.1.2" -normalize-package-data@^2.3.2, normalize-package-data@^2.5.0: - version "2.5.0" - resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz#e66db1838b200c1dfc233225d12cb36520e234a8" - integrity sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA== +node-fetch@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-3.1.0.tgz#714f4922dc270239487654eaeeab86b8206cb52e" + integrity sha512-QU0WbIfMUjd5+MUzQOYhenAazakV7Irh1SGkWCsRzBwvm4fAhzEUaHMJ6QLP7gWT6WO9/oH2zhKMMGMuIrDyKw== dependencies: - hosted-git-info "^2.1.4" - resolve "^1.10.0" - semver "2 || 3 || 4 || 5" - validate-npm-package-license "^3.0.1" + data-uri-to-buffer "^4.0.0" + fetch-blob "^3.1.2" + formdata-polyfill "^4.0.10" + +node-releases@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.1.tgz#3d1d395f204f1f2f29a54358b9fb678765ad2fc5" + integrity sha512-CqyzN6z7Q6aMeF/ktcMVTzhAHCEpf8SOarwpzpf8pNBY2k5/oM34UHldUwp8VKI7uxct2HxSRdJjBaZeESzcxA== normalize-path@^3.0.0: version "3.0.0" @@ -1801,60 +1532,10 @@ npm-run-path@^4.0.1: dependencies: path-key "^3.0.0" -object-assign@^4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" - integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM= - -object-inspect@^1.8.0, object-inspect@^1.9.0: - version "1.9.0" - resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.9.0.tgz#c90521d74e1127b67266ded3394ad6116986533a" - integrity sha512-i3Bp9iTqwhaLZBxGkRfo5ZbE07BQRT7MGu8+nNgwW9ItGp1TzCTw2DLEoWwjClxBjOFI/hWljTAmYGCEwmtnOw== - -object-keys@^1.0.12, object-keys@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" - integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== - -object.assign@^4.1.1, object.assign@^4.1.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.2.tgz#0ed54a342eceb37b38ff76eb831a0e788cb63940" - integrity sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ== - dependencies: - call-bind "^1.0.0" - define-properties "^1.1.3" - has-symbols "^1.0.1" - object-keys "^1.1.1" - -object.entries@^1.1.2: - version "1.1.3" - resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.3.tgz#c601c7f168b62374541a07ddbd3e2d5e4f7711a6" - integrity sha512-ym7h7OZebNS96hn5IJeyUmaWhaSM4SVtAPPfNLQEI2MYWCO2egsITb9nab2+i/Pwibx+R0mtn+ltKJXRSeTMGg== - dependencies: - call-bind "^1.0.0" - define-properties "^1.1.3" - es-abstract "^1.18.0-next.1" - has "^1.0.3" - -object.fromentries@^2.0.2: - version "2.0.3" - resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.3.tgz#13cefcffa702dc67750314a3305e8cb3fad1d072" - integrity sha512-IDUSMXs6LOSJBWE++L0lzIbSqHl9KDCfff2x/JSEIDtEUavUnyMYC2ZGay/04Zq4UT8lvd4xNhU4/YHKibAOlw== - dependencies: - call-bind "^1.0.0" - define-properties "^1.1.3" - es-abstract "^1.18.0-next.1" - has "^1.0.3" - -object.values@^1.1.1: - version "1.1.2" - resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.2.tgz#7a2015e06fcb0f546bd652486ce8583a4731c731" - integrity sha512-MYC0jvJopr8EK6dPBiO8Nb9mvjdypOachO5REGk6MXzujbBrAisKo3HmdEI6kZDL6fC31Mwee/5YbtMebixeag== - dependencies: - call-bind "^1.0.0" - define-properties "^1.1.3" - es-abstract "^1.18.0-next.1" - has "^1.0.3" +object-inspect@^1.11.0: + version "1.11.1" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.11.1.tgz#d4bd7d7de54b9a75599f59a00bd698c1f1c6549b" + integrity sha512-If7BjFlpkzzBeV1cqgT3OSWT3azyoxDGajR+iGnFBfVV2EWyDyWaZZW2ERDjUaY2QM8i5jI3Sj7mhsM4DDAqWA== once@^1.3.0: version "1.4.0" @@ -1889,34 +1570,6 @@ optionator@^0.9.1: type-check "^0.4.0" word-wrap "^1.2.3" -p-limit@^1.1.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8" - integrity sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q== - dependencies: - p-try "^1.0.0" - -p-limit@^2.2.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" - integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== - dependencies: - p-try "^2.0.0" - -p-locate@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" - integrity sha1-IKAQOyIqcMj9OcwuWAaA893l7EM= - dependencies: - p-limit "^1.1.0" - -p-locate@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" - integrity sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A== - dependencies: - p-limit "^2.2.0" - p-map@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/p-map/-/p-map-4.0.0.tgz#bb2f95a5eda2ec168ec9274e06a747c3e2904d2b" @@ -1924,16 +1577,6 @@ p-map@^4.0.0: dependencies: aggregate-error "^3.0.0" -p-try@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" - integrity sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M= - -p-try@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" - integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== - parent-module@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" @@ -1941,32 +1584,13 @@ parent-module@^1.0.0: dependencies: callsites "^3.0.0" -parse-json@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" - integrity sha1-9ID0BDTvgHQfhGkJn43qGPVaTck= - dependencies: - error-ex "^1.2.0" - -parse-json@^5.0.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-5.2.0.tgz#c76fc66dee54231c962b22bcc8a72cf2f99753cd" - integrity sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg== - dependencies: - "@babel/code-frame" "^7.0.0" - error-ex "^1.3.1" - json-parse-even-better-errors "^2.3.0" - lines-and-columns "^1.1.6" - -path-exists@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" - integrity sha1-zg6+ql94yxiSXqfYENe1mwEP1RU= - -path-exists@^4.0.0: +parse-json@^4.0.0: version "4.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" - integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== + resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-4.0.0.tgz#be35f5425be1f7f6c747184f98a788cb99477ee0" + integrity sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA= + dependencies: + error-ex "^1.3.1" + json-parse-better-errors "^1.0.1" path-is-absolute@^1.0.0: version "1.0.1" @@ -1983,18 +1607,16 @@ path-parse@^1.0.6: resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c" integrity sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw== -path-type@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/path-type/-/path-type-2.0.0.tgz#f012ccb8415b7096fc2daa1054c3d72389594c73" - integrity sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM= - dependencies: - pify "^2.0.0" - path-type@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== +picocolors@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" + integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== + picomatch@^2.0.5, picomatch@^2.2.1: version "2.2.2" resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.2.2.tgz#21f333e9b6b8eaff02468f5146ea406d345f4dad" @@ -2005,30 +1627,6 @@ picomatch@^2.2.3: resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.0.tgz#f1f061de8f6a4bf022892e2d128234fb98302972" integrity sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw== -pify@^2.0.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" - integrity sha1-7RQaasBDqEnqWISY59yosVMw6Qw= - -pkg-dir@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-2.0.0.tgz#f6d5d1109e19d63edf428e0bd57e12777615334b" - integrity sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s= - dependencies: - find-up "^2.1.0" - -please-upgrade-node@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/please-upgrade-node/-/please-upgrade-node-3.2.0.tgz#aeddd3f994c933e4ad98b99d9a556efa0e2fe942" - integrity sha512-gQR3WpIgNIKwBMVLkpMUeR3e1/E1y42bqDQZfql+kDeXd8COYfM8PQA4X6y7a8u9Ua9FHmsrrmirW2vHs45hWg== - dependencies: - semver-compare "^1.0.0" - -pluralize@^8.0.0: - version "8.0.0" - resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-8.0.0.tgz#1a6fa16a38d12a1901e0320fa017051c539ce3b1" - integrity sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA== - prelude-ls@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" @@ -2041,115 +1639,64 @@ prettier-linter-helpers@^1.0.0: dependencies: fast-diff "^1.1.2" -prettier@^2.4.1: - version "2.4.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.4.1.tgz#671e11c89c14a4cfc876ce564106c4a6726c9f5c" - integrity sha512-9fbDAXSBcc6Bs1mZrDYb3XKzDLm4EXXL9sC1LqKP5rZkT6KRr/rf9amVUcODVXgguK/isJz0d0hP72WeaKWsvA== +prettier-plugin-import-sort@^0.0.7: + version "0.0.7" + resolved "https://registry.yarnpkg.com/prettier-plugin-import-sort/-/prettier-plugin-import-sort-0.0.7.tgz#b13dcc4de98940b99066a9e34606a955d109b546" + integrity sha512-O0KlUSq+lwvh+UiN3wZDT6wWkf7TNxTVv2/XXE5KqpRNbFJq3nRg2ftzBYFFO8QGpdWIrOB0uCTCtFjIxmVKQw== + dependencies: + import-sort "^6.0.0" + import-sort-config "^6.0.0" + import-sort-parser-babylon "^6.0.0" + import-sort-parser-typescript "^6.0.0" + +prettier-plugin-organize-imports@^2.3.4: + version "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== + dependencies: + sort-package-json "1.53.1" + +prettier@^2.5.0: + version "2.5.1" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.5.1.tgz#fff75fa9d519c54cf0fce328c1017d94546bc56a" + integrity sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg== progress@^2.0.0, progress@^2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== -prop-types@^15.7.2: - version "15.7.2" - resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5" - integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ== - dependencies: - loose-envify "^1.4.0" - object-assign "^4.1.1" - react-is "^16.8.1" - punycode@^2.1.0: version "2.1.1" resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== -react-is@^16.8.1: - version "16.13.1" - resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4" - integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== +regexpp@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.2.0.tgz#0425a2768d8f23bad70ca4b90461fa2f1213e1b2" + integrity sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg== -read-pkg-up@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-2.0.0.tgz#6b72a8048984e0c41e79510fd5e9fa99b3b549be" - integrity sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4= - dependencies: - find-up "^2.0.0" - read-pkg "^2.0.0" - -read-pkg-up@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-7.0.1.tgz#f3a6135758459733ae2b95638056e1854e7ef507" - integrity sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg== - dependencies: - find-up "^4.1.0" - read-pkg "^5.2.0" - type-fest "^0.8.1" - -read-pkg@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-2.0.0.tgz#8ef1c0623c6a6db0dc6713c4bfac46332b2368f8" - integrity sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg= - dependencies: - load-json-file "^2.0.0" - normalize-package-data "^2.3.2" - path-type "^2.0.0" - -read-pkg@^5.2.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-5.2.0.tgz#7bf295438ca5a33e56cd30e053b34ee7250c93cc" - integrity sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg== - dependencies: - "@types/normalize-package-data" "^2.4.0" - normalize-package-data "^2.5.0" - parse-json "^5.0.0" - type-fest "^0.6.0" - -regenerator-runtime@^0.13.4: - version "0.13.7" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz#cac2dacc8a1ea675feaabaeb8ae833898ae46f55" - integrity sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew== - -regexp-tree@^0.1.21, regexp-tree@~0.1.1: - version "0.1.23" - resolved "https://registry.yarnpkg.com/regexp-tree/-/regexp-tree-0.1.23.tgz#8a8ce1cc5e971acef62213a7ecdb1f6e18a1f1b2" - integrity sha512-+7HWfb4Bvu8Rs2eQTUIpX9I/PlQkYOuTNbRpKLJlQpSgwSkzFYh+pUj0gtvglnOZLKB6YgnIgRuJ2/IlpL48qw== - -regexp.prototype.flags@^1.3.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.3.1.tgz#7ef352ae8d159e758c0eadca6f8fcb4eef07be26" - integrity sha512-JiBdRBq91WlY7uRJ0ds7R+dU02i6LKi8r3BuQhNXn+kmeLN+EfHhfjqMRis1zJxnlu88hq/4dx0P2OP3APRTOA== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - -regexpp@^3.0.0, regexpp@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.1.0.tgz#206d0ad0a5648cffbdb8ae46438f3dc51c9f78e2" - integrity sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q== - -require-from-string@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" - integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== - -reserved-words@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/reserved-words/-/reserved-words-0.1.2.tgz#00a0940f98cd501aeaaac316411d9adc52b31ab1" - integrity sha1-AKCUD5jNUBrqqsMWQR2a3FKzGrE= +resolve-from@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748" + integrity sha1-six699nWiBvItuZTM17rywoYh0g= resolve-from@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== -resolve@^1.10.0, resolve@^1.10.1, resolve@^1.12.0, resolve@^1.13.1, resolve@^1.17.0, resolve@^1.18.1: - version "1.19.0" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.19.0.tgz#1af5bf630409734a067cae29318aac7fa29a267c" - integrity sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg== +resolve@^1.8.1: + version "1.20.0" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.20.0.tgz#629a013fb3f70755d6f0b7935cc1c2c5378b1975" + integrity sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A== dependencies: - is-core-module "^2.1.0" + is-core-module "^2.2.0" path-parse "^1.0.6" restore-cursor@^3.1.0: @@ -2165,6 +1712,11 @@ reusify@^1.0.4: resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== +rfdc@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/rfdc/-/rfdc-1.3.0.tgz#d0b7c441ab2720d05dc4cf26e01c89631d9da08b" + integrity sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA== + rimraf@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" @@ -2177,42 +1729,37 @@ 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@^6.6.7: - version "6.6.7" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.7.tgz#90ac018acabf491bf65044235d5863c4dab804c9" - integrity sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ== +rxjs@^7.4.0: + version "7.4.0" + resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.4.0.tgz#a12a44d7eebf016f5ff2441b87f28c9a51cebc68" + integrity sha512-7SQDi7xeTMCJpqViXh8gL/lebcwlp3d831F05+9B44A4B0WfsEwUQHR64gsH1kvJ+Ep/J9K2+n1hVl1CsGN23w== dependencies: - tslib "^1.9.0" + tslib "~2.1.0" -safe-regex@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-2.1.1.tgz#f7128f00d056e2fe5c11e81a1324dd974aadced2" - integrity sha512-rx+x8AMzKb5Q5lQ95Zoi6ZbJqwCLkqi3XuJXp5P3rT8OEc6sZCJG5AE5dU3lsgRr/F4Bs31jSlVN+j5KrsGu9A== - dependencies: - regexp-tree "~0.1.1" +safe-buffer@~5.1.1: + version "5.1.2" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" + integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== -semver-compare@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/semver-compare/-/semver-compare-1.0.0.tgz#0dee216a1c941ab37e9efb1788f6afc5ff5537fc" - integrity sha1-De4hahyUGrN+nvsXiPavxf9VN/w= - -"semver@2 || 3 || 4 || 5": - version "5.7.1" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" - integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== - -semver@^6.1.0: +semver@^6.3.0: version "6.3.0" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== -semver@^7.2.1, semver@^7.3.2, semver@^7.3.4: +semver@^7.2.1: version "7.3.4" resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.4.tgz#27aaa7d2e4ca76452f98d3add093a72c943edc97" integrity sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw== dependencies: lru-cache "^6.0.0" +semver@^7.3.5: + version "7.3.5" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.5.tgz#0b621c879348d8998e4b0e4be94b3f12e6018ef7" + integrity sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ== + dependencies: + lru-cache "^6.0.0" + shebang-command@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" @@ -2234,15 +1781,6 @@ shiki@^0.9.8: onigasm "^2.2.5" vscode-textmate "5.2.0" -side-channel@^1.0.2, side-channel@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.4.tgz#efce5c8fdc104ee751b25c58d4290011fa5ea2cf" - integrity sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw== - dependencies: - call-bind "^1.0.0" - get-intrinsic "^1.0.2" - object-inspect "^1.9.0" - signal-exit@^3.0.2, signal-exit@^3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.3.tgz#a1410c2edd8f077b08b4e253c8eacfcaf057461c" @@ -2271,6 +1809,31 @@ slice-ansi@^4.0.0: astral-regex "^2.0.0" is-fullwidth-code-point "^3.0.0" +slice-ansi@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-5.0.0.tgz#b73063c57aa96f9cd881654b15294d95d285c42a" + integrity sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ== + dependencies: + ansi-styles "^6.0.0" + is-fullwidth-code-point "^4.0.0" + +sort-object-keys@^1.1.3: + version "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== + dependencies: + detect-indent "^6.0.0" + detect-newline "3.1.0" + git-hooks-list "1.0.3" + globby "10.0.0" + is-plain-obj "2.1.0" + sort-object-keys "^1.1.3" + sortpack@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/sortpack/-/sortpack-2.2.0.tgz#8f5ffc34a62305201186dae05658ef36723cc50d" @@ -2286,38 +1849,12 @@ source-map@^0.6.1: resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== -spdx-correct@^3.0.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.1.1.tgz#dece81ac9c1e6713e5f7d1b6f17d468fa53d89a9" - integrity sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w== - dependencies: - spdx-expression-parse "^3.0.0" - spdx-license-ids "^3.0.0" - -spdx-exceptions@^2.1.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz#3f28ce1a77a00372683eade4a433183527a2163d" - integrity sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A== - -spdx-expression-parse@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz#cf70f50482eefdc98e3ce0a6833e4a53ceeba679" - integrity sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q== - dependencies: - spdx-exceptions "^2.1.0" - spdx-license-ids "^3.0.0" - -spdx-license-ids@^3.0.0: - version "3.0.7" - resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.7.tgz#e9c18a410e5ed7e12442a549fbd8afa767038d65" - integrity sha512-U+MTEOO0AiDzxwFvoa4JVnMV6mZlJKk2sBLt90s7G0Gd0Mlknc7kxEn3nuDPNZRta7O2uy8oLcZLVT+4sqNZHQ== - sprintf-js@~1.0.2: version "1.0.3" resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= -string-argv@0.3.1: +string-argv@^0.3.1: version "0.3.1" resolved "https://registry.yarnpkg.com/string-argv/-/string-argv-0.3.1.tgz#95e2fbec0427ae19184935f816d74aaa4c5c19da" integrity sha512-a1uQGz7IyVy9YwhqjZIZu1c8JO8dNIe20xBmSS6qu9kv++k3JGzCVmprbNN5Kn+BgzD5E7YYwg1CcjuJMRNsvg== @@ -2331,43 +1868,14 @@ string-width@^4.1.0, string-width@^4.2.0: is-fullwidth-code-point "^3.0.0" strip-ansi "^6.0.0" -string.prototype.matchall@^4.0.2: - version "4.0.3" - resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.3.tgz#24243399bc31b0a49d19e2b74171a15653ec996a" - integrity sha512-OBxYDA2ifZQ2e13cP82dWFMaCV9CGF8GzmN4fljBVw5O5wep0lu4gacm1OL6MjROoUnB8VbkWRThqkV2YFLNxw== +string-width@^5.0.0: + version "5.0.1" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-5.0.1.tgz#0d8158335a6cfd8eb95da9b6b262ce314a036ffd" + integrity sha512-5ohWO/M4//8lErlUUtrFy3b11GtNOuMOU0ysKCDXFcfXuuvUXu95akgj/i8ofmaGdN0hCqyl6uu9i8dS/mQp5g== dependencies: - call-bind "^1.0.0" - define-properties "^1.1.3" - es-abstract "^1.18.0-next.1" - has-symbols "^1.0.1" - internal-slot "^1.0.2" - regexp.prototype.flags "^1.3.0" - side-channel "^1.0.3" - -string.prototype.trimend@^1.0.1, string.prototype.trimend@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.3.tgz#a22bd53cca5c7cf44d7c9d5c732118873d6cd18b" - integrity sha512-ayH0pB+uf0U28CtjlLvL7NaohvR1amUvVZk+y3DYb0Ey2PUV5zPkkKy9+U1ndVEIXO8hNg18eIv9Jntbii+dKw== - dependencies: - call-bind "^1.0.0" - define-properties "^1.1.3" - -string.prototype.trimstart@^1.0.1, string.prototype.trimstart@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.3.tgz#9b4cb590e123bb36564401d59824298de50fd5aa" - integrity sha512-oBIBUy5lea5tt0ovtOFiEQaBkoBBkyJhZXzJYrSmDo5IUUqbOPvVezuRs/agBIdZ2p2Eo1FD6bD9USyBLfl3xg== - dependencies: - call-bind "^1.0.0" - define-properties "^1.1.3" - -stringify-object@^3.3.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/stringify-object/-/stringify-object-3.3.0.tgz#703065aefca19300d3ce88af4f5b3956d7556629" - integrity sha512-rHqiFh1elqCQ9WPLIC8I0Q/g/wj5J1eMkyoiD6eoQApWHP0FtlK7rqnhmabL5VUY9JQCcqwwvlOaSuutekgyrw== - dependencies: - get-own-enumerable-property-symbols "^3.0.0" - is-obj "^1.0.1" - is-regexp "^1.0.0" + emoji-regex "^9.2.2" + is-fullwidth-code-point "^4.0.0" + strip-ansi "^7.0.1" strip-ansi@^6.0.0: version "6.0.0" @@ -2376,10 +1884,19 @@ strip-ansi@^6.0.0: dependencies: ansi-regex "^5.0.0" -strip-bom@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" - integrity sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM= +strip-ansi@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== + dependencies: + ansi-regex "^5.0.1" + +strip-ansi@^7.0.1: + version "7.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.0.1.tgz#61740a08ce36b61e50e65653f07060d000975fb2" + integrity sha512-cXNxvT8dFNRVfhVME3JAe98mkXDYN2O1l7jmcwMnOslDeESg1rF/OZMtK0nRAhiari1unG5cD4jG3rapUAkLbw== + dependencies: + ansi-regex "^6.0.1" strip-final-newline@^2.0.0: version "2.0.0" @@ -2405,17 +1922,10 @@ supports-color@^7.1.0: dependencies: has-flag "^4.0.0" -table@^6.0.9: - version "6.7.1" - resolved "https://registry.yarnpkg.com/table/-/table-6.7.1.tgz#ee05592b7143831a8c94f3cee6aae4c1ccef33e2" - integrity sha512-ZGum47Yi6KOOFDE8m223td53ath2enHcYLgOCjGr5ngu8bdIARQk6mN/wRMv4yMRcHnCSnHbCEha4sobQx5yWg== - dependencies: - ajv "^8.0.1" - lodash.clonedeep "^4.5.0" - lodash.truncate "^4.4.2" - slice-ansi "^4.0.0" - string-width "^4.2.0" - strip-ansi "^6.0.0" +supports-color@^9.0.2: + version "9.2.1" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-9.2.1.tgz#599dc9d45acf74c6176e0d880bab1d7d718fe891" + integrity sha512-Obv7ycoCTG51N7y175StI9BlAXrmgZrFhZOb0/PyjHBher/NmsdBgbbQ1Inhq+gIhz6+7Gb+jWF2Vqi7Mf1xnQ== text-table@^0.2.0: version "0.2.0" @@ -2439,25 +1949,20 @@ to-regex-range@^5.0.1: dependencies: is-number "^7.0.0" -tsconfig-paths@^3.9.0: - version "3.9.0" - resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.9.0.tgz#098547a6c4448807e8fcb8eae081064ee9a3c90b" - integrity sha512-dRcuzokWhajtZWkQsDVKbWyY+jgcLC5sqJhg2PSgf4ZkH2aHPvaOY8YWGhmjb68b5qqTfasSsDO9k7RUiEmZAw== - dependencies: - "@types/json5" "^0.0.29" - json5 "^1.0.1" - minimist "^1.2.0" - strip-bom "^3.0.0" - -tslib@^1.8.1, tslib@^1.9.0: +tslib@^1.8.1: version "1.14.1" resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== -tsutils@^3.17.1: - version "3.19.1" - resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.19.1.tgz#d8566e0c51c82f32f9c25a4d367cd62409a547a9" - integrity sha512-GEdoBf5XI324lu7ycad7s6laADfnAqCw6wLGI+knxvw9vsIYBaJfYdmeCEG3FMMUiSm3OGgNb+m6utsWf5h9Vw== +tslib@~2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.1.0.tgz#da60860f1c2ecaa5703ab7d39bc05b6bf988b97a" + integrity sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A== + +tsutils@^3.21.0: + version "3.21.0" + resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623" + integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA== dependencies: tslib "^1.8.1" @@ -2478,16 +1983,6 @@ type-fest@^0.20.2: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== -type-fest@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.6.0.tgz#8d2a2370d3df886eb5c90ada1c5bf6188acf838b" - integrity sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg== - -type-fest@^0.8.1: - version "0.8.1" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d" - integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA== - typedoc-default-themes@^0.12.10: version "0.12.10" resolved "https://registry.yarnpkg.com/typedoc-default-themes/-/typedoc-default-themes-0.12.10.tgz#614c4222fe642657f37693ea62cad4dafeddf843" @@ -2512,10 +2007,15 @@ typedoc@^0.21.6: shiki "^0.9.8" typedoc-default-themes "^0.12.10" -typescript@^4.4.3: - version "4.4.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.3.tgz#bdc5407caa2b109efd4f82fe130656f977a29324" - integrity sha512-4xfscpisVgqqDfPaJo5vkd+Qd/ItkoagnHpufr+i2QCHBsNYp+G7UAoyFl8aPtx879u38wPV65rZ8qbGZijalA== +typescript@^3.2.4: + version "3.9.10" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.10.tgz#70f3910ac7a51ed6bef79da7800690b19bf778b8" + integrity sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q== + +typescript@^4.5.2: + version "4.5.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.2.tgz#8ac1fba9f52256fdb06fb89e4122fa6a346c2998" + integrity sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw== uglify-js@^3.1.4: version "3.14.2" @@ -2534,14 +2034,6 @@ v8-compile-cache@^2.0.3: resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.2.0.tgz#9471efa3ef9128d2f7c6a7ca39c4dd6b5055b132" integrity sha512-gTpR5XQNKFwOd4clxfnhaqvfqMpqEwr4tOtCyz4MtYZX2JYhfr1JvBFKdS+7K/9rfpZR3VLX+YWBbKoxCgS43Q== -validate-npm-package-license@^3.0.1: - version "3.0.4" - resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" - integrity sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew== - dependencies: - spdx-correct "^3.0.0" - spdx-expression-parse "^3.0.0" - vscode-textmate@5.2.0: version "5.2.0" resolved "https://registry.yarnpkg.com/vscode-textmate/-/vscode-textmate-5.2.0.tgz#01f01760a391e8222fe4f33fbccbd1ad71aed74e" @@ -2602,7 +2094,7 @@ yallist@^4.0.0: resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== -yaml@^1.10.0: - version "1.10.0" - resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.0.tgz#3b593add944876077d4d683fee01081bd9fff31e" - integrity sha512-yr2icI4glYaNG+KWONODapy2/jDdMSDnrONSjblABjD9B4Z5LgiircSt8m8sRZFNi08kG9Sm0uSHtEmP3zaEGg== +yaml@^1.10.2: + version "1.10.2" + resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.2.tgz#2301c5ffbf12b467de8da2333a459e29e7920e4b" + integrity sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg== From c4827a62c02086af1707504398aaf760e9918c5a Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 30 Dec 2021 10:27:05 -0500 Subject: [PATCH 04/80] Adding private instance related endpoints. (#38) * Adding private instance related endpoints. * Running prettier. * v0.15.0-rc.1 * v0.15.0-rc.2 * Remove VerifyEmailResponse * v0.15.0-rc.3 * Revert "Remove VerifyEmailResponse" This reverts commit 49713c23c6853c42a3ee6200319877fb31377114. * Add optional auth to modlog. * v0.15.0-rc.6 --- package.json | 2 +- src/http.ts | 57 +++++++++++++++++++++++++++++++++++- src/interfaces/api/person.ts | 22 +++++++++++++- src/interfaces/api/site.ts | 43 +++++++++++++++++++++++++++ src/interfaces/others.ts | 4 +++ src/interfaces/source.ts | 19 ++++++++++-- src/interfaces/views.ts | 8 +++++ src/websocket.ts | 35 ++++++++++++++++++++++ 8 files changed, 185 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 42f97f9..0b07914 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.14.0-rc.1", + "version": "0.15.0-rc.6", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", diff --git a/src/http.ts b/src/http.ts index 419647b..420ef3e 100644 --- a/src/http.ts +++ b/src/http.ts @@ -45,6 +45,7 @@ import { ChangePassword, CreatePrivateMessage, DeleteAccount, + DeleteAccountResponse, DeletePrivateMessage, EditPrivateMessage, GetCaptchaResponse, @@ -72,6 +73,8 @@ import { PrivateMessagesResponse, Register, SaveUserSettings, + VerifyEmail, + VerifyEmailResponse, } from "./interfaces/api/person"; import { CreatePost, @@ -96,6 +99,7 @@ import { StickyPost, } from "./interfaces/api/post"; import { + ApproveRegistrationApplication, CreateSite, EditSite, GetModlog, @@ -104,6 +108,11 @@ import { GetSiteConfig, GetSiteConfigResponse, GetSiteResponse, + GetUnreadRegistrationApplicationCount, + GetUnreadRegistrationApplicationCountResponse, + ListRegistrationApplications, + ListRegistrationApplicationsResponse, + RegistrationApplicationResponse, ResolveObject, ResolveObjectResponse, SaveSiteConfig, @@ -592,7 +601,7 @@ export class LemmyHttp { /** * Delete your account. */ - async deleteAccount(form: DeleteAccount): Promise { + async deleteAccount(form: DeleteAccount): Promise { return this.wrapper(HttpType.Post, "/user/delete_account", form); } @@ -645,6 +654,13 @@ export class LemmyHttp { return this.wrapper(HttpType.Get, "/user/unread_count", form); } + /** + * Verify your email + */ + async verifyEmail(form: VerifyEmail): Promise { + return this.wrapper(HttpType.Post, "/user/verify_email", form); + } + /** * Add an admin to your site. */ @@ -652,6 +668,45 @@ export class LemmyHttp { return this.wrapper(HttpType.Post, "/admin/add", form); } + /** + * Get the unread registration applications count. + */ + async getUnreadRegistrationApplicationCount( + form: GetUnreadRegistrationApplicationCount + ): Promise { + return this.wrapper( + HttpType.Get, + "/admin/registration_application/count", + form + ); + } + + /** + * List the unread registration applications. + */ + async listRegistrationApplications( + form: ListRegistrationApplications + ): Promise { + return this.wrapper( + HttpType.Get, + "/admin/registration_application/list", + form + ); + } + + /** + * Approve a registration application + */ + async approveRegistrationApplication( + form: ApproveRegistrationApplication + ): Promise { + return this.wrapper( + HttpType.Put, + "/admin/registration_application/approve", + form + ); + } + private buildFullUrl(endpoint: string): string { return `${this.apiUrl}${endpoint}`; } diff --git a/src/interfaces/api/person.ts b/src/interfaces/api/person.ts index 89c177c..644f87b 100644 --- a/src/interfaces/api/person.ts +++ b/src/interfaces/api/person.ts @@ -19,6 +19,9 @@ export interface Login { */ export interface Register { username: string; + /** + * Email is mandatory if email verification is enabled on the server + */ email?: string; password: string; password_verify: string; @@ -29,6 +32,10 @@ export interface Register { captcha_uuid?: string; captcha_answer?: string; honeypot?: string; + /** + * An answer is mandatory if require application is enabled on the server + */ + answer?: string; } export interface GetCaptcha {} @@ -106,7 +113,12 @@ export interface ChangePassword { * The `jwt` string should be stored and used anywhere `auth` is called for. */ export interface LoginResponse { - jwt: string; + /** + * This is None in response to `Register` if email verification is enabled, or the server requires registration applications. + */ + jwt?: string; + verify_email_sent: boolean; + registration_created: boolean; } export interface GetPersonDetails { @@ -210,6 +222,8 @@ export interface DeleteAccount { auth: string; } +export interface DeleteAccountResponse {} + export interface PasswordReset { email: string; } @@ -285,6 +299,12 @@ export interface GetUnreadCountResponse { private_messages: number; } +export interface VerifyEmail { + token: string; +} + +export interface VerifyEmailResponse {} + export interface BlockPerson { person_id: number; block: boolean; diff --git a/src/interfaces/api/site.ts b/src/interfaces/api/site.ts index d03d2cc..9e8623c 100644 --- a/src/interfaces/api/site.ts +++ b/src/interfaces/api/site.ts @@ -18,6 +18,7 @@ import { PersonBlockView, PersonViewSafe, PostView, + RegistrationApplicationView, SiteView, } from "../views"; @@ -66,6 +67,7 @@ export interface GetModlog { community_id?: number; page?: number; limit?: number; + auth?: string; } export interface GetModlogResponse { @@ -91,6 +93,10 @@ export interface CreateSite { open_registration?: boolean; enable_nsfw?: boolean; community_creation_admin_only?: boolean; + require_email_verification?: boolean; + require_application?: boolean; + application_question?: string; + private_instance?: boolean; auth: string; } @@ -104,6 +110,10 @@ export interface EditSite { open_registration?: boolean; enable_nsfw?: boolean; community_creation_admin_only?: boolean; + require_email_verification?: boolean; + require_application?: boolean; + application_question?: string; + private_instance?: boolean; auth: string; } @@ -177,3 +187,36 @@ export interface ResolveObjectResponse { community?: CommunityView; person?: PersonViewSafe; } + +export interface ListRegistrationApplications { + /** + * Only shows the unread applications (IE those without an admin actor) + */ + unread_only?: boolean; + page?: number; + limit?: number; + auth: string; +} + +export interface ListRegistrationApplicationsResponse { + registration_applications: RegistrationApplicationView[]; +} + +export interface ApproveRegistrationApplication { + id: number; + approve: boolean; + deny_reason?: string; + auth: string; +} + +export interface RegistrationApplicationResponse { + registration_application: RegistrationApplicationView; +} + +export interface GetUnreadRegistrationApplicationCount { + auth: string; +} + +export interface GetUnreadRegistrationApplicationCountResponse { + registration_applications: number; +} diff --git a/src/interfaces/others.ts b/src/interfaces/others.ts index 5941b0b..432829e 100644 --- a/src/interfaces/others.ts +++ b/src/interfaces/others.ts @@ -42,6 +42,9 @@ export enum UserOperation { EditSite, GetSite, AddAdmin, + GetUnreadRegistrationApplicationCount, + ListRegistrationApplications, + ApproveRegistrationApplication, BanPerson, Search, ResolveObject, @@ -75,6 +78,7 @@ export enum UserOperation { ListPostReports, GetReportCount, GetUnreadCount, + VerifyEmail, } /** diff --git a/src/interfaces/source.ts b/src/interfaces/source.ts index dae9651..abf6b4a 100644 --- a/src/interfaces/source.ts +++ b/src/interfaces/source.ts @@ -13,6 +13,8 @@ export interface LocalUserSettings { show_scores: boolean; show_read_posts: boolean; show_new_post_notifs: boolean; + email_verified: boolean; + accepted_application: boolean; } export interface PersonSafe { @@ -39,16 +41,20 @@ export interface Site { id: number; name: string; sidebar?: string; - description?: string; creator_id: number; published: string; updated?: string; enable_downvotes: boolean; open_registration: boolean; enable_nsfw: boolean; - community_creation_admin_only: boolean; icon?: string; banner?: string; + description?: string; + community_creation_admin_only: boolean; + require_email_verification: boolean; + require_application: boolean; + application_question?: string; + private_instance: boolean; } export interface PrivateMessage { @@ -248,3 +254,12 @@ export interface PersonMention { read: boolean; published: string; } + +export interface RegistrationApplication { + id: number; + local_user_id: number; + answer: string; + admin_id?: number; + deny_reason?: string; + published: string; +} diff --git a/src/interfaces/views.ts b/src/interfaces/views.ts index 5b5d791..d7b6d94 100644 --- a/src/interfaces/views.ts +++ b/src/interfaces/views.ts @@ -25,6 +25,7 @@ import { Post, PostReport, PrivateMessage, + RegistrationApplication, Site, } from "./source"; @@ -218,3 +219,10 @@ export interface CommunityView { blocked: boolean; counts: CommunityAggregates; } + +export interface RegistrationApplicationView { + registration_application: RegistrationApplication; + creator_local_user: LocalUserSettings; + creator: PersonSafe; + admin?: PersonSafe; +} diff --git a/src/websocket.ts b/src/websocket.ts index 26edf3f..39d206f 100644 --- a/src/websocket.ts +++ b/src/websocket.ts @@ -47,6 +47,7 @@ import { PasswordReset, Register, SaveUserSettings, + VerifyEmail, } from "./interfaces/api/person"; import { CreatePost, @@ -65,11 +66,14 @@ import { StickyPost, } from "./interfaces/api/post"; import { + ApproveRegistrationApplication, CreateSite, EditSite, GetModlog, GetSite, GetSiteConfig, + GetUnreadRegistrationApplicationCount, + ListRegistrationApplications, ResolveObject, SaveSiteConfig, Search, @@ -404,6 +408,29 @@ export class LemmyWebsocket { return wrapper(UserOperation.AddAdmin, form); } + /** + * Get the unread registration applications count. + */ + getUnreadRegistrationApplicationCount( + form: GetUnreadRegistrationApplicationCount + ) { + return wrapper(UserOperation.GetUnreadRegistrationApplicationCount, form); + } + + /** + * List the unread registration applications. + */ + listRegistrationApplications(form: ListRegistrationApplications) { + return wrapper(UserOperation.ListRegistrationApplications, form); + } + + /** + * Approve a registration application + */ + approveRegistrationApplication(form: ApproveRegistrationApplication) { + return wrapper(UserOperation.ApproveRegistrationApplication, form); + } + /** * Get the details for a person. */ @@ -515,6 +542,14 @@ export class LemmyWebsocket { getUnreadCount(form: GetUnreadCount) { return wrapper(UserOperation.GetUnreadCount, form); } + + /** + * Verify your email + */ + verifyEmail(form: VerifyEmail) { + return wrapper(UserOperation.VerifyEmail, form); + } + /** * Delete your account. */ From e201e1c1b43d79b8ad0b6df457bd75dbbb21bdcf Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 6 Jan 2022 11:19:36 -0500 Subject: [PATCH 05/80] Adding bannedpersons endpoint. (#41) --- src/http.ts | 11 +++++++++++ src/interfaces/api/person.ts | 8 ++++++++ src/interfaces/api/site.ts | 1 - src/interfaces/others.ts | 1 + src/websocket.ts | 8 ++++++++ 5 files changed, 28 insertions(+), 1 deletion(-) diff --git a/src/http.ts b/src/http.ts index 420ef3e..be445a1 100644 --- a/src/http.ts +++ b/src/http.ts @@ -38,6 +38,7 @@ import { import { AddAdmin, AddAdminResponse, + BannedPersonsResponse, BanPerson, BanPersonResponse, BlockPerson, @@ -48,6 +49,7 @@ import { DeleteAccountResponse, DeletePrivateMessage, EditPrivateMessage, + GetBannedPersons, GetCaptchaResponse, GetPersonDetails, GetPersonDetailsResponse, @@ -584,6 +586,15 @@ export class LemmyHttp { return this.wrapper(HttpType.Post, "/user/ban", form); } + /** + * Get a list of banned users + */ + async getBannedPersons( + form: GetBannedPersons + ): Promise { + return this.wrapper(HttpType.Get, "/user/banned", form); + } + /** * Block a person. */ diff --git a/src/interfaces/api/person.ts b/src/interfaces/api/person.ts index 644f87b..c85b1c6 100644 --- a/src/interfaces/api/person.ts +++ b/src/interfaces/api/person.ts @@ -315,3 +315,11 @@ export interface BlockPersonResponse { person_view: PersonViewSafe; blocked: boolean; } + +export interface GetBannedPersons { + auth: string; +} + +export interface BannedPersonsResponse { + banned: PersonViewSafe[]; +} diff --git a/src/interfaces/api/site.ts b/src/interfaces/api/site.ts index 9e8623c..387ff74 100644 --- a/src/interfaces/api/site.ts +++ b/src/interfaces/api/site.ts @@ -131,7 +131,6 @@ export interface GetSiteResponse { */ site_view?: SiteView; admins: PersonViewSafe[]; - banned: PersonViewSafe[]; online: number; version: string; /** diff --git a/src/interfaces/others.ts b/src/interfaces/others.ts index 432829e..23f2d7c 100644 --- a/src/interfaces/others.ts +++ b/src/interfaces/others.ts @@ -46,6 +46,7 @@ export enum UserOperation { ListRegistrationApplications, ApproveRegistrationApplication, BanPerson, + GetBannedPersons, Search, ResolveObject, MarkAllAsRead, diff --git a/src/websocket.ts b/src/websocket.ts index 39d206f..3fcd228 100644 --- a/src/websocket.ts +++ b/src/websocket.ts @@ -33,6 +33,7 @@ import { DeleteAccount, DeletePrivateMessage, EditPrivateMessage, + GetBannedPersons, GetPersonDetails, GetPersonMentions, GetPrivateMessages, @@ -401,6 +402,13 @@ export class LemmyWebsocket { return wrapper(UserOperation.BanPerson, form); } + /** + * Get a list of banned users + */ + getBannedPersons(form: GetBannedPersons) { + return wrapper(UserOperation.GetBannedPersons, form); + } + /** * Add an admin to your site. */ From 54d9db4fb1a1e78f4d037022ce30002d5ce08a82 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 6 Jan 2022 13:55:39 -0500 Subject: [PATCH 06/80] v0.15.0-rc.8 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0b07914..175eb22 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.0-rc.6", + "version": "0.15.0-rc.8", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From 8f36dce861bc03223834f5d25cad5134fd7218b3 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 10:29:21 -0500 Subject: [PATCH 07/80] Trying to publish with npm token --- .drone.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.drone.yml b/.drone.yml index 456b949..717ed0a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -26,6 +26,7 @@ steps: password: from_secret: npm_password email: tyhou13@gmx.com + token: npm_token when: ref: - refs/tags/* From 249066955cbf91cfff43c900116e8ec535b8fec7 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 10:29:34 -0500 Subject: [PATCH 08/80] v0.15.0-rc.9 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 175eb22..bec0549 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.0-rc.8", + "version": "0.15.0-rc.9", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From dee83605a7ec04b4f0e28e298f2d0d8283de23d9 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 10:33:30 -0500 Subject: [PATCH 09/80] Trying to publish with npm token 2 --- .npmrc | 1 + 1 file changed, 1 insertion(+) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..63a5353 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +//registry.npmjs.org/:_authToken=$npm_token From dadfd77efc209cdde2bba785242355a926ee4329 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 10:33:41 -0500 Subject: [PATCH 10/80] v0.15.0-rc.10 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bec0549..9b66fce 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.0-rc.9", + "version": "0.15.0-rc.10", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From 65337725054949e5ddc03d6788bf238c20192e02 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 10:35:51 -0500 Subject: [PATCH 11/80] Trying to publish with npm token 3 --- .drone.yml | 1 + .npmrc | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 .npmrc diff --git a/.drone.yml b/.drone.yml index 717ed0a..fba5719 100644 --- a/.drone.yml +++ b/.drone.yml @@ -26,6 +26,7 @@ steps: password: from_secret: npm_password email: tyhou13@gmx.com + registry: //registry.npmjs.org/:_authToken=$npm_token token: npm_token when: ref: diff --git a/.npmrc b/.npmrc deleted file mode 100644 index 63a5353..0000000 --- a/.npmrc +++ /dev/null @@ -1 +0,0 @@ -//registry.npmjs.org/:_authToken=$npm_token From 276389e17c07c00f34a1c25761fc5683c391728d Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 10:35:57 -0500 Subject: [PATCH 12/80] v0.15.0-rc.11 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9b66fce..d3244b4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.0-rc.10", + "version": "0.15.0-rc.11", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From 2e22e962db571f572f85a86abef807fde8227b26 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 10:38:00 -0500 Subject: [PATCH 13/80] Trying to publish with npm token 4 --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index fba5719..b7d2a77 100644 --- a/.drone.yml +++ b/.drone.yml @@ -26,7 +26,7 @@ steps: password: from_secret: npm_password email: tyhou13@gmx.com - registry: //registry.npmjs.org/:_authToken=$npm_token + registry: https://registry.npmjs.org/:_authToken=$npm_token token: npm_token when: ref: From c8a3b8e76710719439533994d0d52cea4de83f20 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 10:38:07 -0500 Subject: [PATCH 14/80] v0.15.0-rc.12 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d3244b4..c7a205f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.0-rc.11", + "version": "0.15.0-rc.12", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From 0f8e3997ebd9edfc33cee67e59f01e2e7df1acff Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 10:47:10 -0500 Subject: [PATCH 15/80] Trying to publish with npm token 5 --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index c7a205f..16a1c7f 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,9 @@ "typedoc-plugin-sourcefile-url": "^1.0.6", "typescript": "^4.5.2" }, + "publishConfig": { + "registry": "https://registry.npmjs.org/:_authToken=$npm_token" + }, "types": "./dist/index.d.ts", "lint-staged": { "*.{ts,tsx,js}": [ From bbb7d683938fa95343f7a476c6323266a2c6fdad Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 10:47:18 -0500 Subject: [PATCH 16/80] v0.15.0-rc.13 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 16a1c7f..de453bd 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.0-rc.12", + "version": "0.15.0-rc.13", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From 64ef6ee7941a22f7ff26fbd8fa5d0419e71d7c9d Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 10:50:09 -0500 Subject: [PATCH 17/80] Trying to publish with npm token 6 --- .drone.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index b7d2a77..0c1568d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -26,8 +26,10 @@ steps: password: from_secret: npm_password email: tyhou13@gmx.com - registry: https://registry.npmjs.org/:_authToken=$npm_token + registry: https://registry.npmjs.org/:_authToken=$NPM_TOKEN token: npm_token + environment: + NPM_TOKEN: $npm_token when: ref: - refs/tags/* From db30ddfe9a1e81a66c55015974e5c49ca4ea58f7 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 10:50:19 -0500 Subject: [PATCH 18/80] v0.15.0-rc.14 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index de453bd..050af00 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.0-rc.13", + "version": "0.15.0-rc.14", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From b8297ac82fde26b6fa46cd572a6aca12ba7a80fa Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 10:51:41 -0500 Subject: [PATCH 19/80] Trying to publish with npm token 7 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 050af00..718eabb 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "typescript": "^4.5.2" }, "publishConfig": { - "registry": "https://registry.npmjs.org/:_authToken=$npm_token" + "registry": "https://registry.npmjs.org/:_authToken=$NPM_TOKEN" }, "types": "./dist/index.d.ts", "lint-staged": { From 2e534ae1743f04433c3bde752ab106c0b2239828 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 10:51:49 -0500 Subject: [PATCH 20/80] v0.15.0-rc.15 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 718eabb..c355d17 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.0-rc.14", + "version": "0.15.0-rc.15", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From 2b9e0747a7f383d5a408347eff41e6a3ee00ceac Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 10:57:29 -0500 Subject: [PATCH 21/80] Trying to publish with npm token 8 --- .drone.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 0c1568d..f6de834 100644 --- a/.drone.yml +++ b/.drone.yml @@ -27,9 +27,11 @@ steps: from_secret: npm_password email: tyhou13@gmx.com registry: https://registry.npmjs.org/:_authToken=$NPM_TOKEN - token: npm_token + token: + from_secret: npm_token environment: - NPM_TOKEN: $npm_token + NPM_TOKEN: + from_secret: npm_token when: ref: - refs/tags/* From e4387d57cf490586da20c0bf414f78d40c11d1d7 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 10:57:35 -0500 Subject: [PATCH 22/80] v0.15.0-rc.16 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c355d17..6821a28 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.0-rc.15", + "version": "0.15.0-rc.16", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From b698ad1c1e6ca28085ba5f7ff69fa2ea42780739 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:01:32 -0500 Subject: [PATCH 23/80] Trying to publish with npm token 9 --- .drone.yml | 36 ++++++++++++++++++++++-------------- package.json | 3 --- 2 files changed, 22 insertions(+), 17 deletions(-) diff --git a/.drone.yml b/.drone.yml index f6de834..421c082 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,23 +18,31 @@ steps: commands: - yarn lint - - name: npm - image: plugins/npm - settings: - username: - from_secret: npm_username - password: - from_secret: npm_password - email: tyhou13@gmx.com - registry: https://registry.npmjs.org/:_authToken=$NPM_TOKEN - token: - from_secret: npm_token + # - name: npm + # image: plugins/npm + # settings: + # username: + # from_secret: npm_username + # password: + # from_secret: npm_password + # email: tyhou13@gmx.com + # registry: https://registry.npmjs.org/:_authToken=$NPM_TOKEN + # token: + # from_secret: npm_token + # environment: + # NPM_TOKEN: + # from_secret: npm_token + # when: + # ref: + # - refs/tags/* + - name: npm publish + image: 17-alpine + commands: + - npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} + - npm publish environment: NPM_TOKEN: from_secret: npm_token - when: - ref: - - refs/tags/* --- kind: pipeline diff --git a/package.json b/package.json index 6821a28..2ef166e 100644 --- a/package.json +++ b/package.json @@ -34,9 +34,6 @@ "typedoc-plugin-sourcefile-url": "^1.0.6", "typescript": "^4.5.2" }, - "publishConfig": { - "registry": "https://registry.npmjs.org/:_authToken=$NPM_TOKEN" - }, "types": "./dist/index.d.ts", "lint-staged": { "*.{ts,tsx,js}": [ From b554f18c87873b36875a056e9400931d70b105f5 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:01:39 -0500 Subject: [PATCH 24/80] v0.15.0-rc.17 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2ef166e..4d61c3f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.0-rc.16", + "version": "0.15.0-rc.17", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From 3614d8bd636c9747d30c2881682b2c90835616cb Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:03:24 -0500 Subject: [PATCH 25/80] Trying to publish with npm token 10 --- .drone.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 421c082..3b25699 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,12 +9,12 @@ platform: steps: - name: yarn - image: node:14-alpine + image: node:17-alpine commands: - yarn - name: yarn lint - image: node:14-alpine + image: node:17-alpine commands: - yarn lint @@ -36,7 +36,7 @@ steps: # ref: # - refs/tags/* - name: npm publish - image: 17-alpine + image: node:17-alpine commands: - npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} - npm publish @@ -55,11 +55,11 @@ platform: steps: - name: yarn - image: node:14-alpine + image: node:17-alpine commands: - yarn - name: yarn lint - image: node:14-alpine + image: node:17-alpine commands: - yarn lint From 8bf141c0bf3771489e97a0b9f440788acbc315b4 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:03:27 -0500 Subject: [PATCH 26/80] v0.15.0-rc.18 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4d61c3f..36580b8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.0-rc.17", + "version": "0.15.0-rc.18", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From 45f3083351533ef0247777fc169158b09240d37d Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:07:29 -0500 Subject: [PATCH 27/80] Trying to publish with npm token 11 --- .drone.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.drone.yml b/.drone.yml index 3b25699..6f6a6f5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -38,11 +38,14 @@ steps: - name: npm publish image: node:17-alpine commands: + - npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} - npm publish environment: NPM_TOKEN: from_secret: npm_token + NODE_AUTH_TOKEN: + from_secret: npm_token --- kind: pipeline From 63c73e6235bb714cf2c6eb92144a64d4e93d9f0b Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:07:33 -0500 Subject: [PATCH 28/80] v0.15.0-rc.19 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 36580b8..8f4e67f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.0-rc.18", + "version": "0.15.0-rc.19", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From e291fac336d23245bce11265d3186da56af41c1e Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:13:35 -0500 Subject: [PATCH 29/80] Trying to publish with npm token 12 --- .drone.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.drone.yml b/.drone.yml index 6f6a6f5..0a5f035 100644 --- a/.drone.yml +++ b/.drone.yml @@ -40,12 +40,17 @@ steps: commands: - npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} + - echo "registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc - npm publish environment: NPM_TOKEN: from_secret: npm_token NODE_AUTH_TOKEN: from_secret: npm_token + USERNAME: + from_secret: npm_username + PASSWORD: + from_secret: npm_password --- kind: pipeline From 94ace4dc9c5d70b64b8f2de5486d3578f53d7b35 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:13:43 -0500 Subject: [PATCH 30/80] v0.15.0-rc.20 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8f4e67f..6cb526c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.0-rc.19", + "version": "0.15.0-rc.20", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From e6742f721c974a8e3af2eff6ca3949f1944efabf Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:14:53 -0500 Subject: [PATCH 31/80] Trying to publish with npm token 13 --- .drone.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index 0a5f035..8e3b324 100644 --- a/.drone.yml +++ b/.drone.yml @@ -39,18 +39,12 @@ steps: image: node:17-alpine commands: - - npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} - - echo "registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc + - npm config set //registry.npmjs.org/:_authToken "{NPM_TOKEN"" + - echo "registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc - npm publish environment: NPM_TOKEN: from_secret: npm_token - NODE_AUTH_TOKEN: - from_secret: npm_token - USERNAME: - from_secret: npm_username - PASSWORD: - from_secret: npm_password --- kind: pipeline From 7672f83362cf70931ecf1c81abb71a577dafeb83 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:14:59 -0500 Subject: [PATCH 32/80] v0.15.0-rc.21 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6cb526c..069ef7c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.0-rc.20", + "version": "0.15.0-rc.21", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From 326ad04ed3d102db893e652a446d3dd45f3a25c8 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:15:51 -0500 Subject: [PATCH 33/80] v0.15.0-rc.22 --- .drone.yml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 8e3b324..a4d4ba2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -39,7 +39,7 @@ steps: image: node:17-alpine commands: - - npm config set //registry.npmjs.org/:_authToken "{NPM_TOKEN"" + - npm config set //registry.npmjs.org/:_authToken "NPM_TOKEN"" - echo "registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc - npm publish environment: diff --git a/package.json b/package.json index 069ef7c..abfa0da 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.0-rc.21", + "version": "0.15.0-rc.22", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From 4cd629f97a7348300ba3ef1e091bf5ff8f0a31d3 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:16:00 -0500 Subject: [PATCH 34/80] v0.15.0-rc.23 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index abfa0da..32ee4cd 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.0-rc.22", + "version": "0.15.0-rc.23", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From 6ca6f1d7386dc4b731e379e2ebe4e0efc554001a Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:16:54 -0500 Subject: [PATCH 35/80] Trying to publish with npm token 15 --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index a4d4ba2..a8cfe51 100644 --- a/.drone.yml +++ b/.drone.yml @@ -39,7 +39,7 @@ steps: image: node:17-alpine commands: - - npm config set //registry.npmjs.org/:_authToken "NPM_TOKEN"" + - npm config set //registry.npmjs.org/:_authToken "NPM_TOKEN" - echo "registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc - npm publish environment: From 4f725597adee116cebc5bbe9975f2b595c85f606 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:16:58 -0500 Subject: [PATCH 36/80] v0.15.0-rc.24 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 32ee4cd..b133298 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.0-rc.23", + "version": "0.15.0-rc.24", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From 6a8b50115f18d93676c0fe4e210f80ed984d9da1 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:20:38 -0500 Subject: [PATCH 37/80] Trying to publish with npm token 16 --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index a8cfe51..bf0d2cd 100644 --- a/.drone.yml +++ b/.drone.yml @@ -39,8 +39,8 @@ steps: image: node:17-alpine commands: - - npm config set //registry.npmjs.org/:_authToken "NPM_TOKEN" - - echo "registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc + - npm config set //registry.npmjs.org/:_authToken "$NPM_TOKEN" + - echo "https://registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc - npm publish environment: NPM_TOKEN: From 279c7cbf247201db19d7537de7fff54a4425e836 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:20:47 -0500 Subject: [PATCH 38/80] v0.15.0-rc.25 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b133298..68500c6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.0-rc.24", + "version": "0.15.0-rc.25", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From 8ce09e655c2565409371ca32137df02284ecf8a8 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:22:19 -0500 Subject: [PATCH 39/80] Trying to publish with npm token 17 --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index bf0d2cd..9eb1003 100644 --- a/.drone.yml +++ b/.drone.yml @@ -41,7 +41,7 @@ steps: - npm config set //registry.npmjs.org/:_authToken "$NPM_TOKEN" - echo "https://registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc - - npm publish + - npm publish --registry="https://registry.npmjs.org/:_authToken=$NPM_TOKEN" environment: NPM_TOKEN: from_secret: npm_token From 0f941f634f37f109c96f64542e4773fd26bb4931 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:22:22 -0500 Subject: [PATCH 40/80] v0.15.0-rc.26 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 68500c6..bb8ca7c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.0-rc.25", + "version": "0.15.0-rc.26", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From bf7fea5b2231d36e76c6b4ec782237b8bfe60fcf Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:25:57 -0500 Subject: [PATCH 41/80] Trying to publish with npm token 18 --- .drone.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 9eb1003..d4e3f6e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -41,7 +41,8 @@ steps: - npm config set //registry.npmjs.org/:_authToken "$NPM_TOKEN" - echo "https://registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc - - npm publish --registry="https://registry.npmjs.org/:_authToken=$NPM_TOKEN" + - echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> .npmrc + - npm publish environment: NPM_TOKEN: from_secret: npm_token From bb1e195a7692dfe538c112800929f4da8964dc26 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:26:00 -0500 Subject: [PATCH 42/80] v0.15.0-rc.27 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bb8ca7c..4cde2ee 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.0-rc.26", + "version": "0.15.0-rc.27", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From cd27054f7445a1a263bedf07610df4c43a7f6829 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:28:28 -0500 Subject: [PATCH 43/80] Trying to publish with npm token 19 --- .drone.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index d4e3f6e..92d032e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -39,13 +39,16 @@ steps: image: node:17-alpine commands: - - npm config set //registry.npmjs.org/:_authToken "$NPM_TOKEN" - - echo "https://registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc - - echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> .npmrc + # - npm config set //registry.npmjs.org/:_authToken "$NPM_TOKEN" + # - echo "https://registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc + # - echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> .npmrc + echo "_auth = $NPM_AUTH_TOKEN" > ~/.npmrc + echo "email = $NPM_EMAIL" >> ~/.npmrc - npm publish environment: - NPM_TOKEN: + NPM_AUTH_TOKEN: from_secret: npm_token + NPM_EMAIL: tyhou13@gmx.com --- kind: pipeline From 676e376a77d7b8f6833502996e03513e6405ea7b Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:28:31 -0500 Subject: [PATCH 44/80] v0.15.0-rc.28 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4cde2ee..96ca698 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.0-rc.27", + "version": "0.15.0-rc.28", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From 1c7eb8a02695fbc5fd795da584f22eea3b37e883 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:29:44 -0500 Subject: [PATCH 45/80] v0.15.0-rc.29 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 96ca698..9591679 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.0-rc.28", + "version": "0.15.0-rc.29", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From b544470e77fec5f2779da69b83b583da821309dc Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:31:27 -0500 Subject: [PATCH 46/80] Trying to publish with npm token 21 --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 92d032e..848f86e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -42,8 +42,8 @@ steps: # - npm config set //registry.npmjs.org/:_authToken "$NPM_TOKEN" # - echo "https://registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc # - echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> .npmrc - echo "_auth = $NPM_AUTH_TOKEN" > ~/.npmrc - echo "email = $NPM_EMAIL" >> ~/.npmrc + - echo "_auth = $NPM_AUTH_TOKEN" > ~/.npmrc + - echo "email = $NPM_EMAIL" >> ~/.npmrc - npm publish environment: NPM_AUTH_TOKEN: From 8dc60607c97ddbab09cdfe856b4251bfdb731902 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:31:29 -0500 Subject: [PATCH 47/80] v0.15.0-rc.30 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9591679..a3988e9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.0-rc.29", + "version": "0.15.0-rc.30", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From 7c1c027d726ce9a0c61eede43b2590ce93b13e2e Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:42:08 -0500 Subject: [PATCH 48/80] Trying to publish with npm token 22 --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 848f86e..2c00cf5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -41,8 +41,8 @@ steps: # - npm config set //registry.npmjs.org/:_authToken "$NPM_TOKEN" # - echo "https://registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc - # - echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> .npmrc - - echo "_auth = $NPM_AUTH_TOKEN" > ~/.npmrc + - echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" >> .npmrc + # - echo "_auth = $NPM_AUTH_TOKEN" > ~/.npmrc - echo "email = $NPM_EMAIL" >> ~/.npmrc - npm publish environment: From 0dabf969ab40006987d1f85adb6acbf2f6736b7c Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:42:11 -0500 Subject: [PATCH 49/80] v0.15.0-rc.31 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a3988e9..adf68b7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.0-rc.30", + "version": "0.15.0-rc.31", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From 0b2eeca2994ba9a07f9afd7b62b41af9d3965964 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:46:00 -0500 Subject: [PATCH 50/80] Trying to publish with npm token 23 --- .drone.yml | 56 +++++++++++++++++++++++++----------------------------- 1 file changed, 26 insertions(+), 30 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2c00cf5..8105b1d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,37 +18,33 @@ steps: commands: - yarn lint - # - name: npm - # image: plugins/npm - # settings: - # username: - # from_secret: npm_username - # password: - # from_secret: npm_password - # email: tyhou13@gmx.com - # registry: https://registry.npmjs.org/:_authToken=$NPM_TOKEN - # token: - # from_secret: npm_token - # environment: - # NPM_TOKEN: - # from_secret: npm_token - # when: - # ref: - # - refs/tags/* - - name: npm publish - image: node:17-alpine - commands: - - # - npm config set //registry.npmjs.org/:_authToken "$NPM_TOKEN" - # - echo "https://registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc - - echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" >> .npmrc - # - echo "_auth = $NPM_AUTH_TOKEN" > ~/.npmrc - - echo "email = $NPM_EMAIL" >> ~/.npmrc - - npm publish - environment: - NPM_AUTH_TOKEN: + - name: npm + image: plugins/npm + settings: + username: + from_secret: npm_username + password: + from_secret: npm_password + email: tyhou13@gmx.com + registry: //registry.npmjs.org/:_authToken=$NPM_TOKEN + token: from_secret: npm_token - NPM_EMAIL: tyhou13@gmx.com + environment: + NPM_TOKEN: + from_secret: npm_token + when: + ref: + - refs/tags/* + # - name: npm publish + # image: node:17-alpine + # commands: + # - echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" >> .npmrc + # - echo "email = $NPM_EMAIL" >> ~/.npmrc + # - npm publish + # environment: + # NPM_AUTH_TOKEN: + # from_secret: npm_token + # NPM_EMAIL: tyhou13@gmx.com --- kind: pipeline From 72379213ca8b69f80088497133226f6cc16797b0 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:46:04 -0500 Subject: [PATCH 51/80] v0.15.0-rc.32 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index adf68b7..13a89da 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.0-rc.31", + "version": "0.15.0-rc.32", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From 754cd94d059ae5a1b6f2da3c0fd1c4ae56810768 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:47:09 -0500 Subject: [PATCH 52/80] Trying to publish with npm token 24 --- .drone.yml | 30 ++++++++---------------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/.drone.yml b/.drone.yml index 8105b1d..1f0caa1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,33 +18,19 @@ steps: commands: - yarn lint - - name: npm - image: plugins/npm - settings: - username: - from_secret: npm_username - password: - from_secret: npm_password - email: tyhou13@gmx.com - registry: //registry.npmjs.org/:_authToken=$NPM_TOKEN - token: - from_secret: npm_token + - name: npm publish + image: node:17-alpine + commands: + - echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" >> .npmrc + - echo "email = $NPM_EMAIL" >> ~/.npmrc + - npm publish environment: - NPM_TOKEN: + NPM_AUTH_TOKEN: from_secret: npm_token + NPM_EMAIL: tyhou13@gmx.com when: ref: - refs/tags/* - # - name: npm publish - # image: node:17-alpine - # commands: - # - echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" >> .npmrc - # - echo "email = $NPM_EMAIL" >> ~/.npmrc - # - npm publish - # environment: - # NPM_AUTH_TOKEN: - # from_secret: npm_token - # NPM_EMAIL: tyhou13@gmx.com --- kind: pipeline From 176d23716643b5103989ae72592c545605a6ca58 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:47:11 -0500 Subject: [PATCH 53/80] v0.15.0-rc.33 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 13a89da..196a075 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.0-rc.32", + "version": "0.15.0-rc.33", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From ada672c2253d66b025d421ad5d23b6258ca9482a Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:51:16 -0500 Subject: [PATCH 54/80] Adding ban_expires to person (#40) --- src/interfaces/api/community.ts | 6 ++++++ src/interfaces/api/person.ts | 3 +++ src/interfaces/source.ts | 1 + 3 files changed, 10 insertions(+) diff --git a/src/interfaces/api/community.ts b/src/interfaces/api/community.ts index e7d6a37..7d072ed 100644 --- a/src/interfaces/api/community.ts +++ b/src/interfaces/api/community.ts @@ -64,6 +64,9 @@ export interface BanFromCommunity { */ remove_data?: boolean; reason?: string; + /** + * The expire time in Unix seconds + */ expires?: number; auth: string; } @@ -110,6 +113,9 @@ export interface RemoveCommunity { community_id: number; removed: boolean; reason?: string; + /** + * The expire time in Unix seconds + */ expires?: number; auth: string; } diff --git a/src/interfaces/api/person.ts b/src/interfaces/api/person.ts index c85b1c6..8272552 100644 --- a/src/interfaces/api/person.ts +++ b/src/interfaces/api/person.ts @@ -173,6 +173,9 @@ export interface BanPerson { */ remove_data?: boolean; reason?: string; + /** + * The expire time in Unix seconds + */ expires?: number; auth: string; } diff --git a/src/interfaces/source.ts b/src/interfaces/source.ts index abf6b4a..838654f 100644 --- a/src/interfaces/source.ts +++ b/src/interfaces/source.ts @@ -35,6 +35,7 @@ export interface PersonSafe { matrix_user_id?: string; admin: boolean; bot_account: boolean; + ban_expires?: string; } export interface Site { From 63b42bf826e6b912bf1246cb26ea54de1ef143a1 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:51:35 -0500 Subject: [PATCH 55/80] v0.15.0-rc.34 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 196a075..c3ed5e1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.0-rc.33", + "version": "0.15.0-rc.34", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From 42c3421411a7464eeabebc53838f00ab953a0a5f Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 12 Jan 2022 08:43:40 -0500 Subject: [PATCH 56/80] v0.15.0 --- package.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index c3ed5e1..e59a886 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.0-rc.34", + "version": "0.15.0", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", @@ -16,14 +16,14 @@ }, "repository": "https://github.com/LemmyNet/lemmy-js-client", "devDependencies": { - "@types/node": "^16.11.11", + "@types/node": "^17.0.8", "@types/node-fetch": "^3.0.3", - "@typescript-eslint/eslint-plugin": "^5.5.0", - "@typescript-eslint/parser": "^5.5.0", - "eslint": "^8.3.0", + "@typescript-eslint/eslint-plugin": "^5.9.1", + "@typescript-eslint/parser": "^5.9.1", + "eslint": "^8.6.0", "eslint-plugin-prettier": "^4.0.0", "husky": "^7.0.4", - "lint-staged": "^12.1.2", + "lint-staged": "^12.1.7", "node-fetch": "^3.1.0", "prettier": "^2.5.0", "prettier-plugin-import-sort": "^0.0.7", @@ -32,7 +32,7 @@ "sortpack": "^2.2.0", "typedoc": "^0.21.6", "typedoc-plugin-sourcefile-url": "^1.0.6", - "typescript": "^4.5.2" + "typescript": "^4.5.4" }, "types": "./dist/index.d.ts", "lint-staged": { From fa04408c5a532d129a3c4060367482c207fc92a7 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 24 Jan 2022 22:12:50 -0500 Subject: [PATCH 57/80] Upgrading deps. (#43) --- package.json | 12 +-- yarn.lock | 261 ++++++++++++++++++++++++++++----------------------- 2 files changed, 151 insertions(+), 122 deletions(-) diff --git a/package.json b/package.json index e59a886..7ca14f6 100644 --- a/package.json +++ b/package.json @@ -16,15 +16,15 @@ }, "repository": "https://github.com/LemmyNet/lemmy-js-client", "devDependencies": { - "@types/node": "^17.0.8", + "@types/node": "^17.0.10", "@types/node-fetch": "^3.0.3", - "@typescript-eslint/eslint-plugin": "^5.9.1", - "@typescript-eslint/parser": "^5.9.1", - "eslint": "^8.6.0", + "@typescript-eslint/eslint-plugin": "^5.10.0", + "@typescript-eslint/parser": "^5.10.0", + "eslint": "^8.7.0", "eslint-plugin-prettier": "^4.0.0", "husky": "^7.0.4", - "lint-staged": "^12.1.7", - "node-fetch": "^3.1.0", + "lint-staged": "^12.2.2", + "node-fetch": "^3.1.1", "prettier": "^2.5.0", "prettier-plugin-import-sort": "^0.0.7", "prettier-plugin-organize-imports": "^2.3.4", diff --git a/yarn.lock b/yarn.lock index 2e60d6e..6ea1438 100644 --- a/yarn.lock +++ b/yarn.lock @@ -276,18 +276,24 @@ dependencies: node-fetch "*" -"@types/node@*", "@types/node@^16.11.11": +"@types/node@*": version "16.11.11" resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.11.tgz#6ea7342dfb379ea1210835bada87b3c512120234" integrity sha512-KB0sixD67CeecHC33MYn+eYARkqTheIRNuu97y2XMjR7Wu3XibO1vaY6VBV6O/a89SPI81cEUIYT87UqUWlZNw== -"@typescript-eslint/eslint-plugin@^5.5.0": - version "5.6.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.6.0.tgz#efd8668b3d6627c46ce722c2afe813928fe120a0" - integrity sha512-MIbeMy5qfLqtgs1hWd088k1hOuRsN9JrHUPwVVKCD99EOUqScd7SrwoZl4Gso05EAP9w1kvLWUVGJOVpRPkDPA== +"@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== + +"@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== dependencies: - "@typescript-eslint/experimental-utils" "5.6.0" - "@typescript-eslint/scope-manager" "5.6.0" + "@typescript-eslint/scope-manager" "5.10.0" + "@typescript-eslint/type-utils" "5.10.0" + "@typescript-eslint/utils" "5.10.0" debug "^4.3.2" functional-red-black-tree "^1.0.1" ignore "^5.1.8" @@ -295,60 +301,69 @@ semver "^7.3.5" tsutils "^3.21.0" -"@typescript-eslint/experimental-utils@5.6.0": - version "5.6.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-5.6.0.tgz#f3a5960f2004abdcac7bb81412bafc1560841c23" - integrity sha512-VDoRf3Qj7+W3sS/ZBXZh3LBzp0snDLEgvp6qj0vOAIiAPM07bd5ojQ3CTzF/QFl5AKh7Bh1ycgj6lFBJHUt/DA== +"@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== dependencies: - "@types/json-schema" "^7.0.9" - "@typescript-eslint/scope-manager" "5.6.0" - "@typescript-eslint/types" "5.6.0" - "@typescript-eslint/typescript-estree" "5.6.0" - eslint-scope "^5.1.1" - eslint-utils "^3.0.0" - -"@typescript-eslint/parser@^5.5.0": - version "5.6.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.6.0.tgz#11677324659641400d653253c03dcfbed468d199" - integrity sha512-YVK49NgdUPQ8SpCZaOpiq1kLkYRPMv9U5gcMrywzI8brtwZjr/tG3sZpuHyODt76W/A0SufNjYt9ZOgrC4tLIQ== - dependencies: - "@typescript-eslint/scope-manager" "5.6.0" - "@typescript-eslint/types" "5.6.0" - "@typescript-eslint/typescript-estree" "5.6.0" + "@typescript-eslint/scope-manager" "5.10.0" + "@typescript-eslint/types" "5.10.0" + "@typescript-eslint/typescript-estree" "5.10.0" debug "^4.3.2" -"@typescript-eslint/scope-manager@5.6.0": - version "5.6.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.6.0.tgz#9dd7f007dc8f3a34cdff6f79f5eaab27ae05157e" - integrity sha512-1U1G77Hw2jsGWVsO2w6eVCbOg0HZ5WxL/cozVSTfqnL/eB9muhb8THsP0G3w+BB5xAHv9KptwdfYFAUfzcIh4A== +"@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== dependencies: - "@typescript-eslint/types" "5.6.0" - "@typescript-eslint/visitor-keys" "5.6.0" + "@typescript-eslint/types" "5.10.0" + "@typescript-eslint/visitor-keys" "5.10.0" -"@typescript-eslint/types@5.6.0": - version "5.6.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.6.0.tgz#745cb1b59daadcc1f32f7be95f0f68accf38afdd" - integrity sha512-OIZffked7mXv4mXzWU5MgAEbCf9ecNJBKi+Si6/I9PpTaj+cf2x58h2oHW5/P/yTnPkKaayfjhLvx+crnl5ubA== - -"@typescript-eslint/typescript-estree@5.6.0": - version "5.6.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.6.0.tgz#dfbb19c9307fdd81bd9c650c67e8397821d7faf0" - integrity sha512-92vK5tQaE81rK7fOmuWMrSQtK1IMonESR+RJR2Tlc7w4o0MeEdjgidY/uO2Gobh7z4Q1hhS94Cr7r021fMVEeA== +"@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== dependencies: - "@typescript-eslint/types" "5.6.0" - "@typescript-eslint/visitor-keys" "5.6.0" + "@typescript-eslint/utils" "5.10.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/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== + dependencies: + "@typescript-eslint/types" "5.10.0" + "@typescript-eslint/visitor-keys" "5.10.0" debug "^4.3.2" globby "^11.0.4" is-glob "^4.0.3" semver "^7.3.5" tsutils "^3.21.0" -"@typescript-eslint/visitor-keys@5.6.0": - version "5.6.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.6.0.tgz#3e36509e103fe9713d8f035ac977235fd63cb6e6" - integrity sha512-1p7hDp5cpRFUyE3+lvA74egs+RWSgumrBpzBCDzfTFv0aQ7lIeay80yU0hIxgAhwQ6PcasW35kaOCyDOv6O/Ng== +"@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== dependencies: - "@typescript-eslint/types" "5.6.0" + "@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" + 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== + dependencies: + "@typescript-eslint/types" "5.10.0" eslint-visitor-keys "^3.0.0" acorn-jsx@^5.3.1: @@ -361,6 +376,11 @@ acorn@^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== + aggregate-error@^3.0.0: version "3.1.0" resolved "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.1.0.tgz#92670ff50f5359bdb7a3e0d40d0ec30c5737687a" @@ -379,11 +399,6 @@ ajv@^6.10.0, ajv@^6.12.4: json-schema-traverse "^0.4.1" uri-js "^4.2.2" -ansi-colors@^4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.1.tgz#cbb9ae256bf750af1eab344f229aa27fe94ba348" - integrity sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA== - ansi-escapes@^4.3.0: version "4.3.1" resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.1.tgz#a5c47cc43181f1f38ffd7076837700d395522a61" @@ -639,7 +654,7 @@ debug@^4.1.0, debug@^4.1.1: dependencies: ms "2.1.2" -debug@^4.3.2: +debug@^4.3.2, debug@^4.3.3: version "4.3.3" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.3.tgz#04266e0b70a98d4462e6e288e38259213332b664" integrity sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q== @@ -695,13 +710,6 @@ emoji-regex@^9.2.2: resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-9.2.2.tgz#840c8803b0d8047f4ff0cf963176b32d4ef3ed72" integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg== -enquirer@^2.3.5, enquirer@^2.3.6: - version "2.3.6" - resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.3.6.tgz#2a7fe5dd634a1e4125a975ec994ff5456dc3734d" - integrity sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg== - dependencies: - ansi-colors "^4.1.1" - error-ex@^1.3.1: version "1.3.2" resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" @@ -764,10 +772,15 @@ eslint-visitor-keys@^3.0.0, eslint-visitor-keys@^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@^8.3.0: - version "8.4.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.4.0.tgz#2fa01b271cafc28addc2719e551acff5e89f5230" - integrity sha512-kv0XQcAQJL/VD9THQKhTQZVqkJKA+tIj/v2ZKNaIHRAADcJWFb+B/BAewUYuF6UVg1s2xC5qXVoDk0G8sKGeTA== +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@^8.7.0: + version "8.7.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.7.0.tgz#22e036842ee5b7cf87b03fe237731675b4d3633c" + integrity sha512-ifHYzkBGrzS2iDU7KjhCAVMGCvF6M3Xfs8X8b37cgrUlDt6bWRTpRh6T/gtSXv1HJ/BUGgmjvNvOEGu85Iif7w== dependencies: "@eslint/eslintrc" "^1.0.5" "@humanwhocodes/config-array" "^0.9.2" @@ -776,12 +789,11 @@ eslint@^8.3.0: cross-spawn "^7.0.2" debug "^4.3.2" doctrine "^3.0.0" - enquirer "^2.3.5" escape-string-regexp "^4.0.0" eslint-scope "^7.1.0" eslint-utils "^3.0.0" - eslint-visitor-keys "^3.1.0" - espree "^9.2.0" + eslint-visitor-keys "^3.2.0" + espree "^9.3.0" esquery "^1.4.0" esutils "^2.0.2" fast-deep-equal "^3.1.3" @@ -789,7 +801,7 @@ eslint@^8.3.0: functional-red-black-tree "^1.0.1" glob-parent "^6.0.1" globals "^13.6.0" - ignore "^4.0.6" + ignore "^5.2.0" import-fresh "^3.0.0" imurmurhash "^0.1.4" is-glob "^4.0.0" @@ -800,9 +812,7 @@ eslint@^8.3.0: minimatch "^3.0.4" natural-compare "^1.4.0" optionator "^0.9.1" - progress "^2.0.0" regexpp "^3.2.0" - semver "^7.2.1" strip-ansi "^6.0.1" strip-json-comments "^3.1.0" text-table "^0.2.0" @@ -817,6 +827,15 @@ espree@^9.2.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" + esprima@^4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" @@ -923,6 +942,14 @@ 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== + dependencies: + node-domexception "^1.0.0" + web-streams-polyfill "^3.0.3" + file-entry-cache@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" @@ -1141,6 +1168,11 @@ ignore@^5.1.8: resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.1.9.tgz#9ec1a5cbe8e1446ec60d4420060d43aa6e7382fb" integrity sha512-2zeMQpbKz5dhZ9IwL0gbxSW5w0NK/MSAMtNuhgIHEPmaU3vPdKPL0UdvUCXs5SS4JAwsBxysK5sFMW8ocFiVjQ== +ignore@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.0.tgz#6d3bac8fa7fe0d45d9f9be7bac2fc279577e345a" + integrity sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ== + import-fresh@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-2.0.0.tgz#d81355c15612d386c61f9ddd3922d4304822a546" @@ -1367,37 +1399,36 @@ lilconfig@2.0.4: resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-2.0.4.tgz#f4507d043d7058b380b6a8f5cb7bcd4b34cee082" integrity sha512-bfTIN7lEsiooCocSISTWXkiWJkRqtL9wYtYy+8EK3Y41qh3mpwPU0ycTOgjdY9ErwXCc8QyrQp82bdL0Xkm9yA== -lint-staged@^12.1.2: - version "12.1.2" - resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-12.1.2.tgz#90c571927e1371fc133e720671dd7989eab53f74" - integrity sha512-bSMcQVqMW98HLLLR2c2tZ+vnDCnx4fd+0QJBQgN/4XkdspGRPc8DGp7UuOEBe1ApCfJ+wXXumYnJmU+wDo7j9A== +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== dependencies: cli-truncate "^3.1.0" colorette "^2.0.16" commander "^8.3.0" - debug "^4.3.2" - enquirer "^2.3.6" + debug "^4.3.3" execa "^5.1.1" lilconfig "2.0.4" - listr2 "^3.13.3" + listr2 "^3.13.5" micromatch "^4.0.4" normalize-path "^3.0.0" - object-inspect "^1.11.0" + object-inspect "^1.11.1" string-argv "^0.3.1" - supports-color "^9.0.2" + supports-color "^9.2.1" yaml "^1.10.2" -listr2@^3.13.3: - version "3.13.5" - resolved "https://registry.yarnpkg.com/listr2/-/listr2-3.13.5.tgz#105a813f2eb2329c4aae27373a281d610ee4985f" - integrity sha512-3n8heFQDSk+NcwBn3CgxEibZGaRzx+pC64n3YjpMD1qguV4nWus3Al+Oo3KooqFKTQEJ1v7MmnbnyyNspgx3NA== +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== 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.4.0" + rxjs "^7.5.1" through "^2.3.8" wrap-ansi "^7.0.0" @@ -1498,6 +1529,11 @@ neo-async@^2.6.0: resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== +node-domexception@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/node-domexception/-/node-domexception-1.0.0.tgz#6888db46a1f71c0b76b3f7555016b63fe64766e5" + integrity sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ== + node-fetch@*: version "3.0.0" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-3.0.0.tgz#79da7146a520036f2c5f644e4a26095f17e411ea" @@ -1506,13 +1542,13 @@ node-fetch@*: data-uri-to-buffer "^3.0.1" fetch-blob "^3.1.2" -node-fetch@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-3.1.0.tgz#714f4922dc270239487654eaeeab86b8206cb52e" - integrity sha512-QU0WbIfMUjd5+MUzQOYhenAazakV7Irh1SGkWCsRzBwvm4fAhzEUaHMJ6QLP7gWT6WO9/oH2zhKMMGMuIrDyKw== +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== dependencies: data-uri-to-buffer "^4.0.0" - fetch-blob "^3.1.2" + fetch-blob "^3.1.3" formdata-polyfill "^4.0.10" node-releases@^2.0.1: @@ -1532,10 +1568,10 @@ npm-run-path@^4.0.1: dependencies: path-key "^3.0.0" -object-inspect@^1.11.0: - version "1.11.1" - resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.11.1.tgz#d4bd7d7de54b9a75599f59a00bd698c1f1c6549b" - integrity sha512-If7BjFlpkzzBeV1cqgT3OSWT3azyoxDGajR+iGnFBfVV2EWyDyWaZZW2ERDjUaY2QM8i5jI3Sj7mhsM4DDAqWA== +object-inspect@^1.11.1: + 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== once@^1.3.0: version "1.4.0" @@ -1666,7 +1702,7 @@ prettier@^2.5.0: resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.5.1.tgz#fff75fa9d519c54cf0fce328c1017d94546bc56a" integrity sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg== -progress@^2.0.0, progress@^2.0.3: +progress@^2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== @@ -1729,12 +1765,12 @@ 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.4.0: - version "7.4.0" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.4.0.tgz#a12a44d7eebf016f5ff2441b87f28c9a51cebc68" - integrity sha512-7SQDi7xeTMCJpqViXh8gL/lebcwlp3d831F05+9B44A4B0WfsEwUQHR64gsH1kvJ+Ep/J9K2+n1hVl1CsGN23w== +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== dependencies: - tslib "~2.1.0" + tslib "^2.1.0" safe-buffer@~5.1.1: version "5.1.2" @@ -1746,13 +1782,6 @@ semver@^6.3.0: resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== -semver@^7.2.1: - version "7.3.4" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.4.tgz#27aaa7d2e4ca76452f98d3add093a72c943edc97" - integrity sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw== - dependencies: - lru-cache "^6.0.0" - semver@^7.3.5: version "7.3.5" resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.5.tgz#0b621c879348d8998e4b0e4be94b3f12e6018ef7" @@ -1922,7 +1951,7 @@ supports-color@^7.1.0: dependencies: has-flag "^4.0.0" -supports-color@^9.0.2: +supports-color@^9.2.1: version "9.2.1" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-9.2.1.tgz#599dc9d45acf74c6176e0d880bab1d7d718fe891" integrity sha512-Obv7ycoCTG51N7y175StI9BlAXrmgZrFhZOb0/PyjHBher/NmsdBgbbQ1Inhq+gIhz6+7Gb+jWF2Vqi7Mf1xnQ== @@ -1954,10 +1983,10 @@ tslib@^1.8.1: resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== -tslib@~2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.1.0.tgz#da60860f1c2ecaa5703ab7d39bc05b6bf988b97a" - integrity sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A== +tslib@^2.1.0: + version "2.3.1" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.1.tgz#e8a335add5ceae51aa261d32a490158ef042ef01" + integrity sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw== tsutils@^3.21.0: version "3.21.0" @@ -2012,10 +2041,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.2: - version "4.5.2" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.2.tgz#8ac1fba9f52256fdb06fb89e4122fa6a346c2998" - integrity sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw== +typescript@^4.5.4: + version "4.5.4" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.4.tgz#a17d3a0263bf5c8723b9c52f43c5084edf13c2e8" + integrity sha512-VgYs2A2QIRuGphtzFV7aQJduJ2gyfTljngLzjpfW9FoYZF6xuw1W0vW9ghCKLfcWrCFxK81CSGRAvS1pn4fIUg== uglify-js@^3.1.4: version "3.14.2" From a86ade901bfca2c19194da0ef1be3c59591842fe Mon Sep 17 00:00:00 2001 From: Nutomic Date: Wed, 23 Feb 2022 16:53:29 +0000 Subject: [PATCH 58/80] Add field Site.default_theme (#45) --- src/interfaces/source.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/interfaces/source.ts b/src/interfaces/source.ts index 838654f..48b3401 100644 --- a/src/interfaces/source.ts +++ b/src/interfaces/source.ts @@ -56,6 +56,7 @@ export interface Site { require_application: boolean; application_question?: string; private_instance: boolean; + default_theme: string; } export interface PrivateMessage { From 8915dc4c25f06171647aa7b60d3d6f2299c8f916 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 23 Feb 2022 11:55:03 -0500 Subject: [PATCH 59/80] v0.15.4-rc.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7ca14f6..9a2c2a5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.0", + "version": "0.15.4-rc.1", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From 1b31b8ffd2ed8d7c29884a175badd7e8927fce40 Mon Sep 17 00:00:00 2001 From: Nutomic Date: Thu, 24 Feb 2022 18:18:35 +0000 Subject: [PATCH 60/80] Add field Site.default_theme in missing places (#46) --- src/interfaces/api/site.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/interfaces/api/site.ts b/src/interfaces/api/site.ts index 387ff74..770236d 100644 --- a/src/interfaces/api/site.ts +++ b/src/interfaces/api/site.ts @@ -97,6 +97,7 @@ export interface CreateSite { require_application?: boolean; application_question?: string; private_instance?: boolean; + default_theme?: string; auth: string; } @@ -114,6 +115,7 @@ export interface EditSite { require_application?: boolean; application_question?: string; private_instance?: boolean; + default_theme?: string; auth: string; } From 7a592b971999d5cf43ca52c9ce511a6529836339 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 24 Feb 2022 14:28:58 -0500 Subject: [PATCH 61/80] v0.15.4-rc.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9a2c2a5..a569703 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.4-rc.1", + "version": "0.15.4-rc.2", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From 9f4a112a1863b7f8c3a480caeac75eaef4d23096 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 1 Mar 2022 16:54:51 +0000 Subject: [PATCH 62/80] Removing site_creator, adding LeaveAdmin. (#42) * Removing site_creator, adding LeaveAdmin. * v0.15.1-rc.1 --- package.json | 2 +- src/http.ts | 8 ++++---- src/interfaces/api/site.ts | 3 +-- src/interfaces/others.ts | 2 +- src/interfaces/source.ts | 1 - src/websocket.ts | 8 ++++---- 6 files changed, 11 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index a569703..99e3ed2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.4-rc.2", + "version": "0.15.1-rc.1", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", diff --git a/src/http.ts b/src/http.ts index be445a1..29af416 100644 --- a/src/http.ts +++ b/src/http.ts @@ -112,6 +112,7 @@ import { GetSiteResponse, GetUnreadRegistrationApplicationCount, GetUnreadRegistrationApplicationCountResponse, + LeaveAdmin, ListRegistrationApplications, ListRegistrationApplicationsResponse, RegistrationApplicationResponse, @@ -121,7 +122,6 @@ import { Search, SearchResponse, SiteResponse, - TransferSite, } from "./interfaces/api/site"; import { VERSION } from "./interfaces/others"; @@ -173,10 +173,10 @@ export class LemmyHttp { } /** - * Transfer your site to another user. + * Leave the Site admins. */ - async transferSite(form: TransferSite): Promise { - return this.wrapper(HttpType.Post, "/site/transfer", form); + async leaveAdmin(form: LeaveAdmin): Promise { + return this.wrapper(HttpType.Post, "/user/leave_admin", form); } /** diff --git a/src/interfaces/api/site.ts b/src/interfaces/api/site.ts index 770236d..c28084b 100644 --- a/src/interfaces/api/site.ts +++ b/src/interfaces/api/site.ts @@ -153,8 +153,7 @@ export interface MyUserInfo { person_blocks: PersonBlockView[]; } -export interface TransferSite { - person_id: number; +export interface LeaveAdmin { auth: string; } diff --git a/src/interfaces/others.ts b/src/interfaces/others.ts index 23f2d7c..72fce46 100644 --- a/src/interfaces/others.ts +++ b/src/interfaces/others.ts @@ -52,7 +52,7 @@ export enum UserOperation { MarkAllAsRead, SaveUserSettings, TransferCommunity, - TransferSite, + LeaveAdmin, DeleteAccount, PasswordReset, PasswordChange, diff --git a/src/interfaces/source.ts b/src/interfaces/source.ts index 48b3401..c58ccb3 100644 --- a/src/interfaces/source.ts +++ b/src/interfaces/source.ts @@ -42,7 +42,6 @@ export interface Site { id: number; name: string; sidebar?: string; - creator_id: number; published: string; updated?: string; enable_downvotes: boolean; diff --git a/src/websocket.ts b/src/websocket.ts index 3fcd228..35f91b4 100644 --- a/src/websocket.ts +++ b/src/websocket.ts @@ -74,11 +74,11 @@ import { GetSite, GetSiteConfig, GetUnreadRegistrationApplicationCount, + LeaveAdmin, ListRegistrationApplications, ResolveObject, SaveSiteConfig, Search, - TransferSite, } from "./interfaces/api/site"; import { CommunityJoin, PostJoin, UserJoin } from "./interfaces/api/websocket"; import { UserOperation } from "./interfaces/others"; @@ -389,10 +389,10 @@ export class LemmyWebsocket { } /** - * Transfer your site to another user. + * Leave the Site admins. */ - transferSite(form: TransferSite) { - return wrapper(UserOperation.TransferSite, form); + leaveAdmin(form: LeaveAdmin) { + return wrapper(UserOperation.LeaveAdmin, form); } /** From b450c4fe63ebaffd1a61e5025fc1f5ef1ad99cc0 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 1 Mar 2022 11:55:15 -0500 Subject: [PATCH 63/80] v0.15.4-rc.3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 99e3ed2..8a71b31 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.1-rc.1", + "version": "0.15.4-rc.3", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From 72f29cb684faeb94259441af29907ed4467f84a5 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 4 Mar 2022 09:17:24 -0500 Subject: [PATCH 64/80] v0.16.0-rc.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8a71b31..c93c4f3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.15.4-rc.3", + "version": "0.16.0-rc.1", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From 4d6be6e9c22a0122cdc1457fe3a87aecfefb66e7 Mon Sep 17 00:00:00 2001 From: Nutomic Date: Mon, 25 Apr 2022 23:10:02 +0200 Subject: [PATCH 65/80] Add site to GetCommunityResponse (#47) * Add site to GetCommunityResponse * Add new site fields (fixes #44) --- src/interfaces/api/community.ts | 2 ++ src/interfaces/source.ts | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/interfaces/api/community.ts b/src/interfaces/api/community.ts index 7d072ed..6341ab1 100644 --- a/src/interfaces/api/community.ts +++ b/src/interfaces/api/community.ts @@ -1,3 +1,4 @@ +import { Site } from "../source"; import { CommunityModeratorView, CommunityView, @@ -17,6 +18,7 @@ export interface GetCommunity { export interface GetCommunityResponse { community_view: CommunityView; + site?: Site; moderators: CommunityModeratorView[]; online: number; } diff --git a/src/interfaces/source.ts b/src/interfaces/source.ts index c58ccb3..10a5d94 100644 --- a/src/interfaces/source.ts +++ b/src/interfaces/source.ts @@ -56,6 +56,10 @@ export interface Site { application_question?: string; private_instance: boolean; default_theme: string; + actor_id: string; + last_refreshed_at: string; + inbox_url: string; + public_key: string; } export interface PrivateMessage { From 8d0fc63474071c3260ebced1c79bad53cb70d4ea Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 27 Apr 2022 16:58:52 -0400 Subject: [PATCH 66/80] v0.16.4-rc.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c93c4f3..97276a7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.16.0-rc.1", + "version": "0.16.4-rc.1", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From 4e4116848815744a157b8de49ebf2399fb01ba54 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 29 Apr 2022 13:21:23 -0400 Subject: [PATCH 67/80] Adding posting_restricted_to_mods (#48) --- src/interfaces/api/community.ts | 2 ++ src/interfaces/source.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/src/interfaces/api/community.ts b/src/interfaces/api/community.ts index 6341ab1..ddb97e3 100644 --- a/src/interfaces/api/community.ts +++ b/src/interfaces/api/community.ts @@ -30,6 +30,7 @@ export interface CreateCommunity { icon?: string; banner?: string; nsfw?: boolean; + posting_restricted_to_mods?: boolean; auth: string; } @@ -99,6 +100,7 @@ export interface EditCommunity { icon?: string; banner?: string; nsfw?: boolean; + posting_restricted_to_mods?: boolean; auth: string; } diff --git a/src/interfaces/source.ts b/src/interfaces/source.ts index 10a5d94..8d01aa2 100644 --- a/src/interfaces/source.ts +++ b/src/interfaces/source.ts @@ -223,6 +223,7 @@ export interface CommunitySafe { local: boolean; icon?: string; banner?: string; + posting_restricted_to_mods: boolean; } export interface CommentReport { From af760304d8d10203daf5cc2c17db3831053d1ae7 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 29 Apr 2022 13:21:51 -0400 Subject: [PATCH 68/80] v0.16.4-rc.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 97276a7..153bbdc 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.16.4-rc.1", + "version": "0.16.4-rc.2", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From 7203e3dce63f0f11b6d4a8da54a8f3dc602a8d8b Mon Sep 17 00:00:00 2001 From: Marcin Wojnarowski Date: Tue, 3 May 2022 20:12:41 +0200 Subject: [PATCH 69/80] Remove creator from SiteView (#49) --- src/interfaces/views.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/interfaces/views.ts b/src/interfaces/views.ts index d7b6d94..574be90 100644 --- a/src/interfaces/views.ts +++ b/src/interfaces/views.ts @@ -57,7 +57,6 @@ export interface LocalUserSettingsView { export interface SiteView { site: Site; - creator: PersonSafe; counts: SiteAggregates; } From a8f4298f06148bd286d69402b2845d0df140afd0 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 15 May 2022 15:26:40 -0400 Subject: [PATCH 70/80] Use enum types in API. Fixes #51 --- src/interfaces/api/comment.ts | 11 +++-------- src/interfaces/api/community.ts | 12 +++--------- src/interfaces/api/person.ts | 13 ++++--------- src/interfaces/api/post.ts | 14 +++----------- src/interfaces/api/site.ts | 17 ++++------------- 5 files changed, 17 insertions(+), 50 deletions(-) diff --git a/src/interfaces/api/comment.ts b/src/interfaces/api/comment.ts index 11f63f9..3ad4d0a 100644 --- a/src/interfaces/api/comment.ts +++ b/src/interfaces/api/comment.ts @@ -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; diff --git a/src/interfaces/api/community.ts b/src/interfaces/api/community.ts index ddb97e3..a9c0ff3 100644 --- a/src/interfaces/api/community.ts +++ b/src/interfaces/api/community.ts @@ -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; diff --git a/src/interfaces/api/person.ts b/src/interfaces/api/person.ts index 8272552..ffc4e55 100644 --- a/src/interfaces/api/person.ts +++ b/src/interfaces/api/person.ts @@ -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; diff --git a/src/interfaces/api/post.ts b/src/interfaces/api/post.ts index 651bed4..2012dd1 100644 --- a/src/interfaces/api/post.ts +++ b/src/interfaces/api/post.ts @@ -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; diff --git a/src/interfaces/api/site.ts b/src/interfaces/api/site.ts index c28084b..82688ab 100644 --- a/src/interfaces/api/site.ts +++ b/src/interfaces/api/site.ts @@ -1,3 +1,4 @@ +import { ListingType, SearchType, SortType } from "../others"; import { CommentView, CommunityBlockView, @@ -30,22 +31,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; From 0a61424ca97328d4dff095b7bae81eeb72d0201d Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 15 May 2022 15:26:59 -0400 Subject: [PATCH 71/80] v0.17.0-rc.9 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 153bbdc..dc5f9c1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.16.4-rc.2", + "version": "0.17.0-rc.9", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From 57de18c17e640f39d5466ff1ad80aa43c52e0bc5 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 22 May 2022 15:44:30 -0400 Subject: [PATCH 72/80] Add follow pending. (#52) * Add follow pending. * v0.17.0-rc.1 * Make follower optional. * v0.17.0-rc.2 * Pending is now required. * v0.17.0-rc.3 --- src/http.ts | 5 ++++- src/interfaces/api/community.ts | 8 ++++++++ src/interfaces/views.ts | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/http.ts b/src/http.ts index 29af416..95a5e15 100644 --- a/src/http.ts +++ b/src/http.ts @@ -28,6 +28,7 @@ import { DeleteCommunity, EditCommunity, FollowCommunity, + FollowCommunityResponse, GetCommunity, GetCommunityResponse, ListCommunities, @@ -247,7 +248,9 @@ export class LemmyHttp { /** * Follow / subscribe to a community. */ - async followCommunity(form: FollowCommunity): Promise { + async followCommunity( + form: FollowCommunity + ): Promise { return this.wrapper(HttpType.Post, "/community/follow", form); } diff --git a/src/interfaces/api/community.ts b/src/interfaces/api/community.ts index a9c0ff3..e8947d2 100644 --- a/src/interfaces/api/community.ts +++ b/src/interfaces/api/community.ts @@ -1,6 +1,7 @@ import { ListingType, SortType } from "../others"; import { Site } from "../source"; import { + CommunityFollowerView, CommunityModeratorView, CommunityView, PersonViewSafe, @@ -39,6 +40,13 @@ export interface CommunityResponse { community_view: CommunityView; } +export interface FollowCommunityResponse { + /** + * An unfollow returns null. + */ + community_follower_view?: CommunityFollowerView; +} + export interface ListCommunities { type_?: ListingType; sort?: SortType; diff --git a/src/interfaces/views.ts b/src/interfaces/views.ts index 574be90..008820f 100644 --- a/src/interfaces/views.ts +++ b/src/interfaces/views.ts @@ -190,6 +190,7 @@ export interface ModStickyPostView { export interface CommunityFollowerView { community: CommunitySafe; follower: PersonSafe; + pending: boolean; } export interface CommunityBlockView { From 07919905c329f8da5694c496ba82a80f071d6312 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 22 May 2022 15:45:53 -0400 Subject: [PATCH 73/80] Adding endpoint comments. Fixes #50 (#56) --- src/http.ts | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 74 insertions(+), 1 deletion(-) diff --git a/src/http.ts b/src/http.ts index 95a5e15..7566d07 100644 --- a/src/http.ts +++ b/src/http.ts @@ -154,6 +154,7 @@ export class LemmyHttp { /** * Gets the site, and your user data. + * `HTTP.GET /site` */ async getSite(form: GetSite): Promise { return this.wrapper(HttpType.Get, "/site", form); @@ -161,6 +162,7 @@ export class LemmyHttp { /** * Create your site. + * `HTTP.POST /site` */ async createSite(form: CreateSite): Promise { return this.wrapper(HttpType.Post, "/site", form); @@ -168,6 +170,7 @@ export class LemmyHttp { /** * Edit your site. + * `HTTP.PUT /site` */ async editSite(form: EditSite): Promise { return this.wrapper(HttpType.Put, "/site", form); @@ -175,6 +178,7 @@ export class LemmyHttp { /** * Leave the Site admins. + * `HTTP.POST /user/leave_admin` */ async leaveAdmin(form: LeaveAdmin): Promise { return this.wrapper(HttpType.Post, "/user/leave_admin", form); @@ -182,6 +186,7 @@ export class LemmyHttp { /** * Get your site configuration. + * `HTTP.GET /site/config` */ async getSiteConfig(form: GetSiteConfig): Promise { return this.wrapper(HttpType.Get, "/site/config", form); @@ -189,6 +194,7 @@ export class LemmyHttp { /** * Save your site config. + * `HTTP.PUT /site/config` */ async saveSiteConfig(form: SaveSiteConfig): Promise { return this.wrapper(HttpType.Put, "/site/config", form); @@ -196,6 +202,7 @@ export class LemmyHttp { /** * Get the modlog. + * `HTTP.GET /modlog` */ async getModlog(form: GetModlog): Promise { return this.wrapper(HttpType.Get, "/modlog", form); @@ -203,6 +210,7 @@ export class LemmyHttp { /** * Search lemmy. + * `HTTP.GET /search` */ async search(form: Search): Promise { return this.wrapper(HttpType.Get, "/search", form); @@ -210,6 +218,7 @@ export class LemmyHttp { /** * Fetch a non-local / federated object. + * `HTTP.GET /resolve_object` */ async resolveObject(form: ResolveObject): Promise { return this.wrapper(HttpType.Get, "/resolve_object", form); @@ -217,6 +226,7 @@ export class LemmyHttp { /** * Create a new community. + * `HTTP.POST /community` */ async createCommunity(form: CreateCommunity): Promise { return this.wrapper(HttpType.Post, "/community", form); @@ -224,6 +234,7 @@ export class LemmyHttp { /** * Get / fetch a community. + * `HTTP.GET /community` */ async getCommunity(form: GetCommunity): Promise { return this.wrapper(HttpType.Get, "/community", form); @@ -231,6 +242,7 @@ export class LemmyHttp { /** * Edit a community. + * `HTTP.PUT /community` */ async editCommunity(form: EditCommunity): Promise { return this.wrapper(HttpType.Put, "/community", form); @@ -238,6 +250,7 @@ export class LemmyHttp { /** * List communities, with various filters. + * `HTTP.GET /community/list` */ async listCommunities( form: ListCommunities @@ -247,6 +260,7 @@ export class LemmyHttp { /** * Follow / subscribe to a community. + * `HTTP.POST /community/follow` */ async followCommunity( form: FollowCommunity @@ -256,6 +270,7 @@ export class LemmyHttp { /** * Block a community. + * `HTTP.POST /community/block` */ async blockCommunity(form: BlockCommunity): Promise { return this.wrapper(HttpType.Post, "/community/block", form); @@ -263,6 +278,7 @@ export class LemmyHttp { /** * Delete a community. + * `HTTP.POST /community/delete` */ async deleteCommunity(form: DeleteCommunity): Promise { return this.wrapper(HttpType.Post, "/community/delete", form); @@ -270,6 +286,7 @@ export class LemmyHttp { /** * A moderator remove for a community. + * `HTTP.POST /community/remove` */ async removeCommunity(form: RemoveCommunity): Promise { return this.wrapper(HttpType.Post, "/community/remove", form); @@ -277,6 +294,7 @@ export class LemmyHttp { /** * Transfer your community to an existing moderator. + * `HTTP.POST /community/transfer` */ async transferCommunity( form: TransferCommunity @@ -286,6 +304,7 @@ export class LemmyHttp { /** * Ban a user from a community. + * `HTTP.POST /community/ban_user` */ async banFromCommunity( form: BanFromCommunity @@ -295,6 +314,7 @@ export class LemmyHttp { /** * Add a moderator to your community. + * `HTTP.POST /community/mod` */ async addModToCommunity( form: AddModToCommunity @@ -304,6 +324,7 @@ export class LemmyHttp { /** * Create a post. + * `HTTP.POST /post` */ async createPost(form: CreatePost): Promise { return this.wrapper(HttpType.Post, "/post", form); @@ -311,6 +332,7 @@ export class LemmyHttp { /** * Get / fetch a post. + * `HTTP.GET /post` */ async getPost(form: GetPost): Promise { return this.wrapper(HttpType.Get, "/post", form); @@ -318,6 +340,7 @@ export class LemmyHttp { /** * Edit a post. + * `HTTP.PUT /post` */ async editPost(form: EditPost): Promise { return this.wrapper(HttpType.Put, "/post", form); @@ -325,6 +348,7 @@ export class LemmyHttp { /** * Delete a post. + * `HTTP.POST /post/delete` */ async deletePost(form: DeletePost): Promise { return this.wrapper(HttpType.Post, "/post/delete", form); @@ -332,6 +356,7 @@ export class LemmyHttp { /** * A moderator remove for a post. + * `HTTP.POST /post/remove` */ async removePost(form: RemovePost): Promise { return this.wrapper(HttpType.Post, "/post/remove", form); @@ -339,6 +364,7 @@ export class LemmyHttp { /** * A moderator can lock a post ( IE disable new comments ). + * `HTTP.POST /post/lock` */ async lockPost(form: LockPost): Promise { return this.wrapper(HttpType.Post, "/post/lock", form); @@ -346,6 +372,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 { return this.wrapper(HttpType.Post, "/post/sticky", form); @@ -353,6 +380,7 @@ export class LemmyHttp { /** * Get / fetch posts, with various filters. + * `HTTP.GET /post/list` */ async getPosts(form: GetPosts): Promise { return this.wrapper(HttpType.Get, "/post/list", form); @@ -360,6 +388,7 @@ export class LemmyHttp { /** * Like / vote on a post. + * `HTTP.POST /post/like` */ async likePost(form: CreatePostLike): Promise { return this.wrapper(HttpType.Post, "/post/like", form); @@ -367,6 +396,7 @@ export class LemmyHttp { /** * Save a post. + * `HTTP.PUT /post/save` */ async savePost(form: SavePost): Promise { return this.wrapper(HttpType.Put, "/post/save", form); @@ -374,6 +404,7 @@ export class LemmyHttp { /** * Report a post. + * `HTTP.POST /post/report` */ async createPostReport(form: CreatePostReport): Promise { return this.wrapper(HttpType.Post, "/post/report", form); @@ -381,6 +412,7 @@ export class LemmyHttp { /** * Resolve a post report. Only a mod can do this. + * `HTTP.PUT /post/report/resolve` */ async resolvePostReport( form: ResolvePostReport @@ -390,6 +422,7 @@ export class LemmyHttp { /** * List post reports. + * `HTTP.GET /post/report/list` */ async listPostReports( form: ListPostReports @@ -399,6 +432,7 @@ export class LemmyHttp { /** * Fetch metadata for any given site. + * `HTTP.GET /post/site_metadata` */ async getSiteMetadata( form: GetSiteMetadata @@ -408,6 +442,7 @@ export class LemmyHttp { /** * Create a comment. + * `HTTP.POST /comment` */ async createComment(form: CreateComment): Promise { return this.wrapper(HttpType.Post, "/comment", form); @@ -415,6 +450,7 @@ export class LemmyHttp { /** * Edit a comment. + * `HTTP.PUT /comment` */ async editComment(form: EditComment): Promise { return this.wrapper(HttpType.Put, "/comment", form); @@ -422,6 +458,7 @@ export class LemmyHttp { /** * Delete a comment. + * `HTTP.POST /comment/delete` */ async deleteComment(form: DeleteComment): Promise { return this.wrapper(HttpType.Post, "/comment/delete", form); @@ -429,6 +466,7 @@ export class LemmyHttp { /** * A moderator remove for a comment. + * `HTTP.POST /comment/remove` */ async removeComment(form: RemoveComment): Promise { return this.wrapper(HttpType.Post, "/comment/remove", form); @@ -436,6 +474,7 @@ export class LemmyHttp { /** * Mark a comment as read. + * `HTTP.POST /comment/mark_as_read` */ async markCommentAsRead(form: MarkCommentAsRead): Promise { return this.wrapper(HttpType.Post, "/comment/mark_as_read", form); @@ -443,6 +482,7 @@ export class LemmyHttp { /** * Like / vote on a comment. + * `HTTP.POST /comment/like` */ async likeComment(form: CreateCommentLike): Promise { return this.wrapper(HttpType.Post, "/comment/like", form); @@ -450,6 +490,7 @@ export class LemmyHttp { /** * Save a comment. + * `HTTP.PUT /comment/save` */ async saveComment(form: SaveComment): Promise { return this.wrapper(HttpType.Put, "/comment/save", form); @@ -457,6 +498,7 @@ export class LemmyHttp { /** * Get / fetch comments. + * `HTTP.GET /comment/list` */ async getComments(form: GetComments): Promise { return this.wrapper(HttpType.Get, "/comment/list", form); @@ -464,6 +506,7 @@ export class LemmyHttp { /** * Report a comment. + * `HTTP.POST /comment/report` */ async createCommentReport( form: CreateCommentReport @@ -473,6 +516,7 @@ export class LemmyHttp { /** * Resolve a comment report. Only a mod can do this. + * `HTTP.PUT /comment/report/resolve` */ async resolveCommentReport( form: ResolveCommentReport @@ -482,6 +526,7 @@ export class LemmyHttp { /** * List comment reports. + * `HTTP.GET /comment/report/list` */ async listCommentReports( form: ListCommentReports @@ -491,6 +536,7 @@ export class LemmyHttp { /** * Get / fetch private messages. + * `HTTP.GET /private_message/list` */ async getPrivateMessages( form: GetPrivateMessages @@ -500,6 +546,7 @@ export class LemmyHttp { /** * Create a private message. + * `HTTP.POST /private_message` */ async createPrivateMessage( form: CreatePrivateMessage @@ -509,6 +556,7 @@ export class LemmyHttp { /** * Edit a private message. + * `HTTP.PUT /private_message` */ async editPrivateMessage( form: EditPrivateMessage @@ -518,6 +566,7 @@ export class LemmyHttp { /** * Delete a private message. + * `HTTP.POST /private_message/delete` */ async deletePrivateMessage( form: DeletePrivateMessage @@ -527,6 +576,7 @@ export class LemmyHttp { /** * Mark a private message as read. + * `HTTP.POST /private_message/mark_as_read` */ async markPrivateMessageAsRead( form: MarkPrivateMessageAsRead @@ -536,6 +586,7 @@ export class LemmyHttp { /** * Register a new user. + * `HTTP.POST /user/register` */ async register(form: Register): Promise { return this.wrapper(HttpType.Post, "/user/register", form); @@ -543,6 +594,7 @@ export class LemmyHttp { /** * Log into lemmy. + * `HTTP.POST /user/login` */ async login(form: Login): Promise { return this.wrapper(HttpType.Post, "/user/login", form); @@ -550,6 +602,7 @@ export class LemmyHttp { /** * Get the details for a person. + * `HTTP.GET /user` */ async getPersonDetails( form: GetPersonDetails @@ -559,6 +612,7 @@ export class LemmyHttp { /** * Get mentions for your user. + * `HTTP.GET /user/mention` */ async getPersonMentions( form: GetPersonMentions @@ -568,6 +622,7 @@ export class LemmyHttp { /** * Mark a person mention as read. + * `HTTP.POST /user/mention/mark_as_read` */ async markPersonMentionAsRead( form: MarkPersonMentionAsRead @@ -577,6 +632,7 @@ export class LemmyHttp { /** * Get comment replies. + * `HTTP.GET /user/replies` */ async getReplies(form: GetReplies): Promise { return this.wrapper(HttpType.Get, "/user/replies", form); @@ -584,6 +640,7 @@ export class LemmyHttp { /** * Ban a person from your site. + * `HTTP.POST /user/ban` */ async banPerson(form: BanPerson): Promise { return this.wrapper(HttpType.Post, "/user/ban", form); @@ -591,6 +648,7 @@ export class LemmyHttp { /** * Get a list of banned users + * `HTTP.GET /user/banned` */ async getBannedPersons( form: GetBannedPersons @@ -600,6 +658,7 @@ export class LemmyHttp { /** * Block a person. + * `HTTP.POST /user/block` */ async blockPerson(form: BlockPerson): Promise { return this.wrapper(HttpType.Post, "/user/block", form); @@ -607,6 +666,7 @@ export class LemmyHttp { /** * Fetch a Captcha. + * `HTTP.GET /user/get_captcha` */ async getCaptcha(): Promise { return this.wrapper(HttpType.Get, "/user/get_captcha", {}); @@ -614,6 +674,7 @@ export class LemmyHttp { /** * Delete your account. + * `HTTP.POST /user/delete_account` */ async deleteAccount(form: DeleteAccount): Promise { return this.wrapper(HttpType.Post, "/user/delete_account", form); @@ -621,6 +682,7 @@ export class LemmyHttp { /** * Reset your password. + * `HTTP.POST /user/password_reset` */ async passwordReset(form: PasswordReset): Promise { return this.wrapper(HttpType.Post, "/user/password_reset", form); @@ -628,6 +690,7 @@ export class LemmyHttp { /** * Change your password from an email / token based reset. + * `HTTP.POST /user/password_change` */ async passwordChange(form: PasswordChange): Promise { return this.wrapper(HttpType.Post, "/user/password_change", form); @@ -635,6 +698,7 @@ export class LemmyHttp { /** * Mark all replies as read. + * `HTTP.POST /user/mark_all_as_read` */ async markAllAsRead(form: MarkAllAsRead): Promise { return this.wrapper(HttpType.Post, "/user/mark_all_as_read", form); @@ -642,6 +706,7 @@ export class LemmyHttp { /** * Save your user settings. + * `HTTP.PUT /user/save_user_settings` */ async saveUserSettings(form: SaveUserSettings): Promise { return this.wrapper(HttpType.Put, "/user/save_user_settings", form); @@ -649,6 +714,7 @@ export class LemmyHttp { /** * Change your user password. + * `HTTP.PUT /user/change_password` */ async changePassword(form: ChangePassword): Promise { return this.wrapper(HttpType.Put, "/user/change_password", form); @@ -656,6 +722,7 @@ export class LemmyHttp { /** * Get counts for your reports + * `HTTP.GET /user/report_count` */ async getReportCount(form: GetReportCount): Promise { return this.wrapper(HttpType.Get, "/user/report_count", form); @@ -663,6 +730,7 @@ export class LemmyHttp { /** * Get your unread counts + * `HTTP.GET /user/unread_count` */ async getUnreadCount(form: GetUnreadCount): Promise { return this.wrapper(HttpType.Get, "/user/unread_count", form); @@ -670,6 +738,7 @@ export class LemmyHttp { /** * Verify your email + * `HTTP.POST /user/verify_email` */ async verifyEmail(form: VerifyEmail): Promise { return this.wrapper(HttpType.Post, "/user/verify_email", form); @@ -677,6 +746,7 @@ export class LemmyHttp { /** * Add an admin to your site. + * `HTTP.POST /admin/add` */ async addAdmin(form: AddAdmin): Promise { return this.wrapper(HttpType.Post, "/admin/add", form); @@ -684,6 +754,7 @@ export class LemmyHttp { /** * Get the unread registration applications count. + * `HTTP.GET /admin/registration_application/count` */ async getUnreadRegistrationApplicationCount( form: GetUnreadRegistrationApplicationCount @@ -696,7 +767,8 @@ export class LemmyHttp { } /** - * List the unread registration applications. + * List the registration applications. + * `HTTP.GET /admin/registration_application/list` */ async listRegistrationApplications( form: ListRegistrationApplications @@ -710,6 +782,7 @@ export class LemmyHttp { /** * Approve a registration application + * `HTTP.PUT /admin/registration_application/approve` */ async approveRegistrationApplication( form: ApproveRegistrationApplication From f67a5c12f68db76843a3d95f56fa6e87dc4409e0 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 22 May 2022 15:46:02 -0400 Subject: [PATCH 74/80] Upgrading deps. (#58) --- package.json | 20 ++-- yarn.lock | 306 +++++++++++++++++++++++++-------------------------- 2 files changed, 160 insertions(+), 166 deletions(-) diff --git a/package.json b/package.json index dc5f9c1..b173a2e 100644 --- a/package.json +++ b/package.json @@ -16,23 +16,23 @@ }, "repository": "https://github.com/LemmyNet/lemmy-js-client", "devDependencies": { - "@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": { diff --git a/yarn.lock b/yarn.lock index 6ea1438..518f8b9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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": @@ -281,19 +281,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" @@ -301,85 +301,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" @@ -747,10 +742,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" @@ -767,22 +762,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" @@ -790,10 +785,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" @@ -809,7 +804,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" @@ -818,23 +813,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" @@ -942,10 +928,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" @@ -1148,15 +1134,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" @@ -1399,10 +1380,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" @@ -1410,25 +1391,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" @@ -1509,6 +1491,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" @@ -1542,13 +1531,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: @@ -1568,7 +1557,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== @@ -1663,6 +1652,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" @@ -1690,17 +1684,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" @@ -1765,10 +1759,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" @@ -1851,10 +1845,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" @@ -2041,10 +2035,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" From 357bf2f0119abbd189ca03dd29326ab922bb254e Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 22 May 2022 15:46:20 -0400 Subject: [PATCH 75/80] Adding mark post as read. Fixes #36 (#57) --- src/http.ts | 9 +++++++++ src/interfaces/api/post.ts | 9 +++++++++ src/interfaces/others.ts | 1 + src/websocket.ts | 8 ++++++++ 4 files changed, 27 insertions(+) diff --git a/src/http.ts b/src/http.ts index 7566d07..ddb6c90 100644 --- a/src/http.ts +++ b/src/http.ts @@ -94,6 +94,7 @@ import { ListPostReports, ListPostReportsResponse, LockPost, + MarkPostAsRead, PostReportResponse, PostResponse, RemovePost, @@ -362,6 +363,14 @@ export class LemmyHttp { return this.wrapper(HttpType.Post, "/post/remove", form); } + /** + * Mark a post as read. + * `HTTP.POST /post/mark_as_read` + */ + async markPostAsRead(form: MarkPostAsRead): Promise { + return this.wrapper(HttpType.Post, "/post/mark_as_read", form); + } + /** * A moderator can lock a post ( IE disable new comments ). * `HTTP.POST /post/lock` diff --git a/src/interfaces/api/post.ts b/src/interfaces/api/post.ts index 2012dd1..7afb0e8 100644 --- a/src/interfaces/api/post.ts +++ b/src/interfaces/api/post.ts @@ -87,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. */ diff --git a/src/interfaces/others.ts b/src/interfaces/others.ts index 72fce46..7676d7f 100644 --- a/src/interfaces/others.ts +++ b/src/interfaces/others.ts @@ -26,6 +26,7 @@ export enum UserOperation { RemovePost, LockPost, StickyPost, + MarkPostAsRead, SavePost, EditCommunity, DeleteCommunity, diff --git a/src/websocket.ts b/src/websocket.ts index 35f91b4..6c2da7c 100644 --- a/src/websocket.ts +++ b/src/websocket.ts @@ -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. */ From 44e5c91042cde5f01f5b73980263e705a81ecf34 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 22 May 2022 15:47:15 -0400 Subject: [PATCH 76/80] Add default_post_listing_type (#53) * Add default_post_listing_type * v0.17.0-rc.4 * Forgot to add to the Site interface. * v0.17.0-rc.5 --- src/interfaces/api/site.ts | 2 ++ src/interfaces/source.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/src/interfaces/api/site.ts b/src/interfaces/api/site.ts index 82688ab..692ed0a 100644 --- a/src/interfaces/api/site.ts +++ b/src/interfaces/api/site.ts @@ -89,6 +89,7 @@ export interface CreateSite { application_question?: string; private_instance?: boolean; default_theme?: string; + default_post_listing_type?: string; auth: string; } @@ -107,6 +108,7 @@ export interface EditSite { application_question?: string; private_instance?: boolean; default_theme?: string; + default_post_listing_type?: string; auth: string; } diff --git a/src/interfaces/source.ts b/src/interfaces/source.ts index 8d01aa2..8523d01 100644 --- a/src/interfaces/source.ts +++ b/src/interfaces/source.ts @@ -56,6 +56,7 @@ 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; From 6bf01146f059684cf8722e183fc49cda678a9580 Mon Sep 17 00:00:00 2001 From: Nutomic Date: Sun, 22 May 2022 19:48:08 +0000 Subject: [PATCH 77/80] Add legal information (#61) Co-authored-by: Dessalines --- src/interfaces/api/site.ts | 1 + src/interfaces/source.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/interfaces/api/site.ts b/src/interfaces/api/site.ts index 692ed0a..2726277 100644 --- a/src/interfaces/api/site.ts +++ b/src/interfaces/api/site.ts @@ -108,6 +108,7 @@ export interface EditSite { application_question?: string; private_instance?: boolean; default_theme?: string; + legal_information?: string; default_post_listing_type?: string; auth: string; } diff --git a/src/interfaces/source.ts b/src/interfaces/source.ts index 8523d01..199d8e4 100644 --- a/src/interfaces/source.ts +++ b/src/interfaces/source.ts @@ -61,6 +61,7 @@ export interface Site { last_refreshed_at: string; inbox_url: string; public_key: string; + legal_information?: string; } export interface PrivateMessage { From fc210e649461bce3155fe00dc6c2c562f557f8f2 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 23 May 2022 19:35:04 -0400 Subject: [PATCH 78/80] v0.17.0-rc.10 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b173a2e..78d9d24 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.17.0-rc.9", + "version": "0.17.0-rc.10", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js", From a03b88ccabd15104ed59251d63382182869cf0c1 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 26 May 2022 10:47:40 -0400 Subject: [PATCH 79/80] Revert "Add follow pending. (#52)" (#63) This reverts commit 57de18c17e640f39d5466ff1ad80aa43c52e0bc5. --- src/http.ts | 5 +---- src/interfaces/api/community.ts | 8 -------- src/interfaces/views.ts | 1 - 3 files changed, 1 insertion(+), 13 deletions(-) diff --git a/src/http.ts b/src/http.ts index ddb6c90..82a337c 100644 --- a/src/http.ts +++ b/src/http.ts @@ -28,7 +28,6 @@ import { DeleteCommunity, EditCommunity, FollowCommunity, - FollowCommunityResponse, GetCommunity, GetCommunityResponse, ListCommunities, @@ -263,9 +262,7 @@ export class LemmyHttp { * Follow / subscribe to a community. * `HTTP.POST /community/follow` */ - async followCommunity( - form: FollowCommunity - ): Promise { + async followCommunity(form: FollowCommunity): Promise { return this.wrapper(HttpType.Post, "/community/follow", form); } diff --git a/src/interfaces/api/community.ts b/src/interfaces/api/community.ts index e8947d2..a9c0ff3 100644 --- a/src/interfaces/api/community.ts +++ b/src/interfaces/api/community.ts @@ -1,7 +1,6 @@ import { ListingType, SortType } from "../others"; import { Site } from "../source"; import { - CommunityFollowerView, CommunityModeratorView, CommunityView, PersonViewSafe, @@ -40,13 +39,6 @@ export interface CommunityResponse { community_view: CommunityView; } -export interface FollowCommunityResponse { - /** - * An unfollow returns null. - */ - community_follower_view?: CommunityFollowerView; -} - export interface ListCommunities { type_?: ListingType; sort?: SortType; diff --git a/src/interfaces/views.ts b/src/interfaces/views.ts index 008820f..574be90 100644 --- a/src/interfaces/views.ts +++ b/src/interfaces/views.ts @@ -190,7 +190,6 @@ export interface ModStickyPostView { export interface CommunityFollowerView { community: CommunitySafe; follower: PersonSafe; - pending: boolean; } export interface CommunityBlockView { From 54a61241cee2a8e16c8ff8fbaed9ac2b1024a51b Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 26 May 2022 10:48:45 -0400 Subject: [PATCH 80/80] v0.16.4-rc.3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 78d9d24..d65f115 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lemmy-js-client", "description": "A javascript / typescript client for Lemmy", - "version": "0.17.0-rc.10", + "version": "0.16.4-rc.3", "author": "Dessalines ", "license": "AGPL-3.0", "main": "./dist/index.js",