diff --git a/docs/AniList.Activity.html b/docs/AniList.Activity.html index fdd60c3..e6b5fbf 100644 --- a/docs/AniList.Activity.html +++ b/docs/AniList.Activity.html @@ -200,7 +200,7 @@

Methods

- delete(id)(async) delete(id) → {Boolean}

@@ -210,7 +210,7 @@

@@ -449,7 +449,7 @@

Returns:

- postMessage(async) postMessage(text, recipientId, isPrivate, idnullable) → {MessageActivity} @@ -567,7 +567,7 @@

Returns:

- postText(async) postText(text, idnullable) → {TextActivity}Returns:


diff --git a/docs/AniList.Lists.html b/docs/AniList.Lists.html index aa1b37f..43d64a9 100644 --- a/docs/AniList.Lists.html +++ b/docs/AniList.Lists.html @@ -335,7 +335,7 @@
Returns:

diff --git a/docs/AniList.Media.html b/docs/AniList.Media.html index 992f05a..b02c288 100644 --- a/docs/AniList.Media.html +++ b/docs/AniList.Media.html @@ -325,7 +325,7 @@
Returns:

diff --git a/docs/AniList.People.html b/docs/AniList.People.html index c2aefb1..4d7d815 100644 --- a/docs/AniList.People.html +++ b/docs/AniList.People.html @@ -335,7 +335,7 @@
Returns:

diff --git a/docs/AniList.Recommendation.html b/docs/AniList.Recommendation.html index 3fc603d..e6eeffd 100644 --- a/docs/AniList.Recommendation.html +++ b/docs/AniList.Recommendation.html @@ -370,7 +370,7 @@
Returns:

diff --git a/docs/AniList.Search.html b/docs/AniList.Search.html index 65509b7..23cef97 100644 --- a/docs/AniList.Search.html +++ b/docs/AniList.Search.html @@ -949,7 +949,7 @@
Returns:

diff --git a/docs/AniList.Thread.html b/docs/AniList.Thread.html index 7e60e1c..4f726ad 100644 --- a/docs/AniList.Thread.html +++ b/docs/AniList.Thread.html @@ -265,7 +265,7 @@
Returns:

diff --git a/docs/AniList.User.html b/docs/AniList.User.html index 2a09604..7ef183c 100644 --- a/docs/AniList.User.html +++ b/docs/AniList.User.html @@ -208,7 +208,7 @@

Source:
@@ -276,7 +276,7 @@

Source:
@@ -308,7 +308,7 @@

Source:
@@ -374,7 +374,7 @@

Source:
@@ -437,7 +437,7 @@

Source:
@@ -492,7 +492,7 @@

Returns:

- update(options)(async) update(options) → {UserOptions}

@@ -500,7 +500,7 @@

Source:
@@ -557,7 +557,7 @@

Returns:

diff --git a/docs/AniList.html b/docs/AniList.html index 8ba9e07..542ede9 100644 --- a/docs/AniList.html +++ b/docs/AniList.html @@ -733,7 +733,7 @@
Returns:

diff --git a/docs/activity.js.html b/docs/activity.js.html index 3258fc0..f6c63e6 100644 --- a/docs/activity.js.html +++ b/docs/activity.js.html @@ -275,7 +275,7 @@

activity.js

* @returns {TextActivity} * @since 1.11.0 */ - postText(text, id) { + async postText(text, id) { if (typeof text !== "string") { throw new Error("Text is not a string type."); } @@ -283,14 +283,13 @@

activity.js

throw new Error("Provided ID is not a number type."); } - const data = this.util.send( + const data = await this.util.send( `mutation ($id: Int, $text: String) { - SaveTextActivity(id: $id, text: $text) { - ${TextActivityQuery} - } }`, + SaveTextActivity(id: $id, text: $text) { + ${TextActivityQuery} + } }`, { id: id, text: text } ); - return data.SaveTextActivity; } @@ -304,7 +303,7 @@

activity.js

* @returns {MessageActivity} * @since 1.11.0 */ - postMessage(text, recipientId, isPrivate = false, id) { + async postMessage(text, recipientId, isPrivate = false, id) { if (typeof text !== "string") { throw new Error("Text is not a string type."); } @@ -315,7 +314,7 @@

activity.js

throw new Error("Provided ID is not a number type."); } - const data = this.util.send( + const data = await this.util.send( `mutation ($id: Int, $text: String, $recipientId: Int, $private: Boolean) { SaveMessageActivity(message: $text, id: $id, recipientId: $recipientId, private: $private) { ${MessageActivityQuery} @@ -333,12 +332,12 @@

activity.js

* @returns {Boolean} Returns true if successful * @since 1.11.0 */ - delete(id) { + async delete(id) { if (typeof id !== "number") { throw new Error("ID is not a number type."); } - const data = this.util.send(`mutation ($id: Int) { DeleteActivity(id: $id) { deleted } }`, { id: id }); + const data = await this.util.send(`mutation ($id: Int) { DeleteActivity(id: $id) { deleted } }`, { id: id }); return data.DeleteActivity.deleted; } @@ -353,7 +352,7 @@

activity.js


diff --git a/docs/docDefinition.js.html b/docs/docDefinition.js.html index 0e43494..8ad77a9 100644 --- a/docs/docDefinition.js.html +++ b/docs/docDefinition.js.html @@ -695,7 +695,7 @@

docDefinition.js

* @property { String } replies.text - The content of the reply * @property { Number } replies.likeCount - The amount of likes on the reply * @property { Boolean } isLocked - True if the activity cannot receive replies - * @property { Boolean } isSubscribed - [Requires Login] True if the authorized user is subscribed. + * @property { Boolean } isSubscribed - [Requires Login] True if the authorized user is subscribed. * @property { Boolean } isLiked - [Requires Login] True if authorized user liked it * @property { UserRelation[] } likes - All users who liked the activity */ @@ -713,7 +713,7 @@

docDefinition.js

* @property { String } replies.text - The content of the reply * @property { Number } replies.likeCount - The amount of likes on the reply * @property { Boolean } isLocked - True if the activity cannot receive replies - * @property { Boolean } isSubscribed - [Requires Login] True if the authorized user is subscribed. + * @property { Boolean } isSubscribed - [Requires Login] True if the authorized user is subscribed. * @property { Boolean } isLiked - [Requires Login] True if authorized user liked it * @property { UserRelation[] } likes - All users who liked the activity */ @@ -981,7 +981,7 @@

docDefinition.js


diff --git a/docs/fetcher.js.html b/docs/fetcher.js.html index 1822ddb..662f3fc 100644 --- a/docs/fetcher.js.html +++ b/docs/fetcher.js.html @@ -306,6 +306,10 @@

fetcher.js

throw new Error("Query or variables are not given!"); } + if (query.startsWith("mutation") && this.key === null) { + throw new Error("Function requires authenciation but no authorization found."); + } + const controller = new AbortController(); const requestTimeout = setTimeout(() => { controller.abort(); @@ -326,7 +330,7 @@

fetcher.js

const response = await fetch("https://graphql.anilist.co", options) .catch((error) => { - if (error instanceof fetch.AbortError) { + if (error.name === "AbortError") { throw new Error(`ERROR: Request timed out after ${this.options.timeout}ms, is AniList up?`); } }) @@ -438,7 +442,7 @@

fetcher.js


diff --git a/docs/global.html b/docs/global.html index d74808a..745b35b 100644 --- a/docs/global.html +++ b/docs/global.html @@ -10920,7 +10920,7 @@
Type:

diff --git a/docs/index.html b/docs/index.html index 9909727..2449cb0 100644 --- a/docs/index.html +++ b/docs/index.html @@ -282,7 +282,7 @@

License and Contact


diff --git a/docs/index.js.html b/docs/index.js.html index 6e24714..500714a 100644 --- a/docs/index.js.html +++ b/docs/index.js.html @@ -360,7 +360,7 @@

index.js


diff --git a/docs/lists.js.html b/docs/lists.js.html index a7a601d..700996b 100644 --- a/docs/lists.js.html +++ b/docs/lists.js.html @@ -255,7 +255,7 @@

lists.js


diff --git a/docs/media.js.html b/docs/media.js.html index ba8bde6..75c6128 100644 --- a/docs/media.js.html +++ b/docs/media.js.html @@ -273,7 +273,7 @@

media.js


diff --git a/docs/people.js.html b/docs/people.js.html index f6d672c..5b5a3dd 100644 --- a/docs/people.js.html +++ b/docs/people.js.html @@ -250,7 +250,7 @@

people.js


diff --git a/docs/recommendation.js.html b/docs/recommendation.js.html index 9a5ed7a..a60e920 100644 --- a/docs/recommendation.js.html +++ b/docs/recommendation.js.html @@ -263,7 +263,7 @@

recommendation.js


diff --git a/docs/search.js.html b/docs/search.js.html index 231895b..b3c75bb 100644 --- a/docs/search.js.html +++ b/docs/search.js.html @@ -424,7 +424,7 @@

search.js


diff --git a/docs/thread.js.html b/docs/thread.js.html index 6e7cd32..7650bb8 100644 --- a/docs/thread.js.html +++ b/docs/thread.js.html @@ -239,7 +239,7 @@

thread.js


diff --git a/docs/tutorial-Filtering.html b/docs/tutorial-Filtering.html index e7db3bd..b203cce 100644 --- a/docs/tutorial-Filtering.html +++ b/docs/tutorial-Filtering.html @@ -284,7 +284,7 @@

How to Use


diff --git a/docs/tutorial-Getting Started.html b/docs/tutorial-Getting Started.html index b0484a5..16f9d3e 100644 --- a/docs/tutorial-Getting Started.html +++ b/docs/tutorial-Getting Started.html @@ -274,7 +274,7 @@

How to Use


diff --git a/docs/types_activitySort.js.html b/docs/types_activitySort.js.html index 9de4899..18009aa 100644 --- a/docs/types_activitySort.js.html +++ b/docs/types_activitySort.js.html @@ -208,7 +208,7 @@

types/activitySort.js


diff --git a/docs/types_activityType.js.html b/docs/types_activityType.js.html index 8b257da..d31402d 100644 --- a/docs/types_activityType.js.html +++ b/docs/types_activityType.js.html @@ -211,7 +211,7 @@

types/activityType.js


diff --git a/docs/types_mediaFormat.js.html b/docs/types_mediaFormat.js.html index 34e2026..a518c3d 100644 --- a/docs/types_mediaFormat.js.html +++ b/docs/types_mediaFormat.js.html @@ -216,7 +216,7 @@

types/mediaFormat.js


diff --git a/docs/types_mediaSeason.js.html b/docs/types_mediaSeason.js.html index ce2624d..e56ba17 100644 --- a/docs/types_mediaSeason.js.html +++ b/docs/types_mediaSeason.js.html @@ -210,7 +210,7 @@

types/mediaSeason.js


diff --git a/docs/types_mediaSort.js.html b/docs/types_mediaSort.js.html index 23bc9e4..bcc5310 100644 --- a/docs/types_mediaSort.js.html +++ b/docs/types_mediaSort.js.html @@ -242,7 +242,7 @@

types/mediaSort.js


diff --git a/docs/types_mediaSource.js.html b/docs/types_mediaSource.js.html index f79340a..2abe05b 100644 --- a/docs/types_mediaSource.js.html +++ b/docs/types_mediaSource.js.html @@ -216,7 +216,7 @@

types/mediaSource.js


diff --git a/docs/types_mediaStatus.js.html b/docs/types_mediaStatus.js.html index f98da80..2e1b9ca 100644 --- a/docs/types_mediaStatus.js.html +++ b/docs/types_mediaStatus.js.html @@ -210,7 +210,7 @@

types/mediaStatus.js


diff --git a/docs/types_mediaType.js.html b/docs/types_mediaType.js.html index 4da394f..5a7cc6c 100644 --- a/docs/types_mediaType.js.html +++ b/docs/types_mediaType.js.html @@ -208,7 +208,7 @@

types/mediaType.js


diff --git a/docs/types_modRoles.js.html b/docs/types_modRoles.js.html index 179badf..b41654a 100644 --- a/docs/types_modRoles.js.html +++ b/docs/types_modRoles.js.html @@ -272,7 +272,7 @@

types/modRoles.js


diff --git a/docs/types_notificationType.js.html b/docs/types_notificationType.js.html index 29d30df..9626bfd 100644 --- a/docs/types_notificationType.js.html +++ b/docs/types_notificationType.js.html @@ -292,7 +292,7 @@

types/notificationType.js


diff --git a/docs/types_recommendationRating.js.html b/docs/types_recommendationRating.js.html index 5fc3324..c96d55e 100644 --- a/docs/types_recommendationRating.js.html +++ b/docs/types_recommendationRating.js.html @@ -209,7 +209,7 @@

types/recommendationRating.js


diff --git a/docs/types_scoreFormat.js.html b/docs/types_scoreFormat.js.html index a0a55fb..d847cb6 100644 --- a/docs/types_scoreFormat.js.html +++ b/docs/types_scoreFormat.js.html @@ -212,7 +212,7 @@

types/scoreFormat.js


diff --git a/docs/types_userStaffNameLanguage.js.html b/docs/types_userStaffNameLanguage.js.html index e37047c..55d0434 100644 --- a/docs/types_userStaffNameLanguage.js.html +++ b/docs/types_userStaffNameLanguage.js.html @@ -222,7 +222,7 @@

types/userStaffNameLanguage.js


diff --git a/docs/types_userTitleLanguage.js.html b/docs/types_userTitleLanguage.js.html index 3bf6ff6..3ed2fda 100644 --- a/docs/types_userTitleLanguage.js.html +++ b/docs/types_userTitleLanguage.js.html @@ -237,7 +237,7 @@

types/userTitleLanguage.js


diff --git a/docs/user.js.html b/docs/user.js.html index 42bbd66..23ca111 100644 --- a/docs/user.js.html +++ b/docs/user.js.html @@ -187,9 +187,14 @@

user.js

-
const { UserProfileQuery, UserStatsQuery, UserUpdateQuery } = require("./consts");
+					
const {
+	UserProfileQuery,
+	UserStatsQuery,
+	UserUpdateQuery,
+	ListActivityQuery,
+	TextActivityQuery,
+	MessageActivityQuery
+} = require("./consts");
 
 /**
  * Access AniList's user data.
@@ -258,10 +263,9 @@ 

user.js

`query ($page: Int, $perPage: Int, $user: Int) { Page (page: $page, perPage: $perPage) { pageInfo { total currentPage lastPage hasNextPage perPage } activities(userId: $user, sort:ID_DESC) { - ... on ListActivity { id status type progress media { id title { romaji english native userPreferred } type } - createdAt likeCount replies { id text likeCount } } - ... on TextActivity { id userId type text createdAt likeCount replies { id text likeCount } } - ... on MessageActivity { id recipientId type message createdAt likeCount replies { id text likeCount } } + ... on ListActivity { ${ListActivityQuery} } + ... on TextActivity { ${TextActivityQuery} } + ... on MessageActivity { ${MessageActivityQuery} } } } }`, { user: user, page: 1, perPage: 25 } ); @@ -288,12 +292,12 @@

user.js

* * @since 1.10.0 */ - update(options) { + async update(options) { if (!options || Object.keys(options).length === 0) { throw new Error("Options were not provided for updating user!"); } - const data = this.util.send(UserUpdateQuery, options); + const data = await this.util.send(UserUpdateQuery, options); return data.updateUser; } } @@ -307,7 +311,7 @@

user.js


diff --git a/docs/utilities.js.html b/docs/utilities.js.html index ba8e0dc..c0a6c24 100644 --- a/docs/utilities.js.html +++ b/docs/utilities.js.html @@ -283,7 +283,7 @@

utilities.js


diff --git a/package-lock.json b/package-lock.json index 0e4474a..f008ed7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "anilist-node", - "version": "1.11.1", + "version": "1.11.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "anilist-node", - "version": "1.11.1", + "version": "1.11.2", "license": "MIT", "dependencies": { "abort-controller": "^3.0.0", @@ -14,13 +14,13 @@ }, "devDependencies": { "docdash": "^1.2.0", - "eslint": "^8.9.0", + "eslint": "^8.11.0", "eslint-plugin-prettier": "^4.0.0", "husky": "^7.0.4", "jsdoc": "^3.6.10", - "lint-staged": "^12.3.4", - "prettier": "^2.5.1", - "typescript": "^4.5.5" + "lint-staged": "^12.3.6", + "prettier": "^2.6.0", + "typescript": "^4.6.2" } }, "node_modules/@babel/parser": { @@ -36,16 +36,16 @@ } }, "node_modules/@eslint/eslintrc": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.1.0.tgz", - "integrity": "sha512-C1DfL7XX4nPqGd6jcP01W9pVM1HYCuUkFk1432D7F0v3JSlUIeOYn9oCoi3eoLZ+iwBSb29BMFxxny0YrrEZqg==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.2.1.tgz", + "integrity": "sha512-bxvbYnBPN1Gibwyp6NrpnFzA3YtRL3BBAyEAFVIpNTm2Rn4Vy87GA5M4aSn3InRrlsbX5N0GW7XIx+U4SAEKdQ==", "dev": true, "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", "espree": "^9.3.1", "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", @@ -55,15 +55,6 @@ "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, - "node_modules/@eslint/eslintrc/node_modules/ignore": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", - "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", - "dev": true, - "engines": { - "node": ">= 4" - } - }, "node_modules/@humanwhocodes/config-array": { "version": "0.9.3", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.9.3.tgz", @@ -457,12 +448,12 @@ } }, "node_modules/eslint": { - "version": "8.9.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.9.0.tgz", - "integrity": "sha512-PB09IGwv4F4b0/atrbcMFboF/giawbBLVC7fyDamk5Wtey4Jh2K+rYaBhCAbUyEI4QzB1ly09Uglc9iCtFaG2Q==", + "version": "8.11.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.11.0.tgz", + "integrity": "sha512-/KRpd9mIRg2raGxHRGwW9ZywYNAClZrHjdueHcrVDuO3a6bj83eoTirCCk0M0yPwOjWYKHwRVRid+xK4F/GHgA==", "dev": true, "dependencies": { - "@eslint/eslintrc": "^1.1.0", + "@eslint/eslintrc": "^1.2.1", "@humanwhocodes/config-array": "^0.9.2", "ajv": "^6.10.0", "chalk": "^4.0.0", @@ -801,9 +792,9 @@ } }, "node_modules/globals": { - "version": "13.12.1", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.12.1.tgz", - "integrity": "sha512-317dFlgY2pdJZ9rspXDks7073GpDmXdfbM3vYYp0HAMKGDh1FfWPleI2ljVNLQX5M5lXcAslTcPTrOrMEFOjyw==", + "version": "13.13.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.13.0.tgz", + "integrity": "sha512-EQ7Q18AJlPwp3vUDL4mKA0KXrXyNIQyWon6T6XQiBQF0XHvRsiCSrWmmeATpUzdJN2HhWZU6Pdl0a9zdep5p6A==", "dev": true, "dependencies": { "type-fest": "^0.20.2" @@ -1076,9 +1067,9 @@ } }, "node_modules/lint-staged": { - "version": "12.3.4", - "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-12.3.4.tgz", - "integrity": "sha512-yv/iK4WwZ7/v0GtVkNb3R82pdL9M+ScpIbJLJNyCXkJ1FGaXvRCOg/SeL59SZtPpqZhE7BD6kPKFLIDUhDx2/w==", + "version": "12.3.6", + "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-12.3.6.tgz", + "integrity": "sha512-tVNyl/HsAnplKh4oaoRNzyZLm0PE/6VaBUXvd/gA9zhYCC/+ivZwiwpoT6jOxcLzuIOjP19wW+mfOi7/Bw4c1A==", "dev": true, "dependencies": { "cli-truncate": "^3.1.0", @@ -1091,6 +1082,7 @@ "micromatch": "^4.0.4", "normalize-path": "^3.0.0", "object-inspect": "^1.12.0", + "pidtree": "^0.5.0", "string-argv": "^0.3.1", "supports-color": "^9.2.1", "yaml": "^1.10.2" @@ -1548,6 +1540,18 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, + "node_modules/pidtree": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-0.5.0.tgz", + "integrity": "sha512-9nxspIM7OpZuhBxPg73Zvyq7j1QMPMPsGKTqRc2XOaFQauDvoNz9fM1Wdkjmeo7l9GXOZiRs97sPkuayl39wjA==", + "dev": true, + "bin": { + "pidtree": "bin/pidtree.js" + }, + "engines": { + "node": ">=0.10" + } + }, "node_modules/prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", @@ -1558,15 +1562,18 @@ } }, "node_modules/prettier": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.5.1.tgz", - "integrity": "sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg==", + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.6.0.tgz", + "integrity": "sha512-m2FgJibYrBGGgQXNzfd0PuDGShJgRavjUoRCw1mZERIWVSXF0iLzLm+aOqTAbLnC3n6JzUhAA8uZnFVghHJ86A==", "dev": true, "bin": { "prettier": "bin-prettier.js" }, "engines": { "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" } }, "node_modules/prettier-linter-helpers": { @@ -1882,9 +1889,9 @@ } }, "node_modules/typescript": { - "version": "4.5.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.5.tgz", - "integrity": "sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA==", + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.2.tgz", + "integrity": "sha512-HM/hFigTBHZhLXshn9sN37H085+hQGeJHJ/X7LpBWLID/fbc2acUMfU+lGD98X81sKP+pFa9f0DZmCwB9GnbAg==", "dev": true, "bin": { "tsc": "bin/tsc", @@ -2035,28 +2042,20 @@ "dev": true }, "@eslint/eslintrc": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.1.0.tgz", - "integrity": "sha512-C1DfL7XX4nPqGd6jcP01W9pVM1HYCuUkFk1432D7F0v3JSlUIeOYn9oCoi3eoLZ+iwBSb29BMFxxny0YrrEZqg==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.2.1.tgz", + "integrity": "sha512-bxvbYnBPN1Gibwyp6NrpnFzA3YtRL3BBAyEAFVIpNTm2Rn4Vy87GA5M4aSn3InRrlsbX5N0GW7XIx+U4SAEKdQ==", "dev": true, "requires": { "ajv": "^6.12.4", "debug": "^4.3.2", "espree": "^9.3.1", "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", "strip-json-comments": "^3.1.1" - }, - "dependencies": { - "ignore": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", - "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", - "dev": true - } } }, "@humanwhocodes/config-array": { @@ -2359,12 +2358,12 @@ "dev": true }, "eslint": { - "version": "8.9.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.9.0.tgz", - "integrity": "sha512-PB09IGwv4F4b0/atrbcMFboF/giawbBLVC7fyDamk5Wtey4Jh2K+rYaBhCAbUyEI4QzB1ly09Uglc9iCtFaG2Q==", + "version": "8.11.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.11.0.tgz", + "integrity": "sha512-/KRpd9mIRg2raGxHRGwW9ZywYNAClZrHjdueHcrVDuO3a6bj83eoTirCCk0M0yPwOjWYKHwRVRid+xK4F/GHgA==", "dev": true, "requires": { - "@eslint/eslintrc": "^1.1.0", + "@eslint/eslintrc": "^1.2.1", "@humanwhocodes/config-array": "^0.9.2", "ajv": "^6.10.0", "chalk": "^4.0.0", @@ -2614,9 +2613,9 @@ } }, "globals": { - "version": "13.12.1", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.12.1.tgz", - "integrity": "sha512-317dFlgY2pdJZ9rspXDks7073GpDmXdfbM3vYYp0HAMKGDh1FfWPleI2ljVNLQX5M5lXcAslTcPTrOrMEFOjyw==", + "version": "13.13.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.13.0.tgz", + "integrity": "sha512-EQ7Q18AJlPwp3vUDL4mKA0KXrXyNIQyWon6T6XQiBQF0XHvRsiCSrWmmeATpUzdJN2HhWZU6Pdl0a9zdep5p6A==", "dev": true, "requires": { "type-fest": "^0.20.2" @@ -2816,9 +2815,9 @@ } }, "lint-staged": { - "version": "12.3.4", - "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-12.3.4.tgz", - "integrity": "sha512-yv/iK4WwZ7/v0GtVkNb3R82pdL9M+ScpIbJLJNyCXkJ1FGaXvRCOg/SeL59SZtPpqZhE7BD6kPKFLIDUhDx2/w==", + "version": "12.3.6", + "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-12.3.6.tgz", + "integrity": "sha512-tVNyl/HsAnplKh4oaoRNzyZLm0PE/6VaBUXvd/gA9zhYCC/+ivZwiwpoT6jOxcLzuIOjP19wW+mfOi7/Bw4c1A==", "dev": true, "requires": { "cli-truncate": "^3.1.0", @@ -2831,6 +2830,7 @@ "micromatch": "^4.0.4", "normalize-path": "^3.0.0", "object-inspect": "^1.12.0", + "pidtree": "^0.5.0", "string-argv": "^0.3.1", "supports-color": "^9.2.1", "yaml": "^1.10.2" @@ -3155,6 +3155,12 @@ "integrity": "sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==", "dev": true }, + "pidtree": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-0.5.0.tgz", + "integrity": "sha512-9nxspIM7OpZuhBxPg73Zvyq7j1QMPMPsGKTqRc2XOaFQauDvoNz9fM1Wdkjmeo7l9GXOZiRs97sPkuayl39wjA==", + "dev": true + }, "prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", @@ -3162,9 +3168,9 @@ "dev": true }, "prettier": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.5.1.tgz", - "integrity": "sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg==", + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.6.0.tgz", + "integrity": "sha512-m2FgJibYrBGGgQXNzfd0PuDGShJgRavjUoRCw1mZERIWVSXF0iLzLm+aOqTAbLnC3n6JzUhAA8uZnFVghHJ86A==", "dev": true }, "prettier-linter-helpers": { @@ -3394,9 +3400,9 @@ "dev": true }, "typescript": { - "version": "4.5.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.5.tgz", - "integrity": "sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA==", + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.2.tgz", + "integrity": "sha512-HM/hFigTBHZhLXshn9sN37H085+hQGeJHJ/X7LpBWLID/fbc2acUMfU+lGD98X81sKP+pFa9f0DZmCwB9GnbAg==", "dev": true }, "uc.micro": { diff --git a/package.json b/package.json index 1f680f6..6d51d82 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "anilist-node", - "version": "1.11.1", + "version": "1.11.2", "description": "A lightweight Node.js wrapper for the AniList API", "main": "./lib/index.js", "types": "./lib/types/index.d.ts", @@ -49,12 +49,12 @@ ], "devDependencies": { "docdash": "^1.2.0", - "eslint": "^8.9.0", + "eslint": "^8.11.0", "eslint-plugin-prettier": "^4.0.0", "husky": "^7.0.4", "jsdoc": "^3.6.10", - "lint-staged": "^12.3.4", - "prettier": "^2.5.1", - "typescript": "^4.5.5" + "lint-staged": "^12.3.6", + "prettier": "^2.6.0", + "typescript": "^4.6.2" } }