diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 485a3a9..6db61f0 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -2,17 +2,17 @@ ## Guidelines -Contributions, wheither it is code, bug reporting, or documentation, is always welcome. Just fork, code, commit, and pull request! +Contributions, whether it is code, bug reporting, or documentation, is always welcome. Just fork, code, commit, and pull request! For coding standards, we use ESLint and Prettier to ensure everything is good. While not required in your editor of choice, using ESLint while developing is highly recommended as Prettier will prevent any commit if it fails to fix/meet with the current code standards. For naming conventions, please stick with camelCase for general purposes and PascalCase for enums and constants. ## Reporting Bugs and Issues -Bug reports are handled through the issue tracker on the [GitHub repository](https://github.com/Butterstroke/AniList-Node/issues/new/choose). +Bug reports are handled through the issue tracker on the [GitHub repository](https://github.com/AurelicButter/AniList-Node/issues/new/choose). For bugs and issues, please use the bug report template and fill out as much useful information as possible. This includes but is not limited to: error messages, screenshots of unexpected outputs, and Node.js/package versions in use. -For questions and support needs, there is a questions template avalible. +For questions and support needs, there is a questions template available. ## Developing the Package @@ -24,9 +24,9 @@ For questions and support needs, there is a questions template avalible. * There is no automated testing, you will have to verify your edits manually before making a PR. * You can create a testing file in `/tests` if your changes cannot be tested with the current files. Otherwise, please use the provided testing files 5. Ensure your code is documented with [JSDoc3](https://jsdoc.app) in the comments - * The documentation is auto-generated from these comments. So make sure they are clear and consise. - * Documentiation files in `/docs` directory do not need to be updated in your changes as they are updated before every release. -6. Commit your changes and submit a [Pull Request](https://github.com/Butterstroke/AniList-Node/pulls). + * The documentation is auto-generated from these comments. So make sure they are clear and concise. + * Documentation files in `/docs` directory do not need to be updated in your changes as they are updated before every release. +6. Commit your changes and submit a [Pull Request](https://github.com/AurelicButter/AniList-Node/pulls). ## Pull Requests @@ -39,5 +39,5 @@ Any pull requests with the following is accepted after review... Pull requests that just consist of the following will be not accepted... * Minor spelling mistakes or word changes -* Dependancy Updates +* Dependency Updates * Re-generated Documentation Files \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index c94b129..317e443 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -3,7 +3,7 @@ name: Bug report about: For users looking to report a bug or an issue title: '' labels: Bug -assignees: Butterstroke +assignees: AurelicButter --- diff --git a/.github/ISSUE_TEMPLATE/questions.md b/.github/ISSUE_TEMPLATE/questions.md index a1a0b82..0488074 100644 --- a/.github/ISSUE_TEMPLATE/questions.md +++ b/.github/ISSUE_TEMPLATE/questions.md @@ -3,7 +3,7 @@ name: Questions about: For users looking for more information about something title: '' labels: Question -assignees: Butterstroke +assignees: AurelicButter --- diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 7b3e9b9..6c075ed 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,7 +1,7 @@ ## Description diff --git a/README.md b/README.md index 6db0935..07face9 100644 --- a/README.md +++ b/README.md @@ -37,13 +37,13 @@ Anilist.media.anime(21708).then(data => { For a more in-depth guide on getting started, check out our [Getting Started](https://katsurin.com/docs/anilist-node/tutorial-Getting%20Started.html) guide on our site or on the static HTML site under the docs directory. ## Documentation -Documentation is provided in two locations. A static HTML site is avalible with the package under the docs directory. Or users can view the same site online here: [katsurin.com/docs/anilist-node](https://www.katsurin.com/docs/anilist-node/index.html). +Documentation is provided in two locations. A static HTML site is available with the package under the docs directory. Or users can view the same site online here: [katsurin.com/docs/anilist-node](https://www.katsurin.com/docs/anilist-node/index.html). ## Contributing -Please refer to the [Contributing Guide](https://github.com/Butterstroke/AniList-Node/tree/master/.github/CONTRIBUTING.md) for more information. +Please refer to the [Contributing Guide](https://github.com/AurelicButter/AniList-Node/tree/master/.github/CONTRIBUTING.md) for more information. ## License and Contact AniList-Node is licensed under the [MIT License](LICENSE). -For issues and bugs, please use the issue tracker on the [GitHub repository](https://github.com/Butterstroke/AniList-Node/issues). For other needs, either contact me by email [fkatsura@katsurin.com](mailto:fkatsura@katsurin.com) or in my [Discord server](https://discord.gg/qKfqsjW) in the #anilist-node channel. +For issues and bugs, please use the issue tracker on the [GitHub repository](https://github.com/AurelicButter/AniList-Node/issues). For other needs, either contact me by email [fkatsura@katsurin.com](mailto:fkatsura@katsurin.com) or in my [Discord server](https://discord.gg/qKfqsjW) in the #anilist-node channel. diff --git a/docs/AniList.Activity.html b/docs/AniList.Activity.html index 3205237..5af6411 100644 --- a/docs/AniList.Activity.html +++ b/docs/AniList.Activity.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

Home

Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/AniList.Lists.html b/docs/AniList.Lists.html index 2f67c0d..2749fab 100644 --- a/docs/AniList.Lists.html +++ b/docs/AniList.Lists.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/AniList.Media.html b/docs/AniList.Media.html index c0a105f..0117cf8 100644 --- a/docs/AniList.Media.html +++ b/docs/AniList.Media.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/AniList.People.html b/docs/AniList.People.html index 8e9eda6..b8b273c 100644 --- a/docs/AniList.People.html +++ b/docs/AniList.People.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/AniList.Recommendation.html b/docs/AniList.Recommendation.html index 0606c1d..c81b961 100644 --- a/docs/AniList.Recommendation.html +++ b/docs/AniList.Recommendation.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/AniList.Search.html b/docs/AniList.Search.html index 39d80dc..3a71a79 100644 --- a/docs/AniList.Search.html +++ b/docs/AniList.Search.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • @@ -965,7 +966,7 @@
    Parameters:
    - Required. The term to lookup. (ie: "Butterstroke") + Required. The term to lookup. (ie: "AurelicButter") diff --git a/docs/AniList.Thread.html b/docs/AniList.Thread.html index 9d6066b..c5686d7 100644 --- a/docs/AniList.Thread.html +++ b/docs/AniList.Thread.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/AniList.User.html b/docs/AniList.User.html index 05024b9..e5c9cf4 100644 --- a/docs/AniList.User.html +++ b/docs/AniList.User.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/AniList.html b/docs/AniList.html index ff9b38c..fbad1ae 100644 --- a/docs/AniList.html +++ b/docs/AniList.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • @@ -804,7 +805,7 @@
    Parameters:
    - Required. The term to lookup. (ie: "Honzuki no Gekokujou" or "Butterstroke") + Required. The term to lookup. (ie: "Honzuki no Gekokujou" or "AurelicButter") diff --git a/docs/activity.js.html b/docs/activity.js.html index 555b365..cfbcd10 100644 --- a/docs/activity.js.html +++ b/docs/activity.js.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/docDefinition.js.html b/docs/docDefinition.js.html index 25c27a1..9cec462 100644 --- a/docs/docDefinition.js.html +++ b/docs/docDefinition.js.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • @@ -400,7 +401,7 @@

    docDefinition.js

    * @property { String } coverImage.color - Average hex colour of the cover image * @property { String } description - The medias description * @property { Number } duration - General length of an episode - * @property { Date } endDate - Official end date of the media + * @property { FuzzyDateObj } endDate - Official end date of the media * @property { Number } episodes - Number of episodes * @property { String[] } externalLinks - A list of external links associated with the media * @property { Number } favourites - Number of users who have favourited it. @@ -439,7 +440,7 @@

    docDefinition.js

    * @property { String } siteUrl - The media's AniList page * @property { String } source - Source type that the media was adapted from * @property { PersonRelation[] } staff - An array of credited staff - * @property { Date } startDate - Official release date of the media + * @property { FuzzyDateObj } startDate - Official release date of the media * @property { Object } stats - Statistics on the media * @property { Object[] } stats.scoreDistribution - An array of how the users have rated the media. Each object contains a score and amount. * @property { Object[] } stats.statusDistribution - An array of the users status with the show. Each object contains a status and amount. @@ -484,7 +485,7 @@

    docDefinition.js

    * @property { String } coverImage.small - The small sized cover image * @property { String } coverImage.color - Average hex colour of the cover image * @property { String } description - The manga's description - * @property { Date } endDate - Official end date of the media + * @property { FuzzyDateObj } endDate - Official end date of the media * @property { String[] } externalLinks - A list of external links associated with the media * @property { Number } favourites - Number of users who have favourited it. * @property { String } format - The format of the manga. (ie: Manga, Novel, etc...) @@ -517,7 +518,7 @@

    docDefinition.js

    * @property { String } reviews.body - The review content. * @property { String } siteUrl - The media's AniList page * @property { PersonRelation[] } staff - An array of credited staff - * @property { Date } startDate - Official release date of the media + * @property { FuzzyDateObj } startDate - Official release date of the media * @property { Object } stats - Statistics on the media * @property { Object[] } stats.scoreDistribution - An array of how the users have rated the media. Each object contains a score and amount. * @property { Object[] } stats.statusDistribution - An array of the users status with the show. Each object contains a status and amount. @@ -733,14 +734,8 @@

    docDefinition.js

    * @property { Object[] } media.tags - Tags relating to the media * @property { String } media.tags.name - The name of the tag * @property { Boolean } media.tags.isMediaSpoiler - Checks if the tag is a spoiler or not. - * @property {Object} media.startDate - Starting date - * @property {Number} media.startDate.year - * @property {Number} media.startDate.month - * @property {Number} media.startDate.day - * @property {Object} media.endDate - The official end date - * @property {Number} media.endDate.year - * @property {Number} media.endDate.month - * @property {Number} media.endDate.day + * @property { FuzzyDateObj } media.startDate - Starting date + * @property { FuzzyDateObj } media.endDate - The official end date * @property { String[] } media.genres - The genres of the media * @property { Boolean } media.isFavourite - [Requires Login] Checks if the media is on the user's favourites list * @property { Boolean } media.isAdult - Checks if the media is for adult audiences (ie: Hentai) @@ -835,6 +830,14 @@

    docDefinition.js

    * @description 8 digit integer (YYYYMMDD). Unknown dates are represented by 0. */ +/** + * @typedef {Object} FuzzyDateObj + * @description An object that contains the year, month, and date of an item. + * @property { Number | null } year + * @property { Number | null } month + * @property { Number | null } day + */ + /** * @typedef {Number} CountryCode * @description ISO 3166-1 alpha-2 country code @@ -1144,31 +1147,31 @@

    docDefinition.js

    /** * @typedef AniListStats * @property {Object[]} users - User count over the past seven days - * @property {Date} users.date - Date recorded + * @property {Number} users.date - The date recorded as a timestamp * @property {Number} users.count - Count on date * @property {Number} users.change - Change from yesterday * @property {Object[]} anime - Anime count over the past seven days - * @property {Date} anime.date - Date recorded + * @property {Number} anime.date - The date recorded as a timestamp * @property {Number} anime.count - Count on date * @property {Number} anime.change - Change from yesterday * @property {Object[]} manga - Manga count over the past seven days - * @property {Date} manga.date - Date recorded + * @property {Number} manga.date - The date recorded as a timestamp * @property {Number} manga.count - Count on date * @property {Number} manga.change - Change from yesterday * @property {Object[]} characters - Character entries over the past seven days - * @property {Date} characters.date - Date recorded + * @property {Number} characters.date - The date recorded as a timestamp * @property {Number} characters.count - Count on date * @property {Number} characters.change - Change from yesterday * @property {Object[]} staff - Staff entries over the past seven days - * @property {Date} staff.date - Date recorded + * @property {Number} staff.date - The date recorded as a timestamp * @property {Number} staff.count - Count on date * @property {Number} staff.change - Change from yesterday * @property {Object[]} studios - Studio count over the past seven days - * @property {Date} studios.date - Date recorded + * @property {Number} studios.date - The date recorded as a timestamp * @property {Number} studios.count - Count on date * @property {Number} studios.change - Change from yesterday * @property {Object[]} reviews - Review count over the past seven days - * @property {Date} reviews.date - Date recorded + * @property {Number} reviews.date - The date recorded as a timestamp * @property {Number} reviews.count - Count on date * @property {Number} reviews.change - Change from yesterday */ diff --git a/docs/fetcher.js.html b/docs/fetcher.js.html index 189644c..ab63ff4 100644 --- a/docs/fetcher.js.html +++ b/docs/fetcher.js.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/global.html b/docs/global.html index ec2098e..5e95d55 100644 --- a/docs/global.html +++ b/docs/global.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • @@ -2554,7 +2555,7 @@

    ActivityFilterTypes

    @@ -2925,7 +2926,7 @@

    AniListStats

    @@ -2972,10 +2973,10 @@
    Properties
    date - Date + Number - Date recorded + The date recorded as a timestamp @@ -3029,10 +3030,10 @@
    Properties
    date - Date + Number - Date recorded + The date recorded as a timestamp @@ -3086,10 +3087,10 @@
    Properties
    date - Date + Number - Date recorded + The date recorded as a timestamp @@ -3143,10 +3144,10 @@
    Properties
    date - Date + Number - Date recorded + The date recorded as a timestamp @@ -3200,10 +3201,10 @@
    Properties
    date - Date + Number - Date recorded + The date recorded as a timestamp @@ -3257,10 +3258,10 @@
    Properties
    date - Date + Number - Date recorded + The date recorded as a timestamp @@ -3314,10 +3315,10 @@
    Properties
    date - Date + Number - Date recorded + The date recorded as a timestamp @@ -3533,7 +3534,7 @@
    Properties
    endDate - Date + FuzzyDateObj Official end date of the media @@ -3996,7 +3997,7 @@
    Properties
    startDate - Date + FuzzyDateObj Official release date of the media @@ -4758,7 +4759,7 @@

    CountryCode

    @@ -4788,7 +4789,7 @@

    FuzzyDateInt

    @@ -4811,6 +4812,93 @@
    Example
    April 2016 = 20160400 1969 = 19690000 +

    FuzzyDateObj

    + +
    +
    Description:
    +
    + +
    + +
    Source:
    +
    + +
    +
    + +
    Properties:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    year + Number + | + + null +
    month + Number + | + + null +
    day + Number + | + + null +
    + +
    + An object that contains the year, month, and date of an item. +
    + +
    Type:
    + +

    InitOptions

    @@ -4868,7 +4956,7 @@

    ListActivity

    @@ -5231,114 +5319,24 @@
    Properties
    startDate - Object + FuzzyDateObj - - Starting date -
    Properties
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeDescription
    year - Number -
    month - Number -
    day - Number -
    - + Starting date endDate - Object + FuzzyDateObj - - The official end date -
    Properties
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeDescription
    year - Number -
    month - Number -
    day - Number -
    - + The official end date @@ -5817,7 +5815,7 @@
    Properties
    endDate - Date + FuzzyDateObj Official end date of the media @@ -6212,7 +6210,7 @@
    Properties
    startDate - Date + FuzzyDateObj Official release date of the media @@ -6491,7 +6489,7 @@

    MediaFilterTypes

    @@ -7236,7 +7234,7 @@

    MediaListOptions

    @@ -7327,7 +7325,7 @@

    MediaListOptionsInput

    @@ -7490,7 +7488,7 @@

    MediaTag

    @@ -7647,7 +7645,7 @@

    MessageActivity

    @@ -7864,7 +7862,7 @@

    NotificationOption

    @@ -8049,7 +8047,7 @@

    RecommendationEntry

    @@ -8144,7 +8142,7 @@

    RecommendationList

    @@ -8401,7 +8399,7 @@

    SingleRecommendation

    @@ -9110,7 +9108,7 @@

    TextActivity

    @@ -9298,7 +9296,7 @@

    ThreadComment

    @@ -9422,7 +9420,7 @@

    ThreadEntry

    @@ -9669,7 +9667,7 @@

    UpdateEntryOptions

    @@ -9959,7 +9957,7 @@

    UpdatedEntry

    @@ -10421,7 +10419,7 @@

    UserOptions

    @@ -10676,7 +10674,7 @@

    UserOptionsInput

    diff --git a/docs/index.html b/docs/index.html index e023ef8..ee5194b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • @@ -295,7 +296,7 @@

    Lookup search (login):

    Documentation

    - Documentation is provided in two locations. A static HTML site is avalible with the package + Documentation is provided in two locations. A static HTML site is available with the package under the docs directory. Or users can view the same site online here: katsurin.com/docs/anilist-nodeDocumentation

    Contributing

    Please refer to the - Contributing Guide for more information. @@ -313,7 +314,7 @@

    License and Contact

    AniList-Node is licensed under the MIT License.

    For issues and bugs, please use the issue tracker on the - GitHub repository. For other + GitHub repository. For other needs, either contact me by email fkatsura@katsurin.com or in my Discord server in the #anilist-node channel. diff --git a/docs/index.js.html b/docs/index.js.html index 1a9c7fc..4d82bf3 100644 --- a/docs/index.js.html +++ b/docs/index.js.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • @@ -361,7 +362,7 @@

    index.js

    /** * Searches AniList based on a specific term. * @param {String} type - Required. Either anime, manga, character, staff, studio, or user. - * @param {String} term - Required. The term to lookup. (ie: "Honzuki no Gekokujou" or "Butterstroke") + * @param {String} term - Required. The term to lookup. (ie: "Honzuki no Gekokujou" or "AurelicButter") * @param {Number} page - Which page of the results to look at. Will default to 1 if not provided. * @param {Number} amount - The amount of results per page. AniList will cap this at 25 and function will default to 5 if not provided. * @return { SearchEntry } diff --git a/docs/lists.js.html b/docs/lists.js.html index 8fbcb60..17e8558 100644 --- a/docs/lists.js.html +++ b/docs/lists.js.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/media.js.html b/docs/media.js.html index 25ddab8..0cd21b3 100644 --- a/docs/media.js.html +++ b/docs/media.js.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/people.js.html b/docs/people.js.html index 0888f14..abcb16d 100644 --- a/docs/people.js.html +++ b/docs/people.js.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/recommendation.js.html b/docs/recommendation.js.html index b106071..eec80ad 100644 --- a/docs/recommendation.js.html +++ b/docs/recommendation.js.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/scripts/prettify/prettify.js b/docs/scripts/prettify/prettify.js index fd1fd7b..d22c1c9 100644 --- a/docs/scripts/prettify/prettify.js +++ b/docs/scripts/prettify/prettify.js @@ -9,10 +9,10 @@ window.PR_SHOULD_USE_CONTINUATION = !0; return (f = r[b]) ? f : "0" <= b && b <= "7" - ? parseInt(a.substring(1), 8) - : b === "u" || b === "x" - ? parseInt(a.substring(2), 16) - : a.charCodeAt(1); + ? parseInt(a.substring(1), 8) + : b === "u" || b === "x" + ? parseInt(a.substring(2), 16) + : a.charCodeAt(1); } function e(a) { if (a < 32) return (a < 16 ? "\\x0" : "\\x") + a.toString(16); @@ -90,10 +90,10 @@ window.PR_SHOULD_USE_CONTINUATION = !0; j.length >= 2 && a === "[" ? (f[c] = h(j)) : a !== "\\" && - (f[c] = j.replace(/[A-Za-z]/g, function (a) { + (f[c] = j.replace(/[A-Za-z]/g, function (a) { a = a.charCodeAt(0); return "[" + String.fromCharCode(a & -33, a | 32) + "]"; - })); + })); return f.join(""); } for (var t = 0, s = !1, l = !1, p = 0, d = a.length; p < d; ++p) { @@ -141,7 +141,7 @@ window.PR_SHOULD_USE_CONTINUATION = !0; a.currentStyle ? (l = a.currentStyle.whiteSpace) : window.getComputedStyle && - (l = document.defaultView.getComputedStyle(a, q).getPropertyValue("white-space")); + (l = document.defaultView.getComputedStyle(a, q).getPropertyValue("white-space")); var p = l && "pre" === l.substring(0, 3); m(a); return { a: h.join("").replace(/\n$/, ""), c: t }; @@ -213,15 +213,15 @@ window.PR_SHOULD_USE_CONTINUATION = !0; /^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/, q, "'\"" - ]) + ]) : a.multiLineStrings - ? m.push([ - "str", - /^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, - q, - "'\"`" - ]) - : m.push(["str", /^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/, q, "\"'"]); + ? m.push([ + "str", + /^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, + q, + "'\"`" + ]) + : m.push(["str", /^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/, q, "\"'"]); a.verbatimStrings && e.push(["str", /^@"(?:[^"]|"")*(?:"|$)/, q]); var h = a.hashComments; h && @@ -233,8 +233,8 @@ window.PR_SHOULD_USE_CONTINUATION = !0; /^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/, q, "#" - ]), - e.push(["str", /^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/, q])) + ]), + e.push(["str", /^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/, q])) : m.push(["com", /^#[^\n\r]*/, q, "#"])); a.cStyleComments && (e.push(["com", /^\/\/[^\n\r]*/, q]), e.push(["com", /^\/\*[\S\s]*?(?:\*\/|$)/, q])); a.regexLiterals && diff --git a/docs/search.js.html b/docs/search.js.html index e18ec3f..5442ba4 100644 --- a/docs/search.js.html +++ b/docs/search.js.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • @@ -337,7 +338,7 @@

    search.js

    /** * Search for a specific user - * @param {String} term - Required. The term to lookup. (ie: "Butterstroke") + * @param {String} term - Required. The term to lookup. (ie: "AurelicButter") * @param {Number} page - Which page of the results to look at. Will default to 1 if not provided. * @param {Number} amount - The amount of results per page. AniList will cap this at 25 and function will default to 5 if not provided. * @return { SearchEntry } diff --git a/docs/styles/jsdoc.css b/docs/styles/jsdoc.css index 24450a2..c65bbbb 100644 --- a/docs/styles/jsdoc.css +++ b/docs/styles/jsdoc.css @@ -768,7 +768,8 @@ html[data-search-mode] .level-hide { font-style: normal; font-weight: 400; src: url("../fonts/Montserrat/Montserrat-Regular.eot"); /* IE9 Compat Modes */ - src: url("../fonts/Montserrat/Montserrat-Regular.eot?#iefix") format("embedded-opentype"), + src: + url("../fonts/Montserrat/Montserrat-Regular.eot?#iefix") format("embedded-opentype"), /* IE6-IE8 */ url("../fonts/Montserrat/Montserrat-Regular.woff2") format("woff2"), /* Super Modern Browsers */ url("../fonts/Montserrat/Montserrat-Regular.woff") format("woff"), /* Pretty Modern Browsers */ url("../fonts/Montserrat/Montserrat-Regular.ttf") format("truetype"); /* Safari, Android, iOS */ @@ -779,7 +780,8 @@ html[data-search-mode] .level-hide { font-style: normal; font-weight: 700; src: url("../fonts/Montserrat/Montserrat-Bold.eot"); /* IE9 Compat Modes */ - src: url("../fonts/Montserrat/Montserrat-Bold.eot?#iefix") format("embedded-opentype"), + src: + url("../fonts/Montserrat/Montserrat-Bold.eot?#iefix") format("embedded-opentype"), /* IE6-IE8 */ url("../fonts/Montserrat/Montserrat-Bold.woff2") format("woff2"), /* Super Modern Browsers */ url("../fonts/Montserrat/Montserrat-Bold.woff") format("woff"), /* Pretty Modern Browsers */ url("../fonts/Montserrat/Montserrat-Bold.ttf") format("truetype"); /* Safari, Android, iOS */ @@ -788,7 +790,8 @@ html[data-search-mode] .level-hide { @font-face { font-family: "Source Sans Pro"; src: url("../fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot"); - src: url("../fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot?#iefix") format("embedded-opentype"), + src: + url("../fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot?#iefix") format("embedded-opentype"), url("../fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2") format("woff2"), url("../fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff") format("woff"), url("../fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf") format("truetype"), @@ -800,7 +803,8 @@ html[data-search-mode] .level-hide { @font-face { font-family: "Source Sans Pro"; src: url("../fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot"); - src: url("../fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot?#iefix") format("embedded-opentype"), + src: + url("../fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot?#iefix") format("embedded-opentype"), url("../fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2") format("woff2"), url("../fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff") format("woff"), url("../fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf") format("truetype"), diff --git a/docs/thread.js.html b/docs/thread.js.html index f2e1f48..1dc5fc6 100644 --- a/docs/thread.js.html +++ b/docs/thread.js.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/tutorial-Filtering.html b/docs/tutorial-Filtering.html index b8c8a96..639ec07 100644 --- a/docs/tutorial-Filtering.html +++ b/docs/tutorial-Filtering.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/tutorial-Getting Started.html b/docs/tutorial-Getting Started.html index 4caf98f..29e360d 100644 --- a/docs/tutorial-Getting Started.html +++ b/docs/tutorial-Getting Started.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/types_activitySort.js.html b/docs/types_activitySort.js.html index 706ec20..a5c270c 100644 --- a/docs/types_activitySort.js.html +++ b/docs/types_activitySort.js.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/types_activityType.js.html b/docs/types_activityType.js.html index 26be7d2..f8d6a26 100644 --- a/docs/types_activityType.js.html +++ b/docs/types_activityType.js.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/types_entryStatus.js.html b/docs/types_entryStatus.js.html index 7a48762..e7b3f33 100644 --- a/docs/types_entryStatus.js.html +++ b/docs/types_entryStatus.js.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/types_mediaFormat.js.html b/docs/types_mediaFormat.js.html index 9b9d8b2..ea43e4d 100644 --- a/docs/types_mediaFormat.js.html +++ b/docs/types_mediaFormat.js.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/types_mediaSeason.js.html b/docs/types_mediaSeason.js.html index ae0094a..36a29aa 100644 --- a/docs/types_mediaSeason.js.html +++ b/docs/types_mediaSeason.js.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/types_mediaSort.js.html b/docs/types_mediaSort.js.html index 8688e09..fbcd231 100644 --- a/docs/types_mediaSort.js.html +++ b/docs/types_mediaSort.js.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/types_mediaSource.js.html b/docs/types_mediaSource.js.html index ace0e60..bdb8340 100644 --- a/docs/types_mediaSource.js.html +++ b/docs/types_mediaSource.js.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/types_mediaStatus.js.html b/docs/types_mediaStatus.js.html index e2d7587..6ba89b1 100644 --- a/docs/types_mediaStatus.js.html +++ b/docs/types_mediaStatus.js.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/types_mediaType.js.html b/docs/types_mediaType.js.html index 08f3f26..a1bc837 100644 --- a/docs/types_mediaType.js.html +++ b/docs/types_mediaType.js.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/types_modRoles.js.html b/docs/types_modRoles.js.html index 9bf0f6d..1292ccf 100644 --- a/docs/types_modRoles.js.html +++ b/docs/types_modRoles.js.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/types_notificationType.js.html b/docs/types_notificationType.js.html index 05fd3ef..934e69e 100644 --- a/docs/types_notificationType.js.html +++ b/docs/types_notificationType.js.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/types_recommendationRating.js.html b/docs/types_recommendationRating.js.html index 3aab446..e38646b 100644 --- a/docs/types_recommendationRating.js.html +++ b/docs/types_recommendationRating.js.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/types_scoreFormat.js.html b/docs/types_scoreFormat.js.html index 7e7f190..a2b4a37 100644 --- a/docs/types_scoreFormat.js.html +++ b/docs/types_scoreFormat.js.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/types_userStaffNameLanguage.js.html b/docs/types_userStaffNameLanguage.js.html index a9ca89a..5267a66 100644 --- a/docs/types_userStaffNameLanguage.js.html +++ b/docs/types_userStaffNameLanguage.js.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/types_userTitleLanguage.js.html b/docs/types_userTitleLanguage.js.html index 224e273..a73f1b4 100644 --- a/docs/types_userTitleLanguage.js.html +++ b/docs/types_userTitleLanguage.js.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/user.js.html b/docs/user.js.html index b1cb372..5ca1e29 100644 --- a/docs/user.js.html +++ b/docs/user.js.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/utilities.js.html b/docs/utilities.js.html index b2b676b..1126f99 100644 --- a/docs/utilities.js.html +++ b/docs/utilities.js.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/docs/utils_headerBuilder.js.html b/docs/utils_headerBuilder.js.html index e252165..b306fdf 100644 --- a/docs/utils_headerBuilder.js.html +++ b/docs/utils_headerBuilder.js.html @@ -1,4 +1,4 @@ - + @@ -37,7 +37,7 @@

    Home

    Global

  • CountryCode
  • EntryStatus
  • FuzzyDateInt
  • +
  • FuzzyDateObj
  • InitOptions
  • ListActivity
  • ListEntry
  • diff --git a/lib/docDefinition.js b/lib/docDefinition.js index f11f894..b856e98 100644 --- a/lib/docDefinition.js +++ b/lib/docDefinition.js @@ -177,7 +177,7 @@ * @property { String } coverImage.color - Average hex colour of the cover image * @property { String } description - The medias description * @property { Number } duration - General length of an episode - * @property { Date } endDate - Official end date of the media + * @property { FuzzyDateObj } endDate - Official end date of the media * @property { Number } episodes - Number of episodes * @property { String[] } externalLinks - A list of external links associated with the media * @property { Number } favourites - Number of users who have favourited it. @@ -216,7 +216,7 @@ * @property { String } siteUrl - The media's AniList page * @property { String } source - Source type that the media was adapted from * @property { PersonRelation[] } staff - An array of credited staff - * @property { Date } startDate - Official release date of the media + * @property { FuzzyDateObj } startDate - Official release date of the media * @property { Object } stats - Statistics on the media * @property { Object[] } stats.scoreDistribution - An array of how the users have rated the media. Each object contains a score and amount. * @property { Object[] } stats.statusDistribution - An array of the users status with the show. Each object contains a status and amount. @@ -261,7 +261,7 @@ * @property { String } coverImage.small - The small sized cover image * @property { String } coverImage.color - Average hex colour of the cover image * @property { String } description - The manga's description - * @property { Date } endDate - Official end date of the media + * @property { FuzzyDateObj } endDate - Official end date of the media * @property { String[] } externalLinks - A list of external links associated with the media * @property { Number } favourites - Number of users who have favourited it. * @property { String } format - The format of the manga. (ie: Manga, Novel, etc...) @@ -294,7 +294,7 @@ * @property { String } reviews.body - The review content. * @property { String } siteUrl - The media's AniList page * @property { PersonRelation[] } staff - An array of credited staff - * @property { Date } startDate - Official release date of the media + * @property { FuzzyDateObj } startDate - Official release date of the media * @property { Object } stats - Statistics on the media * @property { Object[] } stats.scoreDistribution - An array of how the users have rated the media. Each object contains a score and amount. * @property { Object[] } stats.statusDistribution - An array of the users status with the show. Each object contains a status and amount. @@ -510,14 +510,8 @@ * @property { Object[] } media.tags - Tags relating to the media * @property { String } media.tags.name - The name of the tag * @property { Boolean } media.tags.isMediaSpoiler - Checks if the tag is a spoiler or not. - * @property {Object} media.startDate - Starting date - * @property {Number} media.startDate.year - * @property {Number} media.startDate.month - * @property {Number} media.startDate.day - * @property {Object} media.endDate - The official end date - * @property {Number} media.endDate.year - * @property {Number} media.endDate.month - * @property {Number} media.endDate.day + * @property { FuzzyDateObj } media.startDate - Starting date + * @property { FuzzyDateObj } media.endDate - The official end date * @property { String[] } media.genres - The genres of the media * @property { Boolean } media.isFavourite - [Requires Login] Checks if the media is on the user's favourites list * @property { Boolean } media.isAdult - Checks if the media is for adult audiences (ie: Hentai) @@ -612,6 +606,14 @@ * @description 8 digit integer (YYYYMMDD). Unknown dates are represented by 0. */ +/** + * @typedef {Object} FuzzyDateObj + * @description An object that contains the year, month, and date of an item. + * @property { Number | null } year + * @property { Number | null } month + * @property { Number | null } day + */ + /** * @typedef {Number} CountryCode * @description ISO 3166-1 alpha-2 country code @@ -921,31 +923,31 @@ /** * @typedef AniListStats * @property {Object[]} users - User count over the past seven days - * @property {Date} users.date - Date recorded + * @property {Number} users.date - The date recorded as a timestamp * @property {Number} users.count - Count on date * @property {Number} users.change - Change from yesterday * @property {Object[]} anime - Anime count over the past seven days - * @property {Date} anime.date - Date recorded + * @property {Number} anime.date - The date recorded as a timestamp * @property {Number} anime.count - Count on date * @property {Number} anime.change - Change from yesterday * @property {Object[]} manga - Manga count over the past seven days - * @property {Date} manga.date - Date recorded + * @property {Number} manga.date - The date recorded as a timestamp * @property {Number} manga.count - Count on date * @property {Number} manga.change - Change from yesterday * @property {Object[]} characters - Character entries over the past seven days - * @property {Date} characters.date - Date recorded + * @property {Number} characters.date - The date recorded as a timestamp * @property {Number} characters.count - Count on date * @property {Number} characters.change - Change from yesterday * @property {Object[]} staff - Staff entries over the past seven days - * @property {Date} staff.date - Date recorded + * @property {Number} staff.date - The date recorded as a timestamp * @property {Number} staff.count - Count on date * @property {Number} staff.change - Change from yesterday * @property {Object[]} studios - Studio count over the past seven days - * @property {Date} studios.date - Date recorded + * @property {Number} studios.date - The date recorded as a timestamp * @property {Number} studios.count - Count on date * @property {Number} studios.change - Change from yesterday * @property {Object[]} reviews - Review count over the past seven days - * @property {Date} reviews.date - Date recorded + * @property {Number} reviews.date - The date recorded as a timestamp * @property {Number} reviews.count - Count on date * @property {Number} reviews.change - Change from yesterday */ diff --git a/lib/index.js b/lib/index.js index 03b01a9..6c53ae3 100644 --- a/lib/index.js +++ b/lib/index.js @@ -138,7 +138,7 @@ class AniList { /** * Searches AniList based on a specific term. * @param {String} type - Required. Either anime, manga, character, staff, studio, or user. - * @param {String} term - Required. The term to lookup. (ie: "Honzuki no Gekokujou" or "Butterstroke") + * @param {String} term - Required. The term to lookup. (ie: "Honzuki no Gekokujou" or "AurelicButter") * @param {Number} page - Which page of the results to look at. Will default to 1 if not provided. * @param {Number} amount - The amount of results per page. AniList will cap this at 25 and function will default to 5 if not provided. * @return { SearchEntry } diff --git a/lib/search.js b/lib/search.js index f51f8fb..d678334 100644 --- a/lib/search.js +++ b/lib/search.js @@ -114,7 +114,7 @@ class Search { /** * Search for a specific user - * @param {String} term - Required. The term to lookup. (ie: "Butterstroke") + * @param {String} term - Required. The term to lookup. (ie: "AurelicButter") * @param {Number} page - Which page of the results to look at. Will default to 1 if not provided. * @param {Number} amount - The amount of results per page. AniList will cap this at 25 and function will default to 5 if not provided. * @return { SearchEntry } diff --git a/lib/types/index.d.ts b/lib/types/index.d.ts index 2907040..6344885 100644 --- a/lib/types/index.d.ts +++ b/lib/types/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for AniList-Node -// Project: https://github.com/Butterstroke/AniList-Node +// Project: https://github.com/AurelicButter/AniList-Node // Definitions by: Diego Aquino /* =================== USAGE =================== @@ -99,7 +99,7 @@ export class Anilist { /** * Searches AniList based on a specific term. * @param {String} type - Required. Either anime, manga, character, staff, studio, or user. - * @param {String} term - Required. The term to lookup. (ie: "Honzuki no Gekokujou" or "Butterstroke") + * @param {String} term - Required. The term to lookup. (ie: "Honzuki no Gekokujou" or "AurelicButter") * @param {Number} page - Which page of the results to look at. Will default to 1 if not provided. * @param {Number} amount - The amount of results per page. AniList will cap this at 25 and function will default to 5 if not provided. * @return { SearchEntry } @@ -381,7 +381,7 @@ declare class Search { /** * Search for a specific user - * @param {String} term - Required. The term to lookup. (ie: "Butterstroke") + * @param {String} term - Required. The term to lookup. (ie: "AurelicButter") * @param {Number} page - Which page of the results to look at. Will default to 1 if not provided. * @param {Number} amount - The amount of results per page. AniList will cap this at 25 and function will default to 5 if not provided. * @return { SearchEntry } @@ -509,9 +509,9 @@ export declare type NotificationType = "ACTIVITY_MESSAGE" | "ACTIVITY_REPLY" | " export declare type EntryStatus = "CURRENT" | "PLANNING" | "COMPLETED" | "DROPPED" | "PAUSED" | "REPEATING"; export declare interface FuzzyDate { - year: number, - month: number, - day: number + year: number | null, + month: number | null, + day: number | null } export declare interface CoverImage { @@ -1129,8 +1129,8 @@ export declare interface MediaFilterTypes { idMal_not?: number, idMal_in?: number[], idMal_not_in?: number[], - startDate_greater?: FuzzyDate, - startDate_lesser?: FuzzyDate, + startDate_greater?: number, + startDate_lesser?: number, startDate_like?: string, endDate_greater?: number, endDate_lesser?: number, @@ -1304,7 +1304,7 @@ export declare interface UpdatedEntry { } export declare interface DayStats { - date: Date, + date: number, count: number, change: number } diff --git a/package-lock.json b/package-lock.json index a4b6128..9ee57fe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,26 +1,35 @@ { "name": "anilist-node", - "version": "1.14.0", + "version": "1.14.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "anilist-node", - "version": "1.14.0", + "version": "1.14.1", "license": "MIT", "dependencies": { "abort-controller": "^3.0.0", "node-fetch": "^2.6.11" }, "devDependencies": { - "docdash": "^2.0.1", - "eslint": "^8.40.0", - "eslint-plugin-prettier": "^4.2.1", + "docdash": "^2.0.2", + "eslint": "^8.56.0", + "eslint-plugin-prettier": "^5.1.3", "husky": "^8.0.3", "jsdoc": "^4.0.2", "lint-staged": "^13.2.2", - "prettier": "^2.8.8", - "typescript": "^5.0.4" + "prettier": "^3.2.5", + "typescript": "^5.3.3" + } + }, + "node_modules/@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "dev": true, + "engines": { + "node": ">=0.10.0" } }, "node_modules/@babel/parser": { @@ -51,23 +60,23 @@ } }, "node_modules/@eslint-community/regexpp": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.4.0.tgz", - "integrity": "sha512-A9983Q0LnDGdLPjxyXQ00sbV+K+O+ko2Dr+CZigbHWtX9pNfxlaBkMR8X1CztI73zuEyEBXTVjx7CE+/VSwDiQ==", + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", + "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==", "dev": true, "engines": { "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } }, "node_modules/@eslint/eslintrc": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.3.tgz", - "integrity": "sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ==", + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", "dev": true, "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", - "espree": "^9.5.2", + "espree": "^9.6.0", "globals": "^13.19.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", @@ -83,22 +92,22 @@ } }, "node_modules/@eslint/js": { - "version": "8.40.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.40.0.tgz", - "integrity": "sha512-ElyB54bJIhXQYVKjDSvCkPO1iU1tSAeVQJbllWJq1XQSmmA4dgFk8CbiBGpiOPxleE48vDogxCtmMYku4HSVLA==", + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.56.0.tgz", + "integrity": "sha512-gMsVel9D7f2HLkBma9VbtzZRehRogVRfbr++f06nL2vnCGCNlzOD+/MUov/F4p8myyAHspEhVobgjpX64q5m6A==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, "node_modules/@humanwhocodes/config-array": { - "version": "0.11.8", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", - "integrity": "sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==", + "version": "0.11.14", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", + "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", "dev": true, "dependencies": { - "@humanwhocodes/object-schema": "^1.2.1", - "debug": "^4.1.1", + "@humanwhocodes/object-schema": "^2.0.2", + "debug": "^4.3.1", "minimatch": "^3.0.5" }, "engines": { @@ -119,9 +128,9 @@ } }, "node_modules/@humanwhocodes/object-schema": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", - "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.2.tgz", + "integrity": "sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==", "dev": true }, "node_modules/@jsdoc/salty": { @@ -171,6 +180,18 @@ "node": ">= 8" } }, + "node_modules/@pkgr/core": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.1.1.tgz", + "integrity": "sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts" + } + }, "node_modules/@types/linkify-it": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-3.0.2.tgz", @@ -193,6 +214,12 @@ "integrity": "sha512-eC4U9MlIcu2q0KQmXszyn5Akca/0jrQmwDRgpAMJai7qBWq4amIQhZyNau4VYGtCeALvW1/NtjzJJ567aZxfKA==", "dev": true }, + "node_modules/@ungap/structured-clone": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "dev": true + }, "node_modules/abort-controller": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", @@ -205,9 +232,9 @@ } }, "node_modules/acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", "dev": true, "bin": { "acorn": "bin/acorn" @@ -499,15 +526,15 @@ } }, "node_modules/deep-is": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", - "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", "dev": true }, "node_modules/docdash": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/docdash/-/docdash-2.0.1.tgz", - "integrity": "sha512-mkBhkeMyMwGV4YIdA7S4dIC25ENrfU/ZBfyTs/MXj/HUewW/dtx44xoho4PttCOMsqxlcghzfj8HRlam5QiSoQ==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/docdash/-/docdash-2.0.2.tgz", + "integrity": "sha512-3SDDheh9ddrwjzf6dPFe1a16M6ftstqTNjik2+1fx46l24H9dD2osT2q9y+nBEC1wWz4GIqA48JmicOLQ0R8xA==", "dev": true, "dependencies": { "@jsdoc/salty": "^0.2.1" @@ -547,27 +574,28 @@ } }, "node_modules/eslint": { - "version": "8.40.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.40.0.tgz", - "integrity": "sha512-bvR+TsP9EHL3TqNtj9sCNJVAFK3fBN8Q7g5waghxyRsPLIMwL73XSKnZFK0hk/O2ANC+iAoq6PWMQ+IfBAJIiQ==", + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.56.0.tgz", + "integrity": "sha512-Go19xM6T9puCOWntie1/P997aXxFsOi37JIHRWI514Hc6ZnaHGKY9xFhrU65RT6CcBEzZoGG1e6Nq+DT04ZtZQ==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.4.0", - "@eslint/eslintrc": "^2.0.3", - "@eslint/js": "8.40.0", - "@humanwhocodes/config-array": "^0.11.8", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.56.0", + "@humanwhocodes/config-array": "^0.11.13", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", - "ajv": "^6.10.0", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", "debug": "^4.3.2", "doctrine": "^3.0.0", "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.0", - "eslint-visitor-keys": "^3.4.1", - "espree": "^9.5.2", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", "esquery": "^1.4.2", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", @@ -575,22 +603,19 @@ "find-up": "^5.0.0", "glob-parent": "^6.0.2", "globals": "^13.19.0", - "grapheme-splitter": "^1.0.4", + "graphemer": "^1.4.0", "ignore": "^5.2.0", - "import-fresh": "^3.0.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", "is-path-inside": "^3.0.3", - "js-sdsl": "^4.1.4", "js-yaml": "^4.1.0", "json-stable-stringify-without-jsonify": "^1.0.1", "levn": "^0.4.1", "lodash.merge": "^4.6.2", "minimatch": "^3.1.2", "natural-compare": "^1.4.0", - "optionator": "^0.9.1", + "optionator": "^0.9.3", "strip-ansi": "^6.0.1", - "strip-json-comments": "^3.1.0", "text-table": "^0.2.0" }, "bin": { @@ -604,30 +629,39 @@ } }, "node_modules/eslint-plugin-prettier": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", - "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.1.3.tgz", + "integrity": "sha512-C9GCVAs4Eq7ZC/XFQHITLiHJxQngdtraXaM+LoUFoFp/lHNl2Zn8f3WQbe9HvTBBQ9YnKFB0/2Ajdqwo5D1EAw==", "dev": true, "dependencies": { - "prettier-linter-helpers": "^1.0.0" + "prettier-linter-helpers": "^1.0.0", + "synckit": "^0.8.6" }, "engines": { - "node": ">=12.0.0" + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint-plugin-prettier" }, "peerDependencies": { - "eslint": ">=7.28.0", - "prettier": ">=2.0.0" + "@types/eslint": ">=8.0.0", + "eslint": ">=8.0.0", + "eslint-config-prettier": "*", + "prettier": ">=3.0.0" }, "peerDependenciesMeta": { + "@types/eslint": { + "optional": true + }, "eslint-config-prettier": { "optional": true } } }, "node_modules/eslint-scope": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz", - "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==", + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", "dev": true, "dependencies": { "esrecurse": "^4.3.0", @@ -641,9 +675,9 @@ } }, "node_modules/eslint-visitor-keys": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", - "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -665,12 +699,12 @@ } }, "node_modules/espree": { - "version": "9.5.2", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.2.tgz", - "integrity": "sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw==", + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", "dev": true, "dependencies": { - "acorn": "^8.8.0", + "acorn": "^8.9.0", "acorn-jsx": "^5.3.2", "eslint-visitor-keys": "^3.4.1" }, @@ -775,7 +809,7 @@ "node_modules/fast-levenshtein": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", "dev": true }, "node_modules/fastq": { @@ -897,9 +931,9 @@ } }, "node_modules/globals": { - "version": "13.20.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", - "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", "dev": true, "dependencies": { "type-fest": "^0.20.2" @@ -917,10 +951,10 @@ "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", "dev": true }, - "node_modules/grapheme-splitter": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", - "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", "dev": true }, "node_modules/has-flag": { @@ -957,9 +991,9 @@ } }, "node_modules/ignore": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", - "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", + "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", "dev": true, "engines": { "node": ">= 4" @@ -1084,12 +1118,6 @@ "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", "dev": true }, - "node_modules/js-sdsl": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.1.4.tgz", - "integrity": "sha512-Y2/yD55y5jteOAmY50JbUZYwk3CP3wnLPEZnlR1w9oKhITrBEtAxwuWKebFf8hMrPMgbYwFoWK/lH2sBkErELw==", - "dev": true - }, "node_modules/js-yaml": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", @@ -1634,17 +1662,17 @@ } }, "node_modules/optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", "dev": true, "dependencies": { + "@aashutoshrathi/word-wrap": "^1.2.3", "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", "levn": "^0.4.1", "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" + "type-check": "^0.4.0" }, "engines": { "node": ">= 0.8.0" @@ -1768,15 +1796,15 @@ } }, "node_modules/prettier": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", - "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz", + "integrity": "sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==", "dev": true, "bin": { - "prettier": "bin-prettier.js" + "prettier": "bin/prettier.cjs" }, "engines": { - "node": ">=10.13.0" + "node": ">=14" }, "funding": { "url": "https://github.com/prettier/prettier?sponsor=1" @@ -1795,9 +1823,9 @@ } }, "node_modules/punycode": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", - "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "dev": true, "engines": { "node": ">=6" @@ -2097,6 +2125,22 @@ "node": ">=8" } }, + "node_modules/synckit": { + "version": "0.8.8", + "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.8.tgz", + "integrity": "sha512-HwOKAP7Wc5aRGYdKH+dw0PRRpbO841v2DENBtjnR5HFWoiNByAl7vrx3p0G/rCyYXQsrxqtX48TImFtPcIHSpQ==", + "dev": true, + "dependencies": { + "@pkgr/core": "^0.1.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts" + } + }, "node_modules/text-table": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", @@ -2127,9 +2171,9 @@ "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=" }, "node_modules/tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==", + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", "dev": true }, "node_modules/type-check": { @@ -2157,16 +2201,16 @@ } }, "node_modules/typescript": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz", - "integrity": "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==", + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", + "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", "dev": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { - "node": ">=12.20" + "node": ">=14.17" } }, "node_modules/uc.micro": { @@ -2219,15 +2263,6 @@ "node": ">= 8" } }, - "node_modules/word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", @@ -2309,6 +2344,12 @@ } }, "dependencies": { + "@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "dev": true + }, "@babel/parser": { "version": "7.21.3", "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.21.3.tgz", @@ -2325,20 +2366,20 @@ } }, "@eslint-community/regexpp": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.4.0.tgz", - "integrity": "sha512-A9983Q0LnDGdLPjxyXQ00sbV+K+O+ko2Dr+CZigbHWtX9pNfxlaBkMR8X1CztI73zuEyEBXTVjx7CE+/VSwDiQ==", + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", + "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==", "dev": true }, "@eslint/eslintrc": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.3.tgz", - "integrity": "sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ==", + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", "dev": true, "requires": { "ajv": "^6.12.4", "debug": "^4.3.2", - "espree": "^9.5.2", + "espree": "^9.6.0", "globals": "^13.19.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", @@ -2348,19 +2389,19 @@ } }, "@eslint/js": { - "version": "8.40.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.40.0.tgz", - "integrity": "sha512-ElyB54bJIhXQYVKjDSvCkPO1iU1tSAeVQJbllWJq1XQSmmA4dgFk8CbiBGpiOPxleE48vDogxCtmMYku4HSVLA==", + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.56.0.tgz", + "integrity": "sha512-gMsVel9D7f2HLkBma9VbtzZRehRogVRfbr++f06nL2vnCGCNlzOD+/MUov/F4p8myyAHspEhVobgjpX64q5m6A==", "dev": true }, "@humanwhocodes/config-array": { - "version": "0.11.8", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", - "integrity": "sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==", + "version": "0.11.14", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", + "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", "dev": true, "requires": { - "@humanwhocodes/object-schema": "^1.2.1", - "debug": "^4.1.1", + "@humanwhocodes/object-schema": "^2.0.2", + "debug": "^4.3.1", "minimatch": "^3.0.5" } }, @@ -2371,9 +2412,9 @@ "dev": true }, "@humanwhocodes/object-schema": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", - "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.2.tgz", + "integrity": "sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==", "dev": true }, "@jsdoc/salty": { @@ -2411,6 +2452,12 @@ "fastq": "^1.6.0" } }, + "@pkgr/core": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.1.1.tgz", + "integrity": "sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==", + "dev": true + }, "@types/linkify-it": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-3.0.2.tgz", @@ -2433,6 +2480,12 @@ "integrity": "sha512-eC4U9MlIcu2q0KQmXszyn5Akca/0jrQmwDRgpAMJai7qBWq4amIQhZyNau4VYGtCeALvW1/NtjzJJ567aZxfKA==", "dev": true }, + "@ungap/structured-clone": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "dev": true + }, "abort-controller": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", @@ -2442,9 +2495,9 @@ } }, "acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", "dev": true }, "acorn-jsx": { @@ -2655,15 +2708,15 @@ } }, "deep-is": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", - "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", "dev": true }, "docdash": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/docdash/-/docdash-2.0.1.tgz", - "integrity": "sha512-mkBhkeMyMwGV4YIdA7S4dIC25ENrfU/ZBfyTs/MXj/HUewW/dtx44xoho4PttCOMsqxlcghzfj8HRlam5QiSoQ==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/docdash/-/docdash-2.0.2.tgz", + "integrity": "sha512-3SDDheh9ddrwjzf6dPFe1a16M6ftstqTNjik2+1fx46l24H9dD2osT2q9y+nBEC1wWz4GIqA48JmicOLQ0R8xA==", "dev": true, "requires": { "@jsdoc/salty": "^0.2.1" @@ -2697,27 +2750,28 @@ "dev": true }, "eslint": { - "version": "8.40.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.40.0.tgz", - "integrity": "sha512-bvR+TsP9EHL3TqNtj9sCNJVAFK3fBN8Q7g5waghxyRsPLIMwL73XSKnZFK0hk/O2ANC+iAoq6PWMQ+IfBAJIiQ==", + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.56.0.tgz", + "integrity": "sha512-Go19xM6T9puCOWntie1/P997aXxFsOi37JIHRWI514Hc6ZnaHGKY9xFhrU65RT6CcBEzZoGG1e6Nq+DT04ZtZQ==", "dev": true, "requires": { "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.4.0", - "@eslint/eslintrc": "^2.0.3", - "@eslint/js": "8.40.0", - "@humanwhocodes/config-array": "^0.11.8", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.56.0", + "@humanwhocodes/config-array": "^0.11.13", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", - "ajv": "^6.10.0", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", "debug": "^4.3.2", "doctrine": "^3.0.0", "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.0", - "eslint-visitor-keys": "^3.4.1", - "espree": "^9.5.2", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", "esquery": "^1.4.2", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", @@ -2725,22 +2779,19 @@ "find-up": "^5.0.0", "glob-parent": "^6.0.2", "globals": "^13.19.0", - "grapheme-splitter": "^1.0.4", + "graphemer": "^1.4.0", "ignore": "^5.2.0", - "import-fresh": "^3.0.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", "is-path-inside": "^3.0.3", - "js-sdsl": "^4.1.4", "js-yaml": "^4.1.0", "json-stable-stringify-without-jsonify": "^1.0.1", "levn": "^0.4.1", "lodash.merge": "^4.6.2", "minimatch": "^3.1.2", "natural-compare": "^1.4.0", - "optionator": "^0.9.1", + "optionator": "^0.9.3", "strip-ansi": "^6.0.1", - "strip-json-comments": "^3.1.0", "text-table": "^0.2.0" }, "dependencies": { @@ -2753,18 +2804,19 @@ } }, "eslint-plugin-prettier": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", - "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.1.3.tgz", + "integrity": "sha512-C9GCVAs4Eq7ZC/XFQHITLiHJxQngdtraXaM+LoUFoFp/lHNl2Zn8f3WQbe9HvTBBQ9YnKFB0/2Ajdqwo5D1EAw==", "dev": true, "requires": { - "prettier-linter-helpers": "^1.0.0" + "prettier-linter-helpers": "^1.0.0", + "synckit": "^0.8.6" } }, "eslint-scope": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz", - "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==", + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", "dev": true, "requires": { "esrecurse": "^4.3.0", @@ -2772,18 +2824,18 @@ } }, "eslint-visitor-keys": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", - "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", "dev": true }, "espree": { - "version": "9.5.2", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.2.tgz", - "integrity": "sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw==", + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", "dev": true, "requires": { - "acorn": "^8.8.0", + "acorn": "^8.9.0", "acorn-jsx": "^5.3.2", "eslint-visitor-keys": "^3.4.1" } @@ -2861,7 +2913,7 @@ "fast-levenshtein": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", "dev": true }, "fastq": { @@ -2953,9 +3005,9 @@ } }, "globals": { - "version": "13.20.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", - "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", "dev": true, "requires": { "type-fest": "^0.20.2" @@ -2967,10 +3019,10 @@ "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", "dev": true }, - "grapheme-splitter": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", - "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", + "graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", "dev": true }, "has-flag": { @@ -2992,9 +3044,9 @@ "dev": true }, "ignore": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", - "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", + "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", "dev": true }, "import-fresh": { @@ -3080,12 +3132,6 @@ "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", "dev": true }, - "js-sdsl": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.1.4.tgz", - "integrity": "sha512-Y2/yD55y5jteOAmY50JbUZYwk3CP3wnLPEZnlR1w9oKhITrBEtAxwuWKebFf8hMrPMgbYwFoWK/lH2sBkErELw==", - "dev": true - }, "js-yaml": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", @@ -3489,17 +3535,17 @@ } }, "optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", "dev": true, "requires": { + "@aashutoshrathi/word-wrap": "^1.2.3", "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", "levn": "^0.4.1", "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" + "type-check": "^0.4.0" } }, "p-limit": { @@ -3575,9 +3621,9 @@ "dev": true }, "prettier": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", - "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz", + "integrity": "sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==", "dev": true }, "prettier-linter-helpers": { @@ -3590,9 +3636,9 @@ } }, "punycode": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", - "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "dev": true }, "queue-microtask": { @@ -3785,6 +3831,16 @@ "has-flag": "^4.0.0" } }, + "synckit": { + "version": "0.8.8", + "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.8.tgz", + "integrity": "sha512-HwOKAP7Wc5aRGYdKH+dw0PRRpbO841v2DENBtjnR5HFWoiNByAl7vrx3p0G/rCyYXQsrxqtX48TImFtPcIHSpQ==", + "dev": true, + "requires": { + "@pkgr/core": "^0.1.0", + "tslib": "^2.6.2" + } + }, "text-table": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", @@ -3812,9 +3868,9 @@ "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=" }, "tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==", + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", "dev": true }, "type-check": { @@ -3833,9 +3889,9 @@ "dev": true }, "typescript": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz", - "integrity": "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==", + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", + "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", "dev": true }, "uc.micro": { @@ -3882,12 +3938,6 @@ "isexe": "^2.0.0" } }, - "word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "dev": true - }, "wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", diff --git a/package.json b/package.json index e46c4b9..d4efc33 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "anilist-node", - "version": "1.14.0", + "version": "1.14.1", "description": "A lightweight Node.js wrapper for the AniList API", "main": "./lib/index.js", "types": "./lib/types/index.d.ts", @@ -31,10 +31,10 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/butterstroke/Anilist-Node" + "url": "git+https://github.com/AurelicButter/Anilist-Node" }, "bugs": { - "url": "https://github.com/butterstroke/Anilist-Node/issues" + "url": "https://github.com/AurelicButter/Anilist-Node/issues" }, "license": "MIT", "dependencies": { @@ -48,13 +48,13 @@ "node.js" ], "devDependencies": { - "docdash": "^2.0.1", - "eslint": "^8.40.0", - "eslint-plugin-prettier": "^4.2.1", + "docdash": "^2.0.2", + "eslint": "^8.56.0", + "eslint-plugin-prettier": "^5.1.3", "husky": "^8.0.3", "jsdoc": "^4.0.2", "lint-staged": "^13.2.2", - "prettier": "^2.8.8", - "typescript": "^5.0.4" + "prettier": "^3.2.5", + "typescript": "^5.3.3" } } diff --git a/tests/userTest.js b/tests/userTest.js index b3c6dac..e4bc83d 100644 --- a/tests/userTest.js +++ b/tests/userTest.js @@ -3,7 +3,7 @@ const { token } = require("../token.json"); const anilist = new AnilistNode(token); // Fetch a user's profile -anilist.user.profile("Butterstroke").then((data) => console.log(data)); +anilist.user.profile("AurelicButter").then((data) => console.log(data)); // Fetch the currently authorized user. anilist.user.getAuthorized().then((data) => console.log(data)); diff --git a/utilities/docConfig.json b/utilities/docConfig.json index 15b76d8..451326c 100644 --- a/utilities/docConfig.json +++ b/utilities/docConfig.json @@ -31,7 +31,7 @@ "typedefs": true, "menu": { "GitHub Repository": { - "href": "https://github.com/Butterstroke/AniList-Node", + "href": "https://github.com/AurelicButter/AniList-Node", "target": "_blank", "class": "menu-item", "id": "website_link"