├── .editorconfig ├── .eslintrc.json ├── .github ├── ISSUE_TEMPLATE │ └── can-t-get-it-to-work.md └── workflows │ └── ci.yml ├── .gitignore ├── .prettierignore ├── .prettierrc.json ├── LICENSE ├── README.md ├── index.d.ts ├── index.js ├── lib ├── eris │ ├── errors │ │ ├── DiscordHTTPError.js │ │ └── DiscordRESTError.js │ ├── rest │ │ └── RequestHandler.js │ └── util │ │ └── SequentialBucket.js └── oauth.js ├── package-lock.json └── package.json /.editorconfig: -------------------------------------------------------------------------------- 1 | # http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | end_of_line = lf 7 | indent_size = 4 8 | indent_style = tab 9 | insert_final_newline = true 10 | max_line_length = 80 11 | trim_trailing_whitespace = true 12 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "es6": true, 4 | "node": true 5 | }, 6 | "parserOptions": { 7 | "ecmaVersion": 2020 8 | }, 9 | "extends": "eslint:recommended", 10 | "rules": { 11 | "semi": "error", 12 | "no-var": "error", 13 | "prefer-const": "error", 14 | "keyword-spacing": "error", 15 | "eqeqeq": "error", 16 | "eol-last": "error", 17 | "brace-style": ["error", "stroustrup"], 18 | "comma-dangle": ["error", "always-multiline"], 19 | "object-curly-spacing": ["error", "always"], 20 | "quotes": ["error", "double", { 21 | "allowTemplateLiterals": true 22 | }], 23 | "indent": ["error", "tab", { 24 | "SwitchCase": 1, 25 | "flatTernaryExpressions": true 26 | }], 27 | "object-curly-newline": ["error", { 28 | "ExportDeclaration": "never", 29 | "ImportDeclaration": "always" 30 | }] 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/can-t-get-it-to-work.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Can't get it to work 3 | about: Use this template if you are having issues with the library (all issues that 4 | don't follow this template will be ignored and closed). 5 | title: '' 6 | labels: '' 7 | assignees: reboxer 8 | 9 | --- 10 | 11 | **Describe the error** 12 | A clear and concise description of what the error is 13 | 14 | **NodeJS version** 15 | *Your NodeJS version* 16 | 17 | **Library version** 18 | *The version of the library you are using* 19 | 20 | **Error stack and exact error message** 21 | *The error stack thrown by the library and the exact error message sent by discord (see [debugging](https://github.com/reboxer/discord-oauth2#debugging)) 22 | 23 | **Relevant code** 24 | ```js 25 | // Put here the code you are using that is not working 26 | ``` 27 | -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- 1 | name: Run ESLint 2 | 3 | on: 4 | push: 5 | branches: [ master ] 6 | pull_request: 7 | branches: [ master ] 8 | 9 | jobs: 10 | lint: 11 | name: Run ESlint 12 | 13 | runs-on: ubuntu-latest 14 | 15 | steps: 16 | - uses: actions/checkout@v2 17 | - run: npm ci 18 | - run: npm run lint 19 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | lib/eris 3 | -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "useTabs": true, 3 | "trailingComma": "all", 4 | "tabWidth": 4, 5 | "semi": true, 6 | "singleQuote": false 7 | } 8 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 reboxer 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # discord-oauth2 [![NPM version](https://img.shields.io/npm/v/discord-oauth2.svg?style=flat-square)](https://www.npmjs.com/package/discord-oauth2) 2 | 3 | A really simple to use module to use discord's OAuth2 API. 4 | 5 | Please check out discord's OAuth2 documentation: https://discord.com/developers/docs/topics/oauth2 6 | 7 | ### Installing 8 | 9 | ```bash 10 | npm install discord-oauth2 11 | ``` 12 | 13 | # Class constructor 14 | 15 | One parameter is passed to the class constructor: 16 | 17 | ### `Options` 18 | 19 | Since the module uses a modified version of [Eris](https://github.com/abalabahaha/eris)'s request handler, it takes the same options, all of them default to the default Eris REST options if no options are passed. 20 | 21 | Request handler options: 22 | ``` 23 | agent: A HTTPS Agent used to proxy requests 24 | 25 | requestTimeout: A number of milliseconds before requests are considered timed out. 26 | 27 | latencyThreshold: The average request latency at which the RequestHandler will start emitting latency errors. 28 | 29 | ratelimiterOffset: A number of milliseconds to offset the ratelimit timing calculations by. 30 | ``` 31 | 32 | Others, you can pass these options to the class constructor so you don't have to pass them each time you call a function: 33 | ``` 34 | clientId: Your application's client id. 35 | 36 | clientSecret: Your application's client secret. 37 | 38 | redirectUri: Your URL redirect uri. 39 | 40 | credentials: Base64 encoding of the UTF-8 encoded credentials string of your application, you can pass this in the constructor to not pass it every time you want to use the revokeToken() method. 41 | ``` 42 | 43 | # Events 44 | 45 | In the Eris Library, client extends the `events` modules and the client is passed to the RequestHandler so it's able to emit events, this modified RequestHandler extends `events` so it can emit the same events. 46 | 47 | There are only two events, `debug` and `warn`. 48 | 49 | # Methods 50 | 51 | ### `tokenRequest(object)` 52 | 53 | Takes an object with the following properties: 54 | 55 | `clientId`: Your application's client id. Can be omitted if provided on the client constructor. 56 | 57 | `clientSecret`: Your application's client secret. Can be omitted if provided on the client constructor. 58 | 59 | `scope`: The scopes requested in your authorization url, can be either a space-delimited string of scopes, or an array of strings containing scopes. 60 | 61 | `redirectUri`: Your URL redirect uri. Can be omitted if provided on the client constructor. 62 | 63 | `grantType`: The grant type to set for the request, either authorization_code or refresh_token. 64 | 65 | `code`: The code from the querystring (grantType `authorization_code` only). 66 | 67 | `refreshToken`: The user's refresh token (grantType `refresh_token` only). 68 | 69 | 70 | Returns a promise which resolves in an object with the access token. 71 | 72 | Please refer to discord's OAuth2 [documentation](https://discord.com/developers/docs/topics/oauth2#authorization-code-grant-access-token-exchange-example) for the parameters needed. 73 | 74 | ```js 75 | const DiscordOauth2 = require("discord-oauth2"); 76 | const oauth = new DiscordOauth2(); 77 | 78 | oauth.tokenRequest({ 79 | clientId: "332269999912132097", 80 | clientSecret: "937it3ow87i4ery69876wqire", 81 | 82 | code: "query code", 83 | scope: "identify guilds", 84 | grantType: "authorization_code", 85 | 86 | redirectUri: "http://localhost/callback", 87 | }).then(console.log) 88 | ``` 89 | 90 | Using class constructor options, array of scopes and grantType refresh_token: 91 | 92 | ```js 93 | const DiscordOauth2 = require("discord-oauth2"); 94 | const oauth = new DiscordOauth2({ 95 | clientId: "332269999912132097", 96 | clientSecret: "937it3ow87i4ery69876wqire", 97 | redirectUri: "http://localhost/callback", 98 | }); 99 | 100 | oauth.tokenRequest({ 101 | // clientId, clientSecret and redirectUri are omitted, as they were already set on the class constructor 102 | refreshToken: "D43f5y0ahjqew82jZ4NViEr2YafMKhue", 103 | grantType: "refresh_token", 104 | }); 105 | 106 | // On successful request both requesting and refreshing an access token return the same object 107 | /* 108 | { 109 | "access_token": "6qrZcUqja7812RVdnEKjpzOL4CvHBFG", 110 | "token_type": "Bearer", 111 | "expires_in": 604800, 112 | "refresh_token": "D43f5y0ahjqew82jZ4NViEr2YafMKhue", 113 | "scope": "identify guilds" 114 | } 115 | */ 116 | ``` 117 | 118 | ### `revokeToken(access_token, credentials)` 119 | 120 | `access_token`: The access token to revoke. 121 | 122 | `credentials`: The base64 encoded credentials string of your application. 123 | 124 | Returns a promise which resolves in an empty object if successful. 125 | 126 | ```js 127 | const DiscordOauth2 = require("discord-oauth2"); 128 | const oauth = new DiscordOauth2(); 129 | 130 | const clientID = "332269999912132097"; 131 | const client_secret = "937it3ow87i4ery69876wqire"; 132 | const access_token = "6qrZcUqja7812RVdnEKjpzOL4CvHBFG"; 133 | 134 | // You must encode your client ID along with your client secret including the colon in between 135 | const credentials = Buffer.from(`${clientID}:${client_secret}`).toString("base64"); // MzMyMjY5OTk5OTEyMTMyMDk3OjkzN2l0M293ODdpNGVyeTY5ODc2d3FpcmU= 136 | 137 | oauth.revokeToken(access_token, credentials).then(console.log); // {} 138 | ``` 139 | 140 | ### `getUser(access_token)` 141 | 142 | `access_token`: The user's access token. 143 | 144 | Requires the `identify` scope. Include the `email` scope if you want to get the user's email. 145 | 146 | Returns the [user](https://discord.com/developers/docs/resources/user#user-object) object of the requester's account. 147 | 148 | ```js 149 | const DiscordOauth2 = require("discord-oauth2"); 150 | const oauth = new DiscordOauth2(); 151 | 152 | const access_token = "6qrZcUqja7812RVdnEKjpzOL4CvHBFG"; 153 | 154 | oauth.getUser(access_token).then(console.log); 155 | /* 156 | { 157 | username: '1337 Krew', 158 | locale: 'en-US', 159 | mfa_enabled: true, 160 | flags: 128, 161 | avatar: '8342729096ea3675442027381ff50dfe', 162 | discriminator: '4421', 163 | id: '80351110224678912' 164 | } 165 | */ 166 | ``` 167 | 168 | ### `getUserGuilds(access_token, object)` 169 | 170 | `access_token`: The user's access token. 171 | 172 | Options: 173 | 174 | `before`: Get guilds before this guild ID. 175 | 176 | `after`: Get guilds after this guild ID. 177 | 178 | `limit`: Max number of guilds to return (1-200). 179 | 180 | `withCounts`: Include approximate member and presence counts in response. 181 | 182 | Requires the `guilds` scope. 183 | 184 | Returns a list of partial [guild](https://discord.com/developers/docs/resources/guild#guild-object) objects the current user is a member of. 185 | 186 | ```js 187 | const DiscordOauth2 = require("discord-oauth2"); 188 | const oauth = new DiscordOauth2(); 189 | 190 | const access_token = "6qrZcUqja7812RVdnEKjpzOL4CvHBFG"; 191 | 192 | oauth.getUserGuilds(access_token).then(console.log); 193 | /* 194 | { 195 | "id": "80351110224678912", 196 | "name": "1337 Krew", 197 | "icon": "8342729096ea3675442027381ff50dfe", 198 | "owner": true, 199 | "permissions": 36953089, 200 | "permissions_new": "36953089" 201 | } 202 | */ 203 | ``` 204 | 205 | ### `getUserConnections(access_token)` 206 | 207 | `access_token`: The user's access token. 208 | 209 | Requires the `connections` OAuth2 scope. 210 | 211 | Returns a list of [connection](https://discord.com/developers/docs/resources/user#connection-object) objects. 212 | 213 | ```js 214 | const DiscordOauth2 = require("discord-oauth2"); 215 | const oauth = new DiscordOauth2(); 216 | 217 | const access_token = "6qrZcUqja7812RVdnEKjpzOL4CvHBFG"; 218 | 219 | oauth.getUserConnections(access_token).then(console.log); 220 | /* 221 | [ { verified: true, 222 | name: 'epicusername', 223 | show_activity: true, 224 | friend_sync: false, 225 | type: 'twitch', 226 | id: '31244565', 227 | visibility: 1 } ] 228 | */ 229 | ``` 230 | 231 | ### `addMember(object)` 232 | 233 | Force join a user to a guild. 234 | 235 | Takes an object with the following properties (required): 236 | 237 | `accessToken`: The user access token. 238 | 239 | `botToken`: The token of the bot used to authenticate. 240 | 241 | `guildId`: The ID of the guild to join. 242 | 243 | `userId`: The ID of the user to be added to the guild. 244 | 245 | Optional: 246 | 247 | `nickname`: Value to set users nickname to. 248 | 249 | `roles`: Array of role ids the member is assigned. 250 | 251 | `mute`: Whether the user is muted in voice channels. 252 | 253 | `deaf`: Whether the user is deafened in voice channels. 254 | 255 | Returns a member object if the user wasn't part of the guild, else, returns an empty string (length 0). 256 | 257 | ```js 258 | const DiscordOauth2 = require("discord-oauth2"); 259 | const oauth = new DiscordOauth2(); 260 | 261 | oauth.addMember({ 262 | accessToken: "2qRZcUqUa9816RVnnEKRpzOL2CvHBgF", 263 | botToken: "NDgyMjM4ODQzNDI1MjU5NTIz.XK93JQ.bnLsc71_DGum-Qnymb4T5F6kGY8", 264 | guildId: "216488324594438692", 265 | userId: "80351110224678912", 266 | 267 | nickname: "george michael", 268 | roles: ["624615851966070786"], 269 | mute: true, 270 | deaf: true, 271 | }).then(console.log); // Member object or empty string 272 | 273 | /* 274 | { 275 | nick: 'george michael', 276 | user: { 277 | username: 'some username', 278 | discriminator: '0001', 279 | id: '421610529323943943', 280 | avatar: null 281 | }, 282 | roles: [ '324615841966570766' ], 283 | premium_since: null, 284 | deaf: true, 285 | mute: true, 286 | joined_at: '2019-09-20T14:44:12.603123+00:00' 287 | } 288 | */ 289 | ``` 290 | 291 | ### `getGuildMember(access_token, guildId)` 292 | 293 | Get the member object in a guild the user is in. 294 | 295 | `access_token`: The user access token. 296 | 297 | `guildId`: The ID of the guild to get the member object from. 298 | 299 | Returns a member object. 300 | 301 | ```js 302 | const DiscordOauth2 = require("discord-oauth2"); 303 | const oauth = new DiscordOauth2(); 304 | 305 | const access_token = "6qrZcUqja7812RVdnEKjpzOL4CvHBFG"; 306 | const guildId = "216488324594438692"; 307 | 308 | oauth.getGuildMember(access_token, guildId).then(console.log); 309 | 310 | /* 311 | { 312 | roles: [ 313 | '3812761565259673315', 314 | ], 315 | nick: 'my nickname', 316 | avatar: null, 317 | premium_since: null, 318 | joined_at: '2017-02-15T12:06:21.285000+00:00', 319 | is_pending: false, 320 | pending: false, 321 | communication_disabled_until: null, 322 | user: { 323 | id: '462551172942746558', 324 | username: 'some username', 325 | avatar: '5282b6a9haac8ada65d6997d88f734k5', 326 | discriminator: '2142', 327 | public_flags: 32 328 | }, 329 | mute: false, 330 | deaf: false 331 | } 332 | */ 333 | ``` 334 | 335 | ### `getCurrentAuthorizationInformation(access_token)` 336 | 337 | `access_token`: The user's access token. 338 | 339 | Returns info about the current authorization. Includes the [user](https://discord.com/developers/docs/resources/user#user-object) object of the requester's account if they authorized with the `identify` scope. 340 | 341 | ```js 342 | const DiscordOauth2 = require("discord-oauth2"); 343 | const oauth = new DiscordOauth2(); 344 | 345 | const access_token = "6qrZcUqja7812RVdnEKjpzOL4CvHBFG"; 346 | 347 | oauth.getCurrentAuthorizationInformation(access_token).then(console.log); 348 | /* 349 | { 350 | "application": { 351 | "id": "159799960412356608", 352 | "name": "AIRHORN SOLUTIONS", 353 | "icon": "f03590d3eb764081d154a66340ea7d6d", 354 | "description": "", 355 | "hook": true, 356 | "bot_public": true, 357 | "bot_require_code_grant": false, 358 | "verify_key": "c8cde6a3c8c6e49d86af3191287b3ce255872be1fff6dc285bdb420c06a2c3c8" 359 | }, 360 | "scopes": [ 361 | "guilds.join", 362 | "identify" 363 | ], 364 | "expires": "2021-01-23T02:33:17.017000+00:00", 365 | "user": { 366 | "id": "268473310986240001", 367 | "username": "discord", 368 | "avatar": "f749bb0cbeeb26ef21eca719337d20f1", 369 | "discriminator": "0", 370 | "global_name": "Discord", 371 | "public_flags": 131072 372 | } 373 | } 374 | */ 375 | ``` 376 | 377 | ### `generateAuthUrl(object)` 378 | 379 | Dynamically generate an OAuth2 URL. 380 | 381 | Takes an object with the following properties: 382 | 383 | `clientId`: Your application's client id. Can be omitted if provided on the client constructor. 384 | 385 | `prompt`: Controls how existing authorizations are handled, either consent or none (for passthrough scopes authorization is always required). 386 | 387 | `scope`: The scopes requested in your authorization url, can be either a space-delimited string of scopes, or an array of strings containing scopes. 388 | 389 | `redirectUri`: Your URL redirect uri. Can be omitted if provided on the client constructor. 390 | 391 | `responseType`: The response type, either code or token (token is for client-side web applications only). Defaults to code. 392 | 393 | `state`: A unique cryptographically secure string (https://discord.com/developers/docs/topics/oauth2#state-and-security). 394 | 395 | `permissions`: The permissions number for the bot invite (only with bot scope) (https://discord.com/developers/docs/topics/permissions). 396 | 397 | `integrationType`: The installation context for the authorization, either 0 for guild or 1 for user install (only with applications.commands scope) (https://discord.com/developers/docs/resources/application#installation-context). 398 | 399 | `guildId`: The guild id to pre-fill the bot invite (only with bot scope). 400 | 401 | `disableGuildSelect`: Disallows the user from changing the guild for the bot invite, either true or false (only with bot scope). 402 | 403 | ```js 404 | const crypto = require('crypto') 405 | const DiscordOauth2 = require("discord-oauth2"); 406 | const oauth = new DiscordOauth2({ 407 | clientId: "332269999912132097", 408 | clientSecret: "937it3ow87i4ery69876wqire", 409 | redirectUri: "http://localhost/callback", 410 | }); 411 | 412 | const url = oauth.generateAuthUrl({ 413 | scope: ["identify", "guilds"], 414 | state: crypto.randomBytes(16).toString("hex"), // Be aware that randomBytes is sync if no callback is provided 415 | }); 416 | 417 | console.log(url); 418 | // https://discord.com/api/oauth2/authorize?client_id=332269999912132097&redirect_uri=http%3A%2F%2Flocalhost%2Fcallback&response_type=code&scope=identify%20guilds&state=132054f372bfca771de3dfe54aaacece 419 | 420 | ``` 421 | 422 | # Debugging 423 | 424 | By default when you log an error to the console, it will look something like this `DiscordHTTPError: 400 Bad Request on POST /api/v7/oauth2/token` followed by a very long stack trace what most of the times won't be useful (if you already know where the function is called). 425 | 426 | To easily debug any issues you are having, you can access the following properties of the error object thrown: 427 | 428 | `req`: The HTTP request sent to discord. 429 | 430 | `res`: The HTTP response sent from discord to our request. 431 | 432 | `code`: If the error is a `DiscordHTTPError`, it will be the HTTP status code of the response (same as `res.statusCode`).
433 | If the error is a `DiscordRESTError`, it will be a [Discord API JSON error code](https://discord.com/developers/docs/topics/opcodes-and-status-codes#json-json-error-codes). 434 | 435 | `response`: An object containing properties that describe the error.
436 | If the error is a `DiscordHTTPError`, the object will have the `error` and `error_description` properties.
437 | If the error is a `DiscordRESTError`, the object will have the `message` and `code` (JSON error code. See `code`.) properties. 438 | 439 | `message`: If the error is a `DiscordHTTPError`, it will be a string including the status of the HTTP request and the endpoint used.
440 | If the error is a `DiscordRESTError`, it will be a string including the error code and it's meaning. 441 | 442 | `stack`: The error stack trace. 443 | 444 | ```js 445 | // error.response for DiscordRESTError 446 | { 447 | message: 'Missing Permissions', 448 | code: 50013 449 | } 450 | ``` 451 | 452 | ```js 453 | // error.response for DiscordHTTPError 454 | { 455 | error: 'invalid_request', 456 | error_description: 'Invalid "code" in request.' 457 | } 458 | ``` 459 | 460 | # Contributing 461 | 462 | All contributions are welcome. 463 | -------------------------------------------------------------------------------- /index.d.ts: -------------------------------------------------------------------------------- 1 | import { EventEmitter } from "events"; 2 | import { ClientRequest, IncomingHttpHeaders, IncomingMessage } from "http"; 3 | 4 | declare namespace OAuth { 5 | export interface User { 6 | id: string; 7 | username: string; 8 | global_name: string | null; 9 | discriminator: string; 10 | avatar: string | null | undefined; 11 | mfa_enabled?: boolean; 12 | banner?: string | null | undefined; 13 | accent_color?: string | null | undefined; 14 | locale?: string; 15 | verified?: boolean; 16 | email?: string | null | undefined; 17 | flags?: number; 18 | premium_type?: number; 19 | public_flags?: number; 20 | } 21 | 22 | export interface Member { 23 | user?: User; 24 | nick: string | null | undefined; 25 | roles: string[]; 26 | joined_at: number; 27 | premium_since?: number | null | undefined; 28 | deaf: boolean; 29 | mute: boolean; 30 | pending?: boolean; 31 | is_pending?: boolean; 32 | communication_disabled_until?: string | null; 33 | } 34 | 35 | // This is not accurate as discord sends a partial object 36 | export interface Integration { 37 | id: string; 38 | name: string; 39 | type: string; 40 | enabled: boolean; 41 | syncing: boolean; 42 | role_id: string; 43 | enable_emoticons?: boolean; 44 | expire_behavior: 0 | 1; 45 | expire_grace_period: number; 46 | user?: User; 47 | account: { 48 | id: string; 49 | name: string; 50 | }; 51 | synced_at: number; 52 | subscriber_count: number; 53 | revoked: boolean; 54 | application?: IntegrationApplication; 55 | } 56 | 57 | export interface Connection { 58 | id: string; 59 | name: string; 60 | type: string; 61 | revoked?: string; 62 | integrations?: Integration[]; 63 | verified: boolean; 64 | friend_sync: boolean; 65 | show_activity: boolean; 66 | visibility: 0 | 1; 67 | } 68 | 69 | export interface IntegrationApplication { 70 | id: string; 71 | name: string; 72 | icon: string | null | undefined; 73 | description: string; 74 | bot?: User; 75 | } 76 | 77 | export interface PartialApplication { 78 | id: string; 79 | name: string; 80 | icon: string | null | undefined; 81 | description: string; 82 | hook?: boolean | null | undefined; 83 | bot_public: boolean; 84 | bot_require_code_grant: boolean; 85 | verify_key: string; 86 | } 87 | 88 | export interface TokenRequestResult { 89 | access_token: string; 90 | token_type: string; 91 | expires_in: number; 92 | refresh_token: string; 93 | scope: string; 94 | webhook?: Webhook; 95 | guild?: Guild; 96 | } 97 | 98 | export interface AuthorizationInformation { 99 | application: PartialApplication; 100 | scopes: string[]; 101 | expires: string; 102 | user?: User; 103 | } 104 | 105 | export interface PartialGuild { 106 | id: string; 107 | name: string; 108 | icon: string | null; 109 | owner?: boolean; 110 | permissions?: string; 111 | features: string[]; 112 | approximate_member_count?: number; 113 | approximate_presence_count?: number; 114 | } 115 | 116 | export interface Webhook { 117 | type: boolean; 118 | id: string; 119 | name: string; 120 | avatar: string | null; 121 | channel_id: string; 122 | guild_id: string; 123 | application_id: string; 124 | token: string; 125 | url: string; 126 | } 127 | 128 | export interface Guild { 129 | id: string; 130 | name: string; 131 | icon: string | null; 132 | owner_id: string; 133 | splash: string | null; 134 | discovery_splash: string | null; 135 | afk_channel_id: string | null; 136 | afk_timeout: number; 137 | widget_enabled?: boolean; 138 | widget_channel_id?: string | null; 139 | verification_level: number; 140 | default_message_notifications: number; 141 | explicit_content_filter: number; 142 | roles: Role[]; 143 | emojis: Emoji[]; 144 | features: string[]; 145 | mfa_level: number; 146 | application_id: string | null; 147 | system_channel_id: string | null; 148 | system_channel_flags: number; 149 | rules_channel_id: string | null; 150 | max_presences?: number | null; 151 | max_members?: number; 152 | vanity_url_code: string | null; 153 | description: string | null; 154 | banner: string | null; 155 | premium_tier: number; 156 | premium_subscription_count?: number; 157 | preferred_locale: string; 158 | public_updates_channel_id: string | null; 159 | max_video_channel_users?: number; 160 | max_stage_video_channel_users?: number; 161 | nsfw?: boolean | null | undefined; 162 | nsfw_level: number; 163 | stickers?: Sticker[]; 164 | premium_progress_bar_enabled: boolean; 165 | safety_alerts_channel_id: string | null; 166 | } 167 | 168 | export interface Role { 169 | id: string; 170 | name: string; 171 | color: number; 172 | hoist: boolean; 173 | icon?: string | null; 174 | unicode_emoji?: string | null; 175 | position: number; 176 | permissions: string; 177 | managed: boolean; 178 | mentionable: boolean; 179 | flags: number; 180 | tags?: RoleTags; 181 | } 182 | 183 | export interface Emoji { 184 | id: string | null; 185 | name: string | null; 186 | roles?: string[]; 187 | user?: User; 188 | require_colons?: boolean; 189 | managed?: boolean; 190 | animated?: boolean; 191 | available?: boolean; 192 | } 193 | 194 | export interface Sticker { 195 | id: string; 196 | name: string; 197 | description: string | null; 198 | tags: string; 199 | type: number; 200 | format_type: number; 201 | available?: boolean; 202 | guild_id: string; 203 | } 204 | 205 | export interface RoleTags { 206 | bot_id?: string; 207 | integration_id?: string; 208 | premium_subscriber?: null; 209 | subscription_listing_id?: string; 210 | available_for_purchase?: null; 211 | guild_connections?: null; 212 | } 213 | 214 | export interface HTTPResponse { 215 | code: number; 216 | message: string; 217 | } 218 | 219 | export class DiscordHTTPError extends Error { 220 | code: number; 221 | headers: IncomingHttpHeaders; 222 | name: "DiscordHTTPError"; 223 | req: ClientRequest; 224 | res: IncomingMessage; 225 | response: HTTPResponse; 226 | constructor( 227 | req: ClientRequest, 228 | res: IncomingMessage, 229 | response: HTTPResponse, 230 | stack: string, 231 | ); 232 | flattenErrors(errors: HTTPResponse, keyPrefix?: string): string[]; 233 | } 234 | 235 | export class DiscordRESTError extends Error { 236 | code: number; 237 | headers: IncomingHttpHeaders; 238 | name: string; 239 | req: ClientRequest; 240 | res: IncomingMessage; 241 | response: HTTPResponse; 242 | constructor( 243 | req: ClientRequest, 244 | res: IncomingMessage, 245 | response: HTTPResponse, 246 | stack: string, 247 | ); 248 | flattenErrors(errors: HTTPResponse, keyPrefix?: string): string[]; 249 | } 250 | } 251 | 252 | declare class OAuth extends EventEmitter { 253 | constructor(opts?: { 254 | version?: string; 255 | clientId?: string; 256 | redirectUri?: string; 257 | credentials?: string; 258 | clientSecret?: string; 259 | requestTimeout?: number; 260 | latencyThreshold?: number; 261 | ratelimiterOffset?: number; 262 | }); 263 | on(event: "debug" | "warn", listener: (message: string) => void): this; 264 | tokenRequest(opts: { 265 | code?: string; 266 | scope: string[] | string; 267 | clientId?: string; 268 | grantType: "authorization_code" | "refresh_token"; 269 | redirectUri?: string; 270 | refreshToken?: string; 271 | clientSecret?: string; 272 | }): Promise; 273 | revokeToken(access_token: string, credentials?: string): Promise; 274 | getCurrentAuthorizationInformation(access_token: string): Promise; 275 | getUser(access_token: string): Promise; 276 | getUserGuilds(access_token: string, opts?: { 277 | before?: string; 278 | after?: string; 279 | limit?: number; 280 | withCounts?: boolean; 281 | }): Promise; 282 | getUserConnections(access_token: string): Promise; 283 | addMember(opts: { 284 | deaf?: boolean; 285 | mute?: boolean; 286 | roles?: string[]; 287 | nickname?: string; 288 | userId: string; 289 | guildId: string; 290 | botToken: string; 291 | accessToken: string; 292 | }): Promise; 293 | getGuildMember( 294 | access_token: string, 295 | guildId: string, 296 | ): Promise; 297 | generateAuthUrl(opts: { 298 | scope: string[] | string; 299 | state?: string; 300 | clientId?: string; 301 | prompt?: "consent" | "none"; 302 | redirectUri?: string; 303 | responseType?: "code" | "token"; 304 | permissions?: string; 305 | integrationType?: 1 | 0; 306 | guildId?: string; 307 | disableGuildSelect?: boolean; 308 | }): string; 309 | } 310 | export = OAuth; 311 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const OAuth = require("./lib/oauth"); 3 | OAuth.DiscordHTTPError = require("./lib/eris/errors/DiscordHTTPError"); 4 | OAuth.DiscordRESTError = require("./lib/eris/errors/DiscordRESTError"); 5 | module.exports = OAuth; 6 | -------------------------------------------------------------------------------- /lib/eris/errors/DiscordHTTPError.js: -------------------------------------------------------------------------------- 1 | /* 2 | The MIT License (MIT) 3 | 4 | Copyright (c) 2016-2020 abalabahaha 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | the Software, and to permit persons to whom the Software is furnished to do so, 11 | subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | */ 23 | "use strict"; 24 | 25 | class DiscordHTTPError extends Error { 26 | constructor(req, res, response, stack) { 27 | super(); 28 | 29 | Object.defineProperty(this, "req", { 30 | enumerable: false, 31 | value: req, 32 | writable: false, 33 | }); 34 | Object.defineProperty(this, "res", { 35 | enumerable: false, 36 | value: res, 37 | writable: false, 38 | }); 39 | Object.defineProperty(this, "response", { 40 | enumerable: false, 41 | value: response, 42 | writable: false, 43 | }); 44 | 45 | Object.defineProperty(this, "code", { 46 | value: res.statusCode, 47 | writable: false, 48 | }); 49 | let message = `${this.name}: ${res.statusCode} ${res.statusMessage} on ${req.method} ${req.path}`; 50 | const errors = this.flattenErrors(response); 51 | if (errors.length > 0) { 52 | message += "\n " + errors.join("\n "); 53 | } 54 | Object.defineProperty(this, "message", { 55 | value: message, 56 | writable: false, 57 | }); 58 | 59 | if (stack) { 60 | Object.defineProperty(this, "stack", { 61 | value: this.message + "\n" + stack, 62 | writable: false, 63 | }); 64 | } 65 | else { 66 | Error.captureStackTrace(this, DiscordHTTPError); 67 | } 68 | } 69 | 70 | get name() { 71 | return this.constructor.name; 72 | } 73 | 74 | flattenErrors(errors, keyPrefix = "") { 75 | let messages = []; 76 | for (const fieldName in errors) { 77 | if (!errors.hasOwnProperty(fieldName) || fieldName === "message" || fieldName === "code") { 78 | continue; 79 | } 80 | if (Array.isArray(errors[fieldName])) { 81 | messages = messages.concat(errors[fieldName].map((str) => `${keyPrefix + fieldName}: ${str}`)); 82 | } 83 | } 84 | return messages; 85 | } 86 | } 87 | 88 | module.exports = DiscordHTTPError; 89 | -------------------------------------------------------------------------------- /lib/eris/errors/DiscordRESTError.js: -------------------------------------------------------------------------------- 1 | /* 2 | The MIT License (MIT) 3 | 4 | Copyright (c) 2016-2020 abalabahaha 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | the Software, and to permit persons to whom the Software is furnished to do so, 11 | subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | */ 23 | "use strict"; 24 | 25 | class DiscordRESTError extends Error { 26 | constructor(req, res, response, stack) { 27 | super(); 28 | 29 | Object.defineProperty(this, "req", { 30 | enumerable: false, 31 | value: req, 32 | writable: false, 33 | }); 34 | Object.defineProperty(this, "res", { 35 | enumerable: false, 36 | value: res, 37 | writable: false, 38 | }); 39 | Object.defineProperty(this, "response", { 40 | enumerable: false, 41 | value: response, 42 | writable: false, 43 | }); 44 | 45 | Object.defineProperty(this, "code", { 46 | value: +response.code || -1, 47 | writable: false, 48 | }); 49 | 50 | let message = this.name + ": " + (response.message || "Unknown error"); 51 | if (response.errors) { 52 | message += "\n " + this.flattenErrors(response.errors).join("\n "); 53 | } 54 | else { 55 | const errors = this.flattenErrors(response); 56 | if (errors.length > 0) { 57 | message += "\n " + errors.join("\n "); 58 | } 59 | } 60 | Object.defineProperty(this, "message", { 61 | value: message, 62 | writable: false, 63 | }); 64 | 65 | if (stack) { 66 | Object.defineProperty(this, "stack", { 67 | value: this.message + "\n" + stack, 68 | writable: false, 69 | }); 70 | } 71 | else { 72 | Error.captureStackTrace(this, DiscordRESTError); 73 | } 74 | } 75 | 76 | get name() { 77 | return `${this.constructor.name} [${this.code}]`; 78 | } 79 | 80 | flattenErrors(errors, keyPrefix = "") { 81 | let messages = []; 82 | for (const fieldName in errors) { 83 | if (!errors.hasOwnProperty(fieldName) || fieldName === "message" || fieldName === "code") { 84 | continue; 85 | } 86 | if (errors[fieldName]._errors) { 87 | messages = messages.concat(errors[fieldName]._errors.map((obj) => `${keyPrefix + fieldName}: ${obj.message}`)); 88 | } 89 | else if (Array.isArray(errors[fieldName])) { 90 | messages = messages.concat(errors[fieldName].map((str) => `${keyPrefix + fieldName}: ${str}`)); 91 | } 92 | else if (typeof errors[fieldName] === "object") { 93 | messages = messages.concat(this.flattenErrors(errors[fieldName], keyPrefix + fieldName + ".")); 94 | } 95 | } 96 | return messages; 97 | } 98 | } 99 | 100 | module.exports = DiscordRESTError; 101 | -------------------------------------------------------------------------------- /lib/eris/rest/RequestHandler.js: -------------------------------------------------------------------------------- 1 | /* 2 | The MIT License (MIT) 3 | 4 | Copyright (c) 2016-2021 abalabahaha 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | the Software, and to permit persons to whom the Software is furnished to do so, 11 | subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | */ 23 | "use strict"; 24 | 25 | const DiscordHTTPError = require("../errors/DiscordHTTPError"); 26 | const DiscordRESTError = require("../errors/DiscordRESTError"); 27 | const HTTPS = require("https"); 28 | const SequentialBucket = require("../util/SequentialBucket"); 29 | const Zlib = require("zlib"); 30 | const EventEmitter = require("events"); 31 | 32 | /** 33 | * Handles API requests 34 | */ 35 | class RequestHandler extends EventEmitter { 36 | constructor(options) { 37 | super(); 38 | 39 | this.options = options = Object.assign({ 40 | agent: null, 41 | baseURL: "/api/v9", 42 | domain: "discord.com", 43 | disableLatencyCompensation: false, 44 | latencyThreshold: 30000, 45 | ratelimiterOffset: 0, 46 | requestTimeout: 15000, 47 | }, options); 48 | 49 | this.userAgent = `Discord-OAuth2 (https://github.com/reboxer/discord-oauth2, ${require("../../../package.json").version})`; 50 | this.ratelimits = {}; 51 | this.latencyRef = { 52 | latency: this.options.ratelimiterOffset, 53 | raw: new Array(10).fill(this.options.ratelimiterOffset), 54 | timeOffset: 0, 55 | timeOffsets: new Array(10).fill(0), 56 | lastTimeOffsetCheck: 0, 57 | }; 58 | this.globalBlock = false; 59 | this.readyQueue = []; 60 | } 61 | 62 | globalUnblock() { 63 | this.globalBlock = false; 64 | while (this.readyQueue.length > 0) { 65 | this.readyQueue.shift()(); 66 | } 67 | } 68 | 69 | // We need this for the Add Guild Member endpoint 70 | routefy(url) { 71 | return url.replace(/\/([a-z-]+)\/(?:[0-9]{17,19})/g, function(match, p) { 72 | return p === "guilds" ? match : `/${p}/:id`; 73 | }); 74 | } 75 | 76 | /** 77 | * Make an API request 78 | * @arg {String} method Uppercase HTTP method 79 | * @arg {String} url URL of the endpoint 80 | * @arg {Boolean} [auth] Whether to add the Authorization header and token or not 81 | * @arg {String} [contentType] Content-Type header 82 | * @arg {Number} [attempts=0] Number of attempts 83 | * @arg {Object} [body] Request payload 84 | * @returns {Promise} Resolves with the returned JSON data 85 | */ 86 | request(method, url, body, { auth, contentType, attempts = 0 }, _route, short) { 87 | const route = _route || this.routefy(url, method); 88 | 89 | const _stackHolder = {}; // Preserve async stack 90 | Error.captureStackTrace(_stackHolder); 91 | 92 | return new Promise((resolve, reject) => { 93 | const actualCall = (cb) => { 94 | const headers = { 95 | "User-Agent": this.userAgent, 96 | "Accept-Encoding": "gzip,deflate", 97 | ...(contentType ? { "Content-Type": contentType } : {}), 98 | }; 99 | 100 | let data; 101 | try { 102 | if (auth) { 103 | headers.Authorization = `${auth.type} ${auth.creds}`; 104 | } 105 | if (contentType === "application/json") { 106 | data = JSON.stringify(body, (k, v) => typeof v === "bigint" ? v.toString() : v); 107 | } 108 | else { 109 | data = body; 110 | } 111 | } 112 | catch (err) { 113 | cb(); 114 | reject(err); 115 | return; 116 | } 117 | 118 | let req; 119 | try { 120 | req = HTTPS.request({ 121 | method: method, 122 | host: this.options.domain, 123 | path: this.options.baseURL + url, 124 | headers: headers, 125 | agent: this.options.agent, 126 | }); 127 | } 128 | catch (err) { 129 | cb(); 130 | reject(err); 131 | return; 132 | } 133 | 134 | let reqError; 135 | 136 | req.once("abort", () => { 137 | cb(); 138 | reqError = reqError || new Error(`Request aborted by client on ${method} ${url}`); 139 | reqError.req = req; 140 | reject(reqError); 141 | }).once("error", (err) => { 142 | reqError = err; 143 | req.abort(); 144 | }); 145 | 146 | let latency = Date.now(); 147 | 148 | req.once("response", (resp) => { 149 | latency = Date.now() - latency; 150 | if (!this.options.disableLatencyCompensation) { 151 | this.latencyRef.raw.push(latency); 152 | this.latencyRef.latency = this.latencyRef.latency - ~~(this.latencyRef.raw.shift() / 10) + ~~(latency / 10); 153 | } 154 | 155 | const headerNow = Date.parse(resp.headers["date"]); 156 | if (this.latencyRef.lastTimeOffsetCheck < Date.now() - 5000) { 157 | const timeOffset = headerNow + 500 - (this.latencyRef.lastTimeOffsetCheck = Date.now()); 158 | if (this.latencyRef.timeOffset - this.latencyRef.latency >= this.options.latencyThreshold && timeOffset - this.latencyRef.latency >= this.options.latencyThreshold) { 159 | this.emit("warn", new Error(`Your clock is ${this.latencyRef.timeOffset}ms behind Discord's server clock. Please check your connection and system time.`)); 160 | } 161 | this.latencyRef.timeOffset = this.latencyRef.timeOffset - ~~(this.latencyRef.timeOffsets.shift() / 10) + ~~(timeOffset / 10); 162 | this.latencyRef.timeOffsets.push(timeOffset); 163 | } 164 | 165 | resp.once("aborted", () => { 166 | cb(); 167 | reqError = reqError || new Error(`Request aborted by server on ${method} ${url}`); 168 | reqError.req = req; 169 | reject(reqError); 170 | }); 171 | 172 | let response = ""; 173 | 174 | let _respStream = resp; 175 | if (resp.headers["content-encoding"]) { 176 | if (resp.headers["content-encoding"].includes("gzip")) { 177 | _respStream = resp.pipe(Zlib.createGunzip()); 178 | } 179 | else if (resp.headers["content-encoding"].includes("deflate")) { 180 | _respStream = resp.pipe(Zlib.createInflate()); 181 | } 182 | } 183 | 184 | _respStream.on("data", (str) => { 185 | response += str; 186 | }).on("error", (err) => { 187 | reqError = err; 188 | req.abort(); 189 | }).once("end", () => { 190 | const now = Date.now(); 191 | 192 | if (resp.headers["x-ratelimit-limit"]) { 193 | this.ratelimits[route].limit = +resp.headers["x-ratelimit-limit"]; 194 | } 195 | 196 | if (method !== "GET" && (resp.headers["x-ratelimit-remaining"] === undefined || resp.headers["x-ratelimit-limit"] === undefined) && this.ratelimits[route].limit !== 1) { 197 | this.emit("debug", `Missing ratelimit headers for SequentialBucket(${this.ratelimits[route].remaining}/${this.ratelimits[route].limit}) with non-default limit\n` 198 | + `${resp.statusCode} ${resp.headers["content-type"]}: ${method} ${route} | ${resp.headers["cf-ray"]}\n` 199 | + "content-type = " + "\n" 200 | + "x-ratelimit-remaining = " + resp.headers["x-ratelimit-remaining"] + "\n" 201 | + "x-ratelimit-limit = " + resp.headers["x-ratelimit-limit"] + "\n" 202 | + "x-ratelimit-reset = " + resp.headers["x-ratelimit-reset"] + "\n" 203 | + "x-ratelimit-global = " + resp.headers["x-ratelimit-global"]); 204 | } 205 | 206 | this.ratelimits[route].remaining = resp.headers["x-ratelimit-remaining"] === undefined ? 1 : +resp.headers["x-ratelimit-remaining"] || 0; 207 | 208 | const retryAfter = parseInt(resp.headers["x-ratelimit-reset-after"] || resp.headers["retry-after"]) * 1000; 209 | if (retryAfter >= 0) { 210 | if (resp.headers["x-ratelimit-global"]) { 211 | this.globalBlock = true; 212 | setTimeout(() => this.globalUnblock(), retryAfter || 1); 213 | } 214 | else { 215 | this.ratelimits[route].reset = (retryAfter || 1) + now; 216 | } 217 | } 218 | else if (resp.headers["x-ratelimit-reset"]) { 219 | const resetTime = +resp.headers["x-ratelimit-reset"] * 1000; 220 | this.ratelimits[route].reset = Math.max(resetTime - this.latencyRef.latency, now); 221 | } 222 | else { 223 | this.ratelimits[route].reset = now; 224 | } 225 | 226 | if (resp.statusCode !== 429) { 227 | const content = typeof body === "object" ? `${body.content} ` : ""; 228 | this.emit("debug", `${content}${now} ${route} ${resp.statusCode}: ${latency}ms (${this.latencyRef.latency}ms avg) | ${this.ratelimits[route].remaining}/${this.ratelimits[route].limit} left | Reset ${this.ratelimits[route].reset} (${this.ratelimits[route].reset - now}ms left)`); 229 | } 230 | 231 | if (resp.statusCode >= 300) { 232 | if (resp.statusCode === 429) { 233 | const content = typeof body === "object" ? `${body.content} ` : ""; 234 | this.emit("debug", `${resp.headers["x-ratelimit-global"] ? "Global" : "Unexpected"} 429 (╯°□°)╯︵ ┻━┻: ${response}\n${content} ${now} ${route} ${resp.statusCode}: ${latency}ms (${this.latencyRef.latency}ms avg) | ${this.ratelimits[route].remaining}/${this.ratelimits[route].limit} left | Reset ${this.ratelimits[route].reset} (${this.ratelimits[route].reset - now}ms left)`); 235 | if (retryAfter) { 236 | setTimeout(() => { 237 | cb(); 238 | this.request(method, url, body, { auth, contentType }, route, true).then(resolve).catch(reject); 239 | }, retryAfter); 240 | return; 241 | } 242 | else { 243 | cb(); 244 | this.request(method, url, body, { auth, contentType }, route, true).then(resolve).catch(reject); 245 | return; 246 | } 247 | } 248 | else if (resp.statusCode === 502 && ++attempts < 4) { 249 | this.emit("debug", "A wild 502 appeared! Thanks CloudFlare!"); 250 | setTimeout(() => { 251 | this.request(method, url, body, { auth, contentType, attempts }, route, true).then(resolve).catch(reject); 252 | }, Math.floor(Math.random() * 1900 + 100)); 253 | return cb(); 254 | } 255 | cb(); 256 | 257 | if (response.length > 0) { 258 | if (resp.headers["content-type"] === "application/json") { 259 | try { 260 | response = JSON.parse(response); 261 | } 262 | catch (err) { 263 | reject(err); 264 | return; 265 | } 266 | } 267 | } 268 | 269 | let { stack } = _stackHolder; 270 | if (stack.startsWith("Error\n")) { 271 | stack = stack.substring(6); 272 | } 273 | let err; 274 | if (response.code) { 275 | err = new DiscordRESTError(req, resp, response, stack); 276 | } 277 | else { 278 | err = new DiscordHTTPError(req, resp, response, stack); 279 | } 280 | reject(err); 281 | return; 282 | } 283 | 284 | if (response.length > 0) { 285 | if (resp.headers["content-type"] === "application/json") { 286 | try { 287 | response = JSON.parse(response); 288 | } 289 | catch (err) { 290 | cb(); 291 | reject(err); 292 | return; 293 | } 294 | } 295 | } 296 | 297 | cb(); 298 | resolve(response); 299 | }); 300 | }); 301 | 302 | req.setTimeout(this.options.requestTimeout, () => { 303 | reqError = new Error(`Request timed out (>${this.options.requestTimeout}ms) on ${method} ${url}`); 304 | req.abort(); 305 | }); 306 | 307 | req.end(data); 308 | }; 309 | 310 | if (this.globalBlock && auth) { 311 | this.readyQueue.push(() => { 312 | if (!this.ratelimits[route]) { 313 | this.ratelimits[route] = new SequentialBucket(1, this.latencyRef); 314 | } 315 | this.ratelimits[route].queue(actualCall, short); 316 | }); 317 | } 318 | else { 319 | if (!this.ratelimits[route]) { 320 | this.ratelimits[route] = new SequentialBucket(1, this.latencyRef); 321 | } 322 | this.ratelimits[route].queue(actualCall, short); 323 | } 324 | }); 325 | } 326 | } 327 | 328 | module.exports = RequestHandler; 329 | -------------------------------------------------------------------------------- /lib/eris/util/SequentialBucket.js: -------------------------------------------------------------------------------- 1 | /* 2 | The MIT License (MIT) 3 | 4 | Copyright (c) 2016-2020 abalabahaha 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | the Software, and to permit persons to whom the Software is furnished to do so, 11 | subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | */ 23 | "use strict"; 24 | 25 | /** 26 | * Ratelimit requests and release in sequence 27 | * @prop {Number} limit How many tokens the bucket can consume in the current interval 28 | * @prop {Number} remaining How many tokens the bucket has left in the current interval 29 | * @prop {Number} reset Timestamp of next reset 30 | * @prop {Boolean} processing Whether the queue is being processed 31 | */ 32 | class SequentialBucket { 33 | /** 34 | * Construct a SequentialBucket 35 | * @arg {Number} tokenLimit The max number of tokens the bucket can consume per interval 36 | * @arg {Object} [latencyRef] An object 37 | * @arg {Number} latencyRef.latency Interval between consuming tokens 38 | */ 39 | constructor(limit, latencyRef = { latency: 0 }) { 40 | this.limit = this.remaining = limit; 41 | this.resetInterval = 0; 42 | this.reset = 0; 43 | this.processing = false; 44 | this.latencyRef = latencyRef; 45 | this._queue = []; 46 | } 47 | 48 | /** 49 | * Queue something in the SequentialBucket 50 | * @arg {Function} func A function to call when a token can be consumed. The function will be passed a callback argument, which must be called to allow the bucket to continue to work 51 | */ 52 | queue(func, short) { 53 | if (short) { 54 | this._queue.unshift(func); 55 | } 56 | else { 57 | this._queue.push(func); 58 | } 59 | this.check(); 60 | } 61 | 62 | check(override) { 63 | if (this._queue.length === 0) { 64 | if (this.processing) { 65 | clearTimeout(this.processing); 66 | this.processing = false; 67 | } 68 | return; 69 | } 70 | if (this.processing && !override) { 71 | return; 72 | } 73 | const now = Date.now(); 74 | const offset = this.latencyRef.latency + (this.latencyRef.offset || 0); 75 | if (!this.reset) { 76 | this.reset = now - offset; 77 | this.remaining = this.limit; 78 | } 79 | else if (this.reset < now - offset) { 80 | this.reset = now - offset + (this.resetInterval || 0); 81 | this.remaining = this.limit; 82 | } 83 | this.last = now; 84 | if (this.remaining <= 0) { 85 | this.processing = setTimeout(() => { 86 | this.processing = false; 87 | this.check(true); 88 | }, Math.max(0, (this.reset || 0) - now) + offset); 89 | return; 90 | } 91 | --this.remaining; 92 | this.processing = true; 93 | this._queue.shift()(() => { 94 | if (this._queue.length > 0) { 95 | this.check(true); 96 | } 97 | else { 98 | this.processing = false; 99 | } 100 | }); 101 | } 102 | } 103 | 104 | module.exports = SequentialBucket; 105 | -------------------------------------------------------------------------------- /lib/oauth.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | const RequestHandler = require("./eris/rest/RequestHandler"); 4 | 5 | /** 6 | * Make requests to discord's OAuth2 API 7 | * @extends requestHandler 8 | */ 9 | class OAuth extends RequestHandler { 10 | /** 11 | * 12 | * @arg {Object} options 13 | * @arg {Object} options.agent A HTTPS Agent used to proxy requests 14 | * @arg {Number} [options.requestTimeout=15000] A number of milliseconds before requests are considered timed out 15 | * @arg {Number} [options.latencyThreshold=30000] The average request latency at which the RequestHandler will start emitting latency errors 16 | * @arg {Number} [options.ratelimiterOffset=0] A number of milliseconds to offset the ratelimit timing calculations by 17 | * @arg {Boolean} [options.disableLatencyCompensation=false] Whether to disable the built-in latency compensator or not 18 | * @arg {String?} options.clientId Your application's client id 19 | * @arg {String?} options.clientSecret Your application's client secret 20 | * @arg {String?} options.redirectUri Your URL redirect uri 21 | * @arg {String?} options.credentials Base64 encoding of the UTF-8 encoded credentials string of your application 22 | */ 23 | constructor(options = {}) { 24 | super({ 25 | // there must be a better way to do this. 26 | // defaults should be in RequestHandler, not here, but passing undefined makes it ignore the default 27 | ...(options.agent ? { agent: options.agent } : {}), 28 | ...(options.requestTimeout 29 | ? { requestTimeout: options.requestTimeout } 30 | : {}), 31 | ...(options.latencyThreshold 32 | ? { latencyThreshold: options.latencyThreshold } 33 | : {}), 34 | ...(options.ratelimiterOffset 35 | ? { ratelimiterOffset: options.ratelimiterOffset } 36 | : {}), 37 | ...(options.disableLatencyCompensation 38 | ? { 39 | disableLatencyCompensation: 40 | options.disableLatencyCompensation, 41 | // this looks horrible, probably should stop using prettier 42 | // eslint-disable-next-line no-mixed-spaces-and-tabs 43 | } 44 | : {}), 45 | }); 46 | 47 | this.clientId = options.clientId; 48 | this.clientSecret = options.clientSecret; 49 | this.redirectUri = options.redirectUri; 50 | 51 | this.credentials = options.credentials; 52 | } 53 | 54 | _encode(obj) { 55 | let string = ""; 56 | 57 | for (const [key, value] of Object.entries(obj)) { 58 | if (!value) continue; 59 | string += `&${encodeURIComponent(key)}=${encodeURIComponent( 60 | value, 61 | )}`; 62 | } 63 | 64 | return string.substring(1); 65 | } 66 | 67 | /** 68 | * Exchange the code returned by discord in the query for the user access token 69 | * If specified, can also use refresh_token to get a new valid token 70 | * Read discord's OAuth2 documentation for a full example (https://discord.com/developers/docs/topics/oauth2) 71 | * @arg {Object} options The object containing the parameters for the request 72 | * @arg {String?} options.clientId Your application's client id 73 | * @arg {String?} options.clientSecret Your application's client secret 74 | * @arg {String} options.grantType Either authorization_code or refresh_token 75 | * @arg {String?} options.code The code from the querystring 76 | * @arg {String?} options.refreshToken The user's refresh token 77 | * @arg {String?} options.redirectUri Your URL redirect uri 78 | * @arg {String} options.scope The scopes requested in your authorization url, space-delimited 79 | * @returns {Promise} 80 | */ 81 | tokenRequest(options = {}) { 82 | const obj = { 83 | client_id: options.clientId || this.clientId, 84 | client_secret: options.clientSecret || this.clientSecret, 85 | grant_type: undefined, 86 | code: undefined, 87 | refresh_token: undefined, 88 | redirect_uri: options.redirectUri || this.redirectUri, 89 | scope: 90 | options.scope instanceof Array 91 | ? options.scope.join(" ") 92 | : options.scope, 93 | }; 94 | 95 | if (options.grantType === "authorization_code") { 96 | obj.code = options.code; 97 | obj.grant_type = options.grantType; 98 | } 99 | else if (options.grantType === "refresh_token") { 100 | obj.refresh_token = options.refreshToken; 101 | obj.grant_type = options.grantType; 102 | } 103 | else 104 | throw new Error( 105 | "Invalid grant_type provided, it must be either authorization_code or refresh_token", 106 | ); 107 | 108 | const encoded_string = this._encode(obj); 109 | 110 | return this.request("POST", "/oauth2/token", encoded_string, { 111 | contentType: "application/x-www-form-urlencoded", 112 | }); 113 | } 114 | 115 | /** 116 | * Revoke the user access token 117 | * @arg {String} access_token The user access token 118 | * @arg {String} credentials Base64 encoding of the UTF-8 encoded credentials string of your application 119 | * @returns {Promise} 120 | */ 121 | revokeToken(access_token, credentials) { 122 | if (!credentials && !this.credentials) 123 | throw new Error("Missing credentials for revokeToken method"); 124 | return this.request( 125 | "POST", 126 | "/oauth2/token/revoke", 127 | `token=${access_token}`, 128 | { 129 | auth: { 130 | type: "Basic", 131 | creds: credentials || this.credentials, 132 | }, 133 | contentType: "application/x-www-form-urlencoded", 134 | }, 135 | ); 136 | } 137 | 138 | /** 139 | * Request info about the current authorization 140 | * @arg {String} access_token The user access token 141 | * @returns {Promise} 142 | */ 143 | getCurrentAuthorizationInformation(access_token) { 144 | return this.request("GET", "/oauth2/@me", undefined, { 145 | auth: { 146 | type: "Bearer", 147 | creds: access_token, 148 | }, 149 | }); 150 | } 151 | 152 | /** 153 | * Request basic user data 154 | * Requires the `identify` scope 155 | * @arg {String} access_token The user access token 156 | * @returns {Promise} 157 | */ 158 | getUser(access_token) { 159 | return this.request("GET", "/users/@me", undefined, { 160 | auth: { 161 | type: "Bearer", 162 | creds: access_token, 163 | }, 164 | }); 165 | } 166 | 167 | /** 168 | * Request all the guilds the user is in 169 | * Requires the `guilds` scope 170 | * @arg {String} access_token The user access token 171 | * @arg {Object?} options The object containing the parameters for the request 172 | * @arg {String?} options.before Get guilds before this guild ID 173 | * @arg {String?} options.after Get guilds after this guild ID 174 | * @arg {Number?} options.limit Max number of guilds to return (1-200) 175 | * @arg {Boolean?} options.withCounts Include approximate member and presence counts in response 176 | * @returns {Promise} 177 | */ 178 | getUserGuilds(access_token, options = {}) { 179 | const obj = { 180 | before: options.before, 181 | after: options.after, 182 | limit: options.limit, 183 | with_counts: options.withCounts, 184 | }; 185 | 186 | return this.request( 187 | "GET", 188 | "/users/@me/guilds" + 189 | (Object.keys(options).length ? `?${this._encode(obj)}` : ""), 190 | undefined, 191 | { 192 | auth: { 193 | type: "Bearer", 194 | creds: access_token, 195 | }, 196 | }, 197 | ); 198 | } 199 | 200 | /** 201 | * Request a user's connections 202 | * Requires the `connections` scope 203 | * @arg {String} access_token The user access token 204 | * @returns {Promise} 205 | */ 206 | getUserConnections(access_token) { 207 | return this.request("GET", "/users/@me/connections", undefined, { 208 | auth: { 209 | type: "Bearer", 210 | creds: access_token, 211 | }, 212 | }); 213 | } 214 | 215 | /** 216 | * Force a user to join a guild 217 | * Requires the `guilds.join` scope 218 | * @arg {Object} options 219 | * @arg {String} options.guildId The ID of the guild to join 220 | * @arg {String} options.userId The ID of the user to be added to the guild 221 | * @arg {Boolean?} options.deaf Whether the user is deafened in voice channels 222 | * @arg {Boolean?} options.mute Whether the user is muted in voice channels 223 | * @arg {String?} options.nickname Value to set users nickname to 224 | * @arg {String[]?} options.roles Array of role ids the member is assigned 225 | * @arg {String} options.accessToken The user access token 226 | * @arg {String} options.botToken The token of the bot used to authenticate 227 | * @returns {Promise} 228 | */ 229 | addMember(options) { 230 | return this.request( 231 | "PUT", 232 | `/guilds/${options.guildId}/members/${options.userId}`, 233 | { 234 | deaf: options.deaf, 235 | mute: options.mute, 236 | nick: options.nickname, 237 | roles: options.roles, 238 | access_token: options.accessToken, 239 | }, 240 | { 241 | auth: { 242 | type: "Bot", 243 | creds: options.botToken, 244 | }, 245 | contentType: "application/json", 246 | }, 247 | ); 248 | } 249 | 250 | /** 251 | * Get the member object of a user in a guild 252 | * Requires the `guilds.members.read` scope 253 | * @arg {String} accessToken The user access token 254 | * @arg {String} guildId The ID of the guild 255 | * @returns {Promise} 256 | */ 257 | getGuildMember(accessToken, guildId) { 258 | return this.request( 259 | "GET", 260 | `/users/@me/guilds/${guildId}/member`, 261 | undefined, 262 | { 263 | auth: { 264 | type: "Bearer", 265 | creds: accessToken, 266 | }, 267 | }, 268 | ); 269 | } 270 | 271 | /** 272 | * 273 | * @arg {Object} options 274 | * @arg {String} options.clientId Your application's client id 275 | * @arg {String?} options.prompt Controls how existing authorizations are handled, either consent or none (for passthrough scopes authorization is always required). 276 | * @arg {String?} options.redirectUri Your URL redirect uri 277 | * @arg {String?} options.responseType The response type, either code or token (token is for client-side web applications only). Defaults to code 278 | * @arg {String | Array} options.scope The scopes for your URL 279 | * @arg {String?} options.state A unique cryptographically secure string (https://discord.com/developers/docs/topics/oauth2#state-and-security) 280 | * @arg {String?} options.permissions The permissions number for the bot invite (only with bot scope) (https://discord.com/developers/docs/topics/permissions) 281 | * @arg {Number?} options.integrationType The installation context for the authorization, either 0 for guild or 1 for user install (only with applications.commands scope) (https://discord.com/developers/docs/resources/application#installation-context) 282 | * @arg {String?} options.guildId The guild id to pre-fill the bot invite (only with bot scope) 283 | * @arg {Boolean?} options.disableGuildSelect Disallows the user from changing the guild for the bot invite, either true or false (only with bot scope) 284 | * @returns {String} 285 | */ 286 | generateAuthUrl(options = {}) { 287 | const obj = { 288 | client_id: options.clientId || this.clientId, 289 | prompt: options.prompt, 290 | redirect_uri: options.redirectUri || this.redirectUri, 291 | response_type: options.responseType || "code", 292 | scope: 293 | options.scope instanceof Array 294 | ? options.scope.join(" ") 295 | : options.scope, 296 | permissions: options.permissions, 297 | integration_type: options.integrationType, 298 | guild_id: options.guildId, 299 | disable_guild_select: options.disableGuildSelect, 300 | state: options.state, 301 | }; 302 | 303 | const encoded_string = this._encode(obj); 304 | 305 | return `https://discord.com/oauth2/authorize?${encoded_string}`; 306 | } 307 | } 308 | 309 | module.exports = OAuth; 310 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "discord-oauth2", 3 | "version": "2.12.1", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "discord-oauth2", 9 | "version": "2.12.1", 10 | "license": "MIT", 11 | "devDependencies": { 12 | "eslint": "^8.56.0", 13 | "prettier-eslint-cli": "^8.0.1" 14 | } 15 | }, 16 | "node_modules/@aashutoshrathi/word-wrap": { 17 | "version": "1.2.6", 18 | "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", 19 | "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", 20 | "dev": true, 21 | "engines": { 22 | "node": ">=0.10.0" 23 | } 24 | }, 25 | "node_modules/@eslint-community/eslint-utils": { 26 | "version": "4.4.0", 27 | "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", 28 | "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", 29 | "dev": true, 30 | "dependencies": { 31 | "eslint-visitor-keys": "^3.3.0" 32 | }, 33 | "engines": { 34 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 35 | }, 36 | "peerDependencies": { 37 | "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" 38 | } 39 | }, 40 | "node_modules/@eslint-community/regexpp": { 41 | "version": "4.10.0", 42 | "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", 43 | "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==", 44 | "dev": true, 45 | "engines": { 46 | "node": "^12.0.0 || ^14.0.0 || >=16.0.0" 47 | } 48 | }, 49 | "node_modules/@eslint/eslintrc": { 50 | "version": "2.1.4", 51 | "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", 52 | "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", 53 | "dev": true, 54 | "dependencies": { 55 | "ajv": "^6.12.4", 56 | "debug": "^4.3.2", 57 | "espree": "^9.6.0", 58 | "globals": "^13.19.0", 59 | "ignore": "^5.2.0", 60 | "import-fresh": "^3.2.1", 61 | "js-yaml": "^4.1.0", 62 | "minimatch": "^3.1.2", 63 | "strip-json-comments": "^3.1.1" 64 | }, 65 | "engines": { 66 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 67 | }, 68 | "funding": { 69 | "url": "https://opencollective.com/eslint" 70 | } 71 | }, 72 | "node_modules/@eslint/js": { 73 | "version": "8.56.0", 74 | "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.56.0.tgz", 75 | "integrity": "sha512-gMsVel9D7f2HLkBma9VbtzZRehRogVRfbr++f06nL2vnCGCNlzOD+/MUov/F4p8myyAHspEhVobgjpX64q5m6A==", 76 | "dev": true, 77 | "engines": { 78 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 79 | } 80 | }, 81 | "node_modules/@humanwhocodes/config-array": { 82 | "version": "0.11.14", 83 | "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", 84 | "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", 85 | "dev": true, 86 | "dependencies": { 87 | "@humanwhocodes/object-schema": "^2.0.2", 88 | "debug": "^4.3.1", 89 | "minimatch": "^3.0.5" 90 | }, 91 | "engines": { 92 | "node": ">=10.10.0" 93 | } 94 | }, 95 | "node_modules/@humanwhocodes/module-importer": { 96 | "version": "1.0.1", 97 | "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", 98 | "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", 99 | "dev": true, 100 | "engines": { 101 | "node": ">=12.22" 102 | }, 103 | "funding": { 104 | "type": "github", 105 | "url": "https://github.com/sponsors/nzakas" 106 | } 107 | }, 108 | "node_modules/@humanwhocodes/object-schema": { 109 | "version": "2.0.2", 110 | "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.2.tgz", 111 | "integrity": "sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==", 112 | "dev": true 113 | }, 114 | "node_modules/@isaacs/cliui": { 115 | "version": "8.0.2", 116 | "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", 117 | "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", 118 | "dev": true, 119 | "dependencies": { 120 | "string-width": "^5.1.2", 121 | "string-width-cjs": "npm:string-width@^4.2.0", 122 | "strip-ansi": "^7.0.1", 123 | "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", 124 | "wrap-ansi": "^8.1.0", 125 | "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" 126 | }, 127 | "engines": { 128 | "node": ">=12" 129 | } 130 | }, 131 | "node_modules/@isaacs/cliui/node_modules/ansi-regex": { 132 | "version": "6.0.1", 133 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", 134 | "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", 135 | "dev": true, 136 | "engines": { 137 | "node": ">=12" 138 | }, 139 | "funding": { 140 | "url": "https://github.com/chalk/ansi-regex?sponsor=1" 141 | } 142 | }, 143 | "node_modules/@isaacs/cliui/node_modules/strip-ansi": { 144 | "version": "7.1.0", 145 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", 146 | "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", 147 | "dev": true, 148 | "dependencies": { 149 | "ansi-regex": "^6.0.1" 150 | }, 151 | "engines": { 152 | "node": ">=12" 153 | }, 154 | "funding": { 155 | "url": "https://github.com/chalk/strip-ansi?sponsor=1" 156 | } 157 | }, 158 | "node_modules/@jest/schemas": { 159 | "version": "29.6.3", 160 | "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", 161 | "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", 162 | "dev": true, 163 | "dependencies": { 164 | "@sinclair/typebox": "^0.27.8" 165 | }, 166 | "engines": { 167 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 168 | } 169 | }, 170 | "node_modules/@messageformat/core": { 171 | "version": "3.3.0", 172 | "resolved": "https://registry.npmjs.org/@messageformat/core/-/core-3.3.0.tgz", 173 | "integrity": "sha512-YcXd3remTDdeMxAlbvW6oV9d/01/DZ8DHUFwSttO3LMzIZj3iO0NRw+u1xlsNNORFI+u0EQzD52ZX3+Udi0T3g==", 174 | "dev": true, 175 | "dependencies": { 176 | "@messageformat/date-skeleton": "^1.0.0", 177 | "@messageformat/number-skeleton": "^1.0.0", 178 | "@messageformat/parser": "^5.1.0", 179 | "@messageformat/runtime": "^3.0.1", 180 | "make-plural": "^7.0.0", 181 | "safe-identifier": "^0.4.1" 182 | } 183 | }, 184 | "node_modules/@messageformat/date-skeleton": { 185 | "version": "1.0.1", 186 | "resolved": "https://registry.npmjs.org/@messageformat/date-skeleton/-/date-skeleton-1.0.1.tgz", 187 | "integrity": "sha512-jPXy8fg+WMPIgmGjxSlnGJn68h/2InfT0TNSkVx0IGXgp4ynnvYkbZ51dGWmGySEK+pBiYUttbQdu5XEqX5CRg==", 188 | "dev": true 189 | }, 190 | "node_modules/@messageformat/number-skeleton": { 191 | "version": "1.2.0", 192 | "resolved": "https://registry.npmjs.org/@messageformat/number-skeleton/-/number-skeleton-1.2.0.tgz", 193 | "integrity": "sha512-xsgwcL7J7WhlHJ3RNbaVgssaIwcEyFkBqxHdcdaiJzwTZAWEOD8BuUFxnxV9k5S0qHN3v/KzUpq0IUpjH1seRg==", 194 | "dev": true 195 | }, 196 | "node_modules/@messageformat/parser": { 197 | "version": "5.1.0", 198 | "resolved": "https://registry.npmjs.org/@messageformat/parser/-/parser-5.1.0.tgz", 199 | "integrity": "sha512-jKlkls3Gewgw6qMjKZ9SFfHUpdzEVdovKFtW1qRhJ3WI4FW5R/NnGDqr8SDGz+krWDO3ki94boMmQvGke1HwUQ==", 200 | "dev": true, 201 | "dependencies": { 202 | "moo": "^0.5.1" 203 | } 204 | }, 205 | "node_modules/@messageformat/runtime": { 206 | "version": "3.0.1", 207 | "resolved": "https://registry.npmjs.org/@messageformat/runtime/-/runtime-3.0.1.tgz", 208 | "integrity": "sha512-6RU5ol2lDtO8bD9Yxe6CZkl0DArdv0qkuoZC+ZwowU+cdRlVE1157wjCmlA5Rsf1Xc/brACnsZa5PZpEDfTFFg==", 209 | "dev": true, 210 | "dependencies": { 211 | "make-plural": "^7.0.0" 212 | } 213 | }, 214 | "node_modules/@nodelib/fs.scandir": { 215 | "version": "2.1.5", 216 | "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", 217 | "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", 218 | "dev": true, 219 | "dependencies": { 220 | "@nodelib/fs.stat": "2.0.5", 221 | "run-parallel": "^1.1.9" 222 | }, 223 | "engines": { 224 | "node": ">= 8" 225 | } 226 | }, 227 | "node_modules/@nodelib/fs.stat": { 228 | "version": "2.0.5", 229 | "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", 230 | "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", 231 | "dev": true, 232 | "engines": { 233 | "node": ">= 8" 234 | } 235 | }, 236 | "node_modules/@nodelib/fs.walk": { 237 | "version": "1.2.8", 238 | "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", 239 | "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", 240 | "dev": true, 241 | "dependencies": { 242 | "@nodelib/fs.scandir": "2.1.5", 243 | "fastq": "^1.6.0" 244 | }, 245 | "engines": { 246 | "node": ">= 8" 247 | } 248 | }, 249 | "node_modules/@pkgjs/parseargs": { 250 | "version": "0.11.0", 251 | "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", 252 | "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", 253 | "dev": true, 254 | "optional": true, 255 | "engines": { 256 | "node": ">=14" 257 | } 258 | }, 259 | "node_modules/@prettier/eslint": { 260 | "name": "prettier-eslint", 261 | "version": "16.3.0", 262 | "resolved": "https://registry.npmjs.org/prettier-eslint/-/prettier-eslint-16.3.0.tgz", 263 | "integrity": "sha512-Lh102TIFCr11PJKUMQ2kwNmxGhTsv/KzUg9QYF2Gkw259g/kPgndZDWavk7/ycbRvj2oz4BPZ1gCU8bhfZH/Xg==", 264 | "dev": true, 265 | "dependencies": { 266 | "@typescript-eslint/parser": "^6.7.5", 267 | "common-tags": "^1.4.0", 268 | "dlv": "^1.1.0", 269 | "eslint": "^8.7.0", 270 | "indent-string": "^4.0.0", 271 | "lodash.merge": "^4.6.0", 272 | "loglevel-colored-level-prefix": "^1.0.0", 273 | "prettier": "^3.0.1", 274 | "pretty-format": "^29.7.0", 275 | "require-relative": "^0.8.7", 276 | "typescript": "^5.2.2", 277 | "vue-eslint-parser": "^9.1.0" 278 | }, 279 | "engines": { 280 | "node": ">=16.10.0" 281 | }, 282 | "peerDependencies": { 283 | "prettier-plugin-svelte": "^3.0.0", 284 | "svelte-eslint-parser": "*" 285 | }, 286 | "peerDependenciesMeta": { 287 | "prettier-plugin-svelte": { 288 | "optional": true 289 | }, 290 | "svelte-eslint-parser": { 291 | "optional": true 292 | } 293 | } 294 | }, 295 | "node_modules/@sinclair/typebox": { 296 | "version": "0.27.8", 297 | "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", 298 | "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", 299 | "dev": true 300 | }, 301 | "node_modules/@typescript-eslint/parser": { 302 | "version": "6.21.0", 303 | "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.21.0.tgz", 304 | "integrity": "sha512-tbsV1jPne5CkFQCgPBcDOt30ItF7aJoZL997JSF7MhGQqOeT3svWRYxiqlfA5RUdlHN6Fi+EI9bxqbdyAUZjYQ==", 305 | "dev": true, 306 | "dependencies": { 307 | "@typescript-eslint/scope-manager": "6.21.0", 308 | "@typescript-eslint/types": "6.21.0", 309 | "@typescript-eslint/typescript-estree": "6.21.0", 310 | "@typescript-eslint/visitor-keys": "6.21.0", 311 | "debug": "^4.3.4" 312 | }, 313 | "engines": { 314 | "node": "^16.0.0 || >=18.0.0" 315 | }, 316 | "funding": { 317 | "type": "opencollective", 318 | "url": "https://opencollective.com/typescript-eslint" 319 | }, 320 | "peerDependencies": { 321 | "eslint": "^7.0.0 || ^8.0.0" 322 | }, 323 | "peerDependenciesMeta": { 324 | "typescript": { 325 | "optional": true 326 | } 327 | } 328 | }, 329 | "node_modules/@typescript-eslint/scope-manager": { 330 | "version": "6.21.0", 331 | "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.21.0.tgz", 332 | "integrity": "sha512-OwLUIWZJry80O99zvqXVEioyniJMa+d2GrqpUTqi5/v5D5rOrppJVBPa0yKCblcigC0/aYAzxxqQ1B+DS2RYsg==", 333 | "dev": true, 334 | "dependencies": { 335 | "@typescript-eslint/types": "6.21.0", 336 | "@typescript-eslint/visitor-keys": "6.21.0" 337 | }, 338 | "engines": { 339 | "node": "^16.0.0 || >=18.0.0" 340 | }, 341 | "funding": { 342 | "type": "opencollective", 343 | "url": "https://opencollective.com/typescript-eslint" 344 | } 345 | }, 346 | "node_modules/@typescript-eslint/types": { 347 | "version": "6.21.0", 348 | "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.21.0.tgz", 349 | "integrity": "sha512-1kFmZ1rOm5epu9NZEZm1kckCDGj5UJEf7P1kliH4LKu/RkwpsfqqGmY2OOcUs18lSlQBKLDYBOGxRVtrMN5lpg==", 350 | "dev": true, 351 | "engines": { 352 | "node": "^16.0.0 || >=18.0.0" 353 | }, 354 | "funding": { 355 | "type": "opencollective", 356 | "url": "https://opencollective.com/typescript-eslint" 357 | } 358 | }, 359 | "node_modules/@typescript-eslint/typescript-estree": { 360 | "version": "6.21.0", 361 | "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.21.0.tgz", 362 | "integrity": "sha512-6npJTkZcO+y2/kr+z0hc4HwNfrrP4kNYh57ek7yCNlrBjWQ1Y0OS7jiZTkgumrvkX5HkEKXFZkkdFNkaW2wmUQ==", 363 | "dev": true, 364 | "dependencies": { 365 | "@typescript-eslint/types": "6.21.0", 366 | "@typescript-eslint/visitor-keys": "6.21.0", 367 | "debug": "^4.3.4", 368 | "globby": "^11.1.0", 369 | "is-glob": "^4.0.3", 370 | "minimatch": "9.0.3", 371 | "semver": "^7.5.4", 372 | "ts-api-utils": "^1.0.1" 373 | }, 374 | "engines": { 375 | "node": "^16.0.0 || >=18.0.0" 376 | }, 377 | "funding": { 378 | "type": "opencollective", 379 | "url": "https://opencollective.com/typescript-eslint" 380 | }, 381 | "peerDependenciesMeta": { 382 | "typescript": { 383 | "optional": true 384 | } 385 | } 386 | }, 387 | "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { 388 | "version": "2.0.1", 389 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", 390 | "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", 391 | "dev": true, 392 | "dependencies": { 393 | "balanced-match": "^1.0.0" 394 | } 395 | }, 396 | "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { 397 | "version": "9.0.3", 398 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", 399 | "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", 400 | "dev": true, 401 | "dependencies": { 402 | "brace-expansion": "^2.0.1" 403 | }, 404 | "engines": { 405 | "node": ">=16 || 14 >=14.17" 406 | }, 407 | "funding": { 408 | "url": "https://github.com/sponsors/isaacs" 409 | } 410 | }, 411 | "node_modules/@typescript-eslint/visitor-keys": { 412 | "version": "6.21.0", 413 | "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.21.0.tgz", 414 | "integrity": "sha512-JJtkDduxLi9bivAB+cYOVMtbkqdPOhZ+ZI5LC47MIRrDV4Yn2o+ZnW10Nkmr28xRpSpdJ6Sm42Hjf2+REYXm0A==", 415 | "dev": true, 416 | "dependencies": { 417 | "@typescript-eslint/types": "6.21.0", 418 | "eslint-visitor-keys": "^3.4.1" 419 | }, 420 | "engines": { 421 | "node": "^16.0.0 || >=18.0.0" 422 | }, 423 | "funding": { 424 | "type": "opencollective", 425 | "url": "https://opencollective.com/typescript-eslint" 426 | } 427 | }, 428 | "node_modules/@ungap/structured-clone": { 429 | "version": "1.2.0", 430 | "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", 431 | "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", 432 | "dev": true 433 | }, 434 | "node_modules/acorn": { 435 | "version": "8.11.3", 436 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", 437 | "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", 438 | "dev": true, 439 | "bin": { 440 | "acorn": "bin/acorn" 441 | }, 442 | "engines": { 443 | "node": ">=0.4.0" 444 | } 445 | }, 446 | "node_modules/acorn-jsx": { 447 | "version": "5.3.2", 448 | "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", 449 | "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", 450 | "dev": true, 451 | "peerDependencies": { 452 | "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" 453 | } 454 | }, 455 | "node_modules/ajv": { 456 | "version": "6.12.6", 457 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", 458 | "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", 459 | "dev": true, 460 | "dependencies": { 461 | "fast-deep-equal": "^3.1.1", 462 | "fast-json-stable-stringify": "^2.0.0", 463 | "json-schema-traverse": "^0.4.1", 464 | "uri-js": "^4.2.2" 465 | }, 466 | "funding": { 467 | "type": "github", 468 | "url": "https://github.com/sponsors/epoberezkin" 469 | } 470 | }, 471 | "node_modules/ansi-regex": { 472 | "version": "5.0.1", 473 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 474 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 475 | "dev": true, 476 | "engines": { 477 | "node": ">=8" 478 | } 479 | }, 480 | "node_modules/ansi-styles": { 481 | "version": "4.3.0", 482 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 483 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 484 | "dev": true, 485 | "dependencies": { 486 | "color-convert": "^2.0.1" 487 | }, 488 | "engines": { 489 | "node": ">=8" 490 | }, 491 | "funding": { 492 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 493 | } 494 | }, 495 | "node_modules/argparse": { 496 | "version": "2.0.1", 497 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", 498 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", 499 | "dev": true 500 | }, 501 | "node_modules/array-union": { 502 | "version": "2.1.0", 503 | "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", 504 | "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", 505 | "dev": true, 506 | "engines": { 507 | "node": ">=8" 508 | } 509 | }, 510 | "node_modules/arrify": { 511 | "version": "2.0.1", 512 | "resolved": "https://registry.npmjs.org/arrify/-/arrify-2.0.1.tgz", 513 | "integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==", 514 | "dev": true, 515 | "engines": { 516 | "node": ">=8" 517 | } 518 | }, 519 | "node_modules/balanced-match": { 520 | "version": "1.0.2", 521 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 522 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 523 | "dev": true 524 | }, 525 | "node_modules/boolify": { 526 | "version": "1.0.1", 527 | "resolved": "https://registry.npmjs.org/boolify/-/boolify-1.0.1.tgz", 528 | "integrity": "sha512-ma2q0Tc760dW54CdOyJjhrg/a54317o1zYADQJFgperNGKIKgAUGIcKnuMiff8z57+yGlrGNEt4lPgZfCgTJgA==", 529 | "dev": true 530 | }, 531 | "node_modules/brace-expansion": { 532 | "version": "1.1.11", 533 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 534 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 535 | "dev": true, 536 | "dependencies": { 537 | "balanced-match": "^1.0.0", 538 | "concat-map": "0.0.1" 539 | } 540 | }, 541 | "node_modules/braces": { 542 | "version": "3.0.2", 543 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 544 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 545 | "dev": true, 546 | "dependencies": { 547 | "fill-range": "^7.0.1" 548 | }, 549 | "engines": { 550 | "node": ">=8" 551 | } 552 | }, 553 | "node_modules/callsites": { 554 | "version": "3.1.0", 555 | "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", 556 | "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", 557 | "dev": true, 558 | "engines": { 559 | "node": ">=6" 560 | } 561 | }, 562 | "node_modules/camelcase": { 563 | "version": "8.0.0", 564 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-8.0.0.tgz", 565 | "integrity": "sha512-8WB3Jcas3swSvjIeA2yvCJ+Miyz5l1ZmB6HFb9R1317dt9LCQoswg/BGrmAmkWVEszSrrg4RwmO46qIm2OEnSA==", 566 | "dev": true, 567 | "engines": { 568 | "node": ">=16" 569 | }, 570 | "funding": { 571 | "url": "https://github.com/sponsors/sindresorhus" 572 | } 573 | }, 574 | "node_modules/camelcase-keys": { 575 | "version": "9.1.3", 576 | "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-9.1.3.tgz", 577 | "integrity": "sha512-Rircqi9ch8AnZscQcsA1C47NFdaO3wukpmIRzYcDOrmvgt78hM/sj5pZhZNec2NM12uk5vTwRHZ4anGcrC4ZTg==", 578 | "dev": true, 579 | "dependencies": { 580 | "camelcase": "^8.0.0", 581 | "map-obj": "5.0.0", 582 | "quick-lru": "^6.1.1", 583 | "type-fest": "^4.3.2" 584 | }, 585 | "engines": { 586 | "node": ">=16" 587 | }, 588 | "funding": { 589 | "url": "https://github.com/sponsors/sindresorhus" 590 | } 591 | }, 592 | "node_modules/camelcase-keys/node_modules/type-fest": { 593 | "version": "4.10.2", 594 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.10.2.tgz", 595 | "integrity": "sha512-anpAG63wSpdEbLwOqH8L84urkL6PiVIov3EMmgIhhThevh9aiMQov+6Btx0wldNcvm4wV+e2/Rt1QdDwKHFbHw==", 596 | "dev": true, 597 | "engines": { 598 | "node": ">=16" 599 | }, 600 | "funding": { 601 | "url": "https://github.com/sponsors/sindresorhus" 602 | } 603 | }, 604 | "node_modules/chalk": { 605 | "version": "4.1.2", 606 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", 607 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", 608 | "dev": true, 609 | "dependencies": { 610 | "ansi-styles": "^4.1.0", 611 | "supports-color": "^7.1.0" 612 | }, 613 | "engines": { 614 | "node": ">=10" 615 | }, 616 | "funding": { 617 | "url": "https://github.com/chalk/chalk?sponsor=1" 618 | } 619 | }, 620 | "node_modules/cliui": { 621 | "version": "8.0.1", 622 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", 623 | "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", 624 | "dev": true, 625 | "dependencies": { 626 | "string-width": "^4.2.0", 627 | "strip-ansi": "^6.0.1", 628 | "wrap-ansi": "^7.0.0" 629 | }, 630 | "engines": { 631 | "node": ">=12" 632 | } 633 | }, 634 | "node_modules/cliui/node_modules/emoji-regex": { 635 | "version": "8.0.0", 636 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 637 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 638 | "dev": true 639 | }, 640 | "node_modules/cliui/node_modules/string-width": { 641 | "version": "4.2.3", 642 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 643 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 644 | "dev": true, 645 | "dependencies": { 646 | "emoji-regex": "^8.0.0", 647 | "is-fullwidth-code-point": "^3.0.0", 648 | "strip-ansi": "^6.0.1" 649 | }, 650 | "engines": { 651 | "node": ">=8" 652 | } 653 | }, 654 | "node_modules/cliui/node_modules/wrap-ansi": { 655 | "version": "7.0.0", 656 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", 657 | "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", 658 | "dev": true, 659 | "dependencies": { 660 | "ansi-styles": "^4.0.0", 661 | "string-width": "^4.1.0", 662 | "strip-ansi": "^6.0.0" 663 | }, 664 | "engines": { 665 | "node": ">=10" 666 | }, 667 | "funding": { 668 | "url": "https://github.com/chalk/wrap-ansi?sponsor=1" 669 | } 670 | }, 671 | "node_modules/color-convert": { 672 | "version": "2.0.1", 673 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 674 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 675 | "dev": true, 676 | "dependencies": { 677 | "color-name": "~1.1.4" 678 | }, 679 | "engines": { 680 | "node": ">=7.0.0" 681 | } 682 | }, 683 | "node_modules/color-name": { 684 | "version": "1.1.4", 685 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 686 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 687 | "dev": true 688 | }, 689 | "node_modules/common-tags": { 690 | "version": "1.8.2", 691 | "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.2.tgz", 692 | "integrity": "sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==", 693 | "dev": true, 694 | "engines": { 695 | "node": ">=4.0.0" 696 | } 697 | }, 698 | "node_modules/concat-map": { 699 | "version": "0.0.1", 700 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 701 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 702 | "dev": true 703 | }, 704 | "node_modules/core-js": { 705 | "version": "3.35.1", 706 | "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.35.1.tgz", 707 | "integrity": "sha512-IgdsbxNyMskrTFxa9lWHyMwAJU5gXOPP+1yO+K59d50VLVAIDAbs7gIv705KzALModfK3ZrSZTPNpC0PQgIZuw==", 708 | "dev": true, 709 | "hasInstallScript": true, 710 | "funding": { 711 | "type": "opencollective", 712 | "url": "https://opencollective.com/core-js" 713 | } 714 | }, 715 | "node_modules/cross-spawn": { 716 | "version": "7.0.3", 717 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", 718 | "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", 719 | "dev": true, 720 | "dependencies": { 721 | "path-key": "^3.1.0", 722 | "shebang-command": "^2.0.0", 723 | "which": "^2.0.1" 724 | }, 725 | "engines": { 726 | "node": ">= 8" 727 | } 728 | }, 729 | "node_modules/debug": { 730 | "version": "4.3.4", 731 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", 732 | "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", 733 | "dev": true, 734 | "dependencies": { 735 | "ms": "2.1.2" 736 | }, 737 | "engines": { 738 | "node": ">=6.0" 739 | }, 740 | "peerDependenciesMeta": { 741 | "supports-color": { 742 | "optional": true 743 | } 744 | } 745 | }, 746 | "node_modules/deep-is": { 747 | "version": "0.1.4", 748 | "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", 749 | "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", 750 | "dev": true 751 | }, 752 | "node_modules/dir-glob": { 753 | "version": "3.0.1", 754 | "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", 755 | "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", 756 | "dev": true, 757 | "dependencies": { 758 | "path-type": "^4.0.0" 759 | }, 760 | "engines": { 761 | "node": ">=8" 762 | } 763 | }, 764 | "node_modules/dlv": { 765 | "version": "1.1.3", 766 | "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", 767 | "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==", 768 | "dev": true 769 | }, 770 | "node_modules/doctrine": { 771 | "version": "3.0.0", 772 | "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", 773 | "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", 774 | "dev": true, 775 | "dependencies": { 776 | "esutils": "^2.0.2" 777 | }, 778 | "engines": { 779 | "node": ">=6.0.0" 780 | } 781 | }, 782 | "node_modules/eastasianwidth": { 783 | "version": "0.2.0", 784 | "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", 785 | "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", 786 | "dev": true 787 | }, 788 | "node_modules/emoji-regex": { 789 | "version": "9.2.2", 790 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", 791 | "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", 792 | "dev": true 793 | }, 794 | "node_modules/escalade": { 795 | "version": "3.1.2", 796 | "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", 797 | "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", 798 | "dev": true, 799 | "engines": { 800 | "node": ">=6" 801 | } 802 | }, 803 | "node_modules/escape-string-regexp": { 804 | "version": "4.0.0", 805 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", 806 | "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", 807 | "dev": true, 808 | "engines": { 809 | "node": ">=10" 810 | }, 811 | "funding": { 812 | "url": "https://github.com/sponsors/sindresorhus" 813 | } 814 | }, 815 | "node_modules/eslint": { 816 | "version": "8.56.0", 817 | "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.56.0.tgz", 818 | "integrity": "sha512-Go19xM6T9puCOWntie1/P997aXxFsOi37JIHRWI514Hc6ZnaHGKY9xFhrU65RT6CcBEzZoGG1e6Nq+DT04ZtZQ==", 819 | "dev": true, 820 | "dependencies": { 821 | "@eslint-community/eslint-utils": "^4.2.0", 822 | "@eslint-community/regexpp": "^4.6.1", 823 | "@eslint/eslintrc": "^2.1.4", 824 | "@eslint/js": "8.56.0", 825 | "@humanwhocodes/config-array": "^0.11.13", 826 | "@humanwhocodes/module-importer": "^1.0.1", 827 | "@nodelib/fs.walk": "^1.2.8", 828 | "@ungap/structured-clone": "^1.2.0", 829 | "ajv": "^6.12.4", 830 | "chalk": "^4.0.0", 831 | "cross-spawn": "^7.0.2", 832 | "debug": "^4.3.2", 833 | "doctrine": "^3.0.0", 834 | "escape-string-regexp": "^4.0.0", 835 | "eslint-scope": "^7.2.2", 836 | "eslint-visitor-keys": "^3.4.3", 837 | "espree": "^9.6.1", 838 | "esquery": "^1.4.2", 839 | "esutils": "^2.0.2", 840 | "fast-deep-equal": "^3.1.3", 841 | "file-entry-cache": "^6.0.1", 842 | "find-up": "^5.0.0", 843 | "glob-parent": "^6.0.2", 844 | "globals": "^13.19.0", 845 | "graphemer": "^1.4.0", 846 | "ignore": "^5.2.0", 847 | "imurmurhash": "^0.1.4", 848 | "is-glob": "^4.0.0", 849 | "is-path-inside": "^3.0.3", 850 | "js-yaml": "^4.1.0", 851 | "json-stable-stringify-without-jsonify": "^1.0.1", 852 | "levn": "^0.4.1", 853 | "lodash.merge": "^4.6.2", 854 | "minimatch": "^3.1.2", 855 | "natural-compare": "^1.4.0", 856 | "optionator": "^0.9.3", 857 | "strip-ansi": "^6.0.1", 858 | "text-table": "^0.2.0" 859 | }, 860 | "bin": { 861 | "eslint": "bin/eslint.js" 862 | }, 863 | "engines": { 864 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 865 | }, 866 | "funding": { 867 | "url": "https://opencollective.com/eslint" 868 | } 869 | }, 870 | "node_modules/eslint-scope": { 871 | "version": "7.2.2", 872 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", 873 | "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", 874 | "dev": true, 875 | "dependencies": { 876 | "esrecurse": "^4.3.0", 877 | "estraverse": "^5.2.0" 878 | }, 879 | "engines": { 880 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 881 | }, 882 | "funding": { 883 | "url": "https://opencollective.com/eslint" 884 | } 885 | }, 886 | "node_modules/eslint-visitor-keys": { 887 | "version": "3.4.3", 888 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", 889 | "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", 890 | "dev": true, 891 | "engines": { 892 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 893 | }, 894 | "funding": { 895 | "url": "https://opencollective.com/eslint" 896 | } 897 | }, 898 | "node_modules/espree": { 899 | "version": "9.6.1", 900 | "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", 901 | "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", 902 | "dev": true, 903 | "dependencies": { 904 | "acorn": "^8.9.0", 905 | "acorn-jsx": "^5.3.2", 906 | "eslint-visitor-keys": "^3.4.1" 907 | }, 908 | "engines": { 909 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 910 | }, 911 | "funding": { 912 | "url": "https://opencollective.com/eslint" 913 | } 914 | }, 915 | "node_modules/esquery": { 916 | "version": "1.5.0", 917 | "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", 918 | "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", 919 | "dev": true, 920 | "dependencies": { 921 | "estraverse": "^5.1.0" 922 | }, 923 | "engines": { 924 | "node": ">=0.10" 925 | } 926 | }, 927 | "node_modules/esrecurse": { 928 | "version": "4.3.0", 929 | "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", 930 | "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", 931 | "dev": true, 932 | "dependencies": { 933 | "estraverse": "^5.2.0" 934 | }, 935 | "engines": { 936 | "node": ">=4.0" 937 | } 938 | }, 939 | "node_modules/estraverse": { 940 | "version": "5.3.0", 941 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 942 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 943 | "dev": true, 944 | "engines": { 945 | "node": ">=4.0" 946 | } 947 | }, 948 | "node_modules/esutils": { 949 | "version": "2.0.3", 950 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", 951 | "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", 952 | "dev": true, 953 | "engines": { 954 | "node": ">=0.10.0" 955 | } 956 | }, 957 | "node_modules/fast-deep-equal": { 958 | "version": "3.1.3", 959 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", 960 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", 961 | "dev": true 962 | }, 963 | "node_modules/fast-glob": { 964 | "version": "3.3.2", 965 | "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", 966 | "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", 967 | "dev": true, 968 | "dependencies": { 969 | "@nodelib/fs.stat": "^2.0.2", 970 | "@nodelib/fs.walk": "^1.2.3", 971 | "glob-parent": "^5.1.2", 972 | "merge2": "^1.3.0", 973 | "micromatch": "^4.0.4" 974 | }, 975 | "engines": { 976 | "node": ">=8.6.0" 977 | } 978 | }, 979 | "node_modules/fast-glob/node_modules/glob-parent": { 980 | "version": "5.1.2", 981 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 982 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 983 | "dev": true, 984 | "dependencies": { 985 | "is-glob": "^4.0.1" 986 | }, 987 | "engines": { 988 | "node": ">= 6" 989 | } 990 | }, 991 | "node_modules/fast-json-stable-stringify": { 992 | "version": "2.1.0", 993 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", 994 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", 995 | "dev": true 996 | }, 997 | "node_modules/fast-levenshtein": { 998 | "version": "2.0.6", 999 | "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", 1000 | "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", 1001 | "dev": true 1002 | }, 1003 | "node_modules/fastq": { 1004 | "version": "1.17.1", 1005 | "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", 1006 | "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", 1007 | "dev": true, 1008 | "dependencies": { 1009 | "reusify": "^1.0.4" 1010 | } 1011 | }, 1012 | "node_modules/file-entry-cache": { 1013 | "version": "6.0.1", 1014 | "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", 1015 | "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", 1016 | "dev": true, 1017 | "dependencies": { 1018 | "flat-cache": "^3.0.4" 1019 | }, 1020 | "engines": { 1021 | "node": "^10.12.0 || >=12.0.0" 1022 | } 1023 | }, 1024 | "node_modules/fill-range": { 1025 | "version": "7.0.1", 1026 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 1027 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 1028 | "dev": true, 1029 | "dependencies": { 1030 | "to-regex-range": "^5.0.1" 1031 | }, 1032 | "engines": { 1033 | "node": ">=8" 1034 | } 1035 | }, 1036 | "node_modules/find-up": { 1037 | "version": "5.0.0", 1038 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", 1039 | "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", 1040 | "dev": true, 1041 | "dependencies": { 1042 | "locate-path": "^6.0.0", 1043 | "path-exists": "^4.0.0" 1044 | }, 1045 | "engines": { 1046 | "node": ">=10" 1047 | }, 1048 | "funding": { 1049 | "url": "https://github.com/sponsors/sindresorhus" 1050 | } 1051 | }, 1052 | "node_modules/flat-cache": { 1053 | "version": "3.2.0", 1054 | "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", 1055 | "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", 1056 | "dev": true, 1057 | "dependencies": { 1058 | "flatted": "^3.2.9", 1059 | "keyv": "^4.5.3", 1060 | "rimraf": "^3.0.2" 1061 | }, 1062 | "engines": { 1063 | "node": "^10.12.0 || >=12.0.0" 1064 | } 1065 | }, 1066 | "node_modules/flatted": { 1067 | "version": "3.2.9", 1068 | "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.9.tgz", 1069 | "integrity": "sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==", 1070 | "dev": true 1071 | }, 1072 | "node_modules/foreground-child": { 1073 | "version": "3.1.1", 1074 | "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", 1075 | "integrity": "sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==", 1076 | "dev": true, 1077 | "dependencies": { 1078 | "cross-spawn": "^7.0.0", 1079 | "signal-exit": "^4.0.1" 1080 | }, 1081 | "engines": { 1082 | "node": ">=14" 1083 | }, 1084 | "funding": { 1085 | "url": "https://github.com/sponsors/isaacs" 1086 | } 1087 | }, 1088 | "node_modules/fs.realpath": { 1089 | "version": "1.0.0", 1090 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 1091 | "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", 1092 | "dev": true 1093 | }, 1094 | "node_modules/get-caller-file": { 1095 | "version": "2.0.5", 1096 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", 1097 | "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", 1098 | "dev": true, 1099 | "engines": { 1100 | "node": "6.* || 8.* || >= 10.*" 1101 | } 1102 | }, 1103 | "node_modules/get-stdin": { 1104 | "version": "8.0.0", 1105 | "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-8.0.0.tgz", 1106 | "integrity": "sha512-sY22aA6xchAzprjyqmSEQv4UbAAzRN0L2dQB0NlN5acTTK9Don6nhoc3eAbUnpZiCANAMfd/+40kVdKfFygohg==", 1107 | "dev": true, 1108 | "engines": { 1109 | "node": ">=10" 1110 | }, 1111 | "funding": { 1112 | "url": "https://github.com/sponsors/sindresorhus" 1113 | } 1114 | }, 1115 | "node_modules/glob": { 1116 | "version": "10.3.10", 1117 | "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz", 1118 | "integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==", 1119 | "dev": true, 1120 | "dependencies": { 1121 | "foreground-child": "^3.1.0", 1122 | "jackspeak": "^2.3.5", 1123 | "minimatch": "^9.0.1", 1124 | "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", 1125 | "path-scurry": "^1.10.1" 1126 | }, 1127 | "bin": { 1128 | "glob": "dist/esm/bin.mjs" 1129 | }, 1130 | "engines": { 1131 | "node": ">=16 || 14 >=14.17" 1132 | }, 1133 | "funding": { 1134 | "url": "https://github.com/sponsors/isaacs" 1135 | } 1136 | }, 1137 | "node_modules/glob-parent": { 1138 | "version": "6.0.2", 1139 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", 1140 | "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", 1141 | "dev": true, 1142 | "dependencies": { 1143 | "is-glob": "^4.0.3" 1144 | }, 1145 | "engines": { 1146 | "node": ">=10.13.0" 1147 | } 1148 | }, 1149 | "node_modules/glob/node_modules/brace-expansion": { 1150 | "version": "2.0.1", 1151 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", 1152 | "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", 1153 | "dev": true, 1154 | "dependencies": { 1155 | "balanced-match": "^1.0.0" 1156 | } 1157 | }, 1158 | "node_modules/glob/node_modules/minimatch": { 1159 | "version": "9.0.3", 1160 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", 1161 | "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", 1162 | "dev": true, 1163 | "dependencies": { 1164 | "brace-expansion": "^2.0.1" 1165 | }, 1166 | "engines": { 1167 | "node": ">=16 || 14 >=14.17" 1168 | }, 1169 | "funding": { 1170 | "url": "https://github.com/sponsors/isaacs" 1171 | } 1172 | }, 1173 | "node_modules/globals": { 1174 | "version": "13.24.0", 1175 | "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", 1176 | "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", 1177 | "dev": true, 1178 | "dependencies": { 1179 | "type-fest": "^0.20.2" 1180 | }, 1181 | "engines": { 1182 | "node": ">=8" 1183 | }, 1184 | "funding": { 1185 | "url": "https://github.com/sponsors/sindresorhus" 1186 | } 1187 | }, 1188 | "node_modules/globby": { 1189 | "version": "11.1.0", 1190 | "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", 1191 | "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", 1192 | "dev": true, 1193 | "dependencies": { 1194 | "array-union": "^2.1.0", 1195 | "dir-glob": "^3.0.1", 1196 | "fast-glob": "^3.2.9", 1197 | "ignore": "^5.2.0", 1198 | "merge2": "^1.4.1", 1199 | "slash": "^3.0.0" 1200 | }, 1201 | "engines": { 1202 | "node": ">=10" 1203 | }, 1204 | "funding": { 1205 | "url": "https://github.com/sponsors/sindresorhus" 1206 | } 1207 | }, 1208 | "node_modules/graphemer": { 1209 | "version": "1.4.0", 1210 | "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", 1211 | "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", 1212 | "dev": true 1213 | }, 1214 | "node_modules/has-ansi": { 1215 | "version": "2.0.0", 1216 | "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", 1217 | "integrity": "sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==", 1218 | "dev": true, 1219 | "dependencies": { 1220 | "ansi-regex": "^2.0.0" 1221 | }, 1222 | "engines": { 1223 | "node": ">=0.10.0" 1224 | } 1225 | }, 1226 | "node_modules/has-ansi/node_modules/ansi-regex": { 1227 | "version": "2.1.1", 1228 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", 1229 | "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", 1230 | "dev": true, 1231 | "engines": { 1232 | "node": ">=0.10.0" 1233 | } 1234 | }, 1235 | "node_modules/has-flag": { 1236 | "version": "4.0.0", 1237 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 1238 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 1239 | "dev": true, 1240 | "engines": { 1241 | "node": ">=8" 1242 | } 1243 | }, 1244 | "node_modules/ignore": { 1245 | "version": "5.3.1", 1246 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", 1247 | "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", 1248 | "dev": true, 1249 | "engines": { 1250 | "node": ">= 4" 1251 | } 1252 | }, 1253 | "node_modules/import-fresh": { 1254 | "version": "3.3.0", 1255 | "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", 1256 | "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", 1257 | "dev": true, 1258 | "dependencies": { 1259 | "parent-module": "^1.0.0", 1260 | "resolve-from": "^4.0.0" 1261 | }, 1262 | "engines": { 1263 | "node": ">=6" 1264 | }, 1265 | "funding": { 1266 | "url": "https://github.com/sponsors/sindresorhus" 1267 | } 1268 | }, 1269 | "node_modules/imurmurhash": { 1270 | "version": "0.1.4", 1271 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 1272 | "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", 1273 | "dev": true, 1274 | "engines": { 1275 | "node": ">=0.8.19" 1276 | } 1277 | }, 1278 | "node_modules/indent-string": { 1279 | "version": "4.0.0", 1280 | "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", 1281 | "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", 1282 | "dev": true, 1283 | "engines": { 1284 | "node": ">=8" 1285 | } 1286 | }, 1287 | "node_modules/inflight": { 1288 | "version": "1.0.6", 1289 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 1290 | "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", 1291 | "dev": true, 1292 | "dependencies": { 1293 | "once": "^1.3.0", 1294 | "wrappy": "1" 1295 | } 1296 | }, 1297 | "node_modules/inherits": { 1298 | "version": "2.0.4", 1299 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 1300 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 1301 | "dev": true 1302 | }, 1303 | "node_modules/is-extglob": { 1304 | "version": "2.1.1", 1305 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 1306 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 1307 | "dev": true, 1308 | "engines": { 1309 | "node": ">=0.10.0" 1310 | } 1311 | }, 1312 | "node_modules/is-fullwidth-code-point": { 1313 | "version": "3.0.0", 1314 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 1315 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", 1316 | "dev": true, 1317 | "engines": { 1318 | "node": ">=8" 1319 | } 1320 | }, 1321 | "node_modules/is-glob": { 1322 | "version": "4.0.3", 1323 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 1324 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 1325 | "dev": true, 1326 | "dependencies": { 1327 | "is-extglob": "^2.1.1" 1328 | }, 1329 | "engines": { 1330 | "node": ">=0.10.0" 1331 | } 1332 | }, 1333 | "node_modules/is-number": { 1334 | "version": "7.0.0", 1335 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 1336 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 1337 | "dev": true, 1338 | "engines": { 1339 | "node": ">=0.12.0" 1340 | } 1341 | }, 1342 | "node_modules/is-path-inside": { 1343 | "version": "3.0.3", 1344 | "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", 1345 | "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", 1346 | "dev": true, 1347 | "engines": { 1348 | "node": ">=8" 1349 | } 1350 | }, 1351 | "node_modules/isexe": { 1352 | "version": "2.0.0", 1353 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 1354 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", 1355 | "dev": true 1356 | }, 1357 | "node_modules/jackspeak": { 1358 | "version": "2.3.6", 1359 | "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", 1360 | "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==", 1361 | "dev": true, 1362 | "dependencies": { 1363 | "@isaacs/cliui": "^8.0.2" 1364 | }, 1365 | "engines": { 1366 | "node": ">=14" 1367 | }, 1368 | "funding": { 1369 | "url": "https://github.com/sponsors/isaacs" 1370 | }, 1371 | "optionalDependencies": { 1372 | "@pkgjs/parseargs": "^0.11.0" 1373 | } 1374 | }, 1375 | "node_modules/js-yaml": { 1376 | "version": "4.1.0", 1377 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", 1378 | "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", 1379 | "dev": true, 1380 | "dependencies": { 1381 | "argparse": "^2.0.1" 1382 | }, 1383 | "bin": { 1384 | "js-yaml": "bin/js-yaml.js" 1385 | } 1386 | }, 1387 | "node_modules/json-buffer": { 1388 | "version": "3.0.1", 1389 | "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", 1390 | "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", 1391 | "dev": true 1392 | }, 1393 | "node_modules/json-schema-traverse": { 1394 | "version": "0.4.1", 1395 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 1396 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", 1397 | "dev": true 1398 | }, 1399 | "node_modules/json-stable-stringify-without-jsonify": { 1400 | "version": "1.0.1", 1401 | "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", 1402 | "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", 1403 | "dev": true 1404 | }, 1405 | "node_modules/keyv": { 1406 | "version": "4.5.4", 1407 | "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", 1408 | "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", 1409 | "dev": true, 1410 | "dependencies": { 1411 | "json-buffer": "3.0.1" 1412 | } 1413 | }, 1414 | "node_modules/levn": { 1415 | "version": "0.4.1", 1416 | "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", 1417 | "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", 1418 | "dev": true, 1419 | "dependencies": { 1420 | "prelude-ls": "^1.2.1", 1421 | "type-check": "~0.4.0" 1422 | }, 1423 | "engines": { 1424 | "node": ">= 0.8.0" 1425 | } 1426 | }, 1427 | "node_modules/locate-path": { 1428 | "version": "6.0.0", 1429 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", 1430 | "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", 1431 | "dev": true, 1432 | "dependencies": { 1433 | "p-locate": "^5.0.0" 1434 | }, 1435 | "engines": { 1436 | "node": ">=10" 1437 | }, 1438 | "funding": { 1439 | "url": "https://github.com/sponsors/sindresorhus" 1440 | } 1441 | }, 1442 | "node_modules/lodash": { 1443 | "version": "4.17.21", 1444 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", 1445 | "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", 1446 | "dev": true 1447 | }, 1448 | "node_modules/lodash.memoize": { 1449 | "version": "4.1.2", 1450 | "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", 1451 | "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", 1452 | "dev": true 1453 | }, 1454 | "node_modules/lodash.merge": { 1455 | "version": "4.6.2", 1456 | "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", 1457 | "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", 1458 | "dev": true 1459 | }, 1460 | "node_modules/loglevel": { 1461 | "version": "1.9.1", 1462 | "resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.9.1.tgz", 1463 | "integrity": "sha512-hP3I3kCrDIMuRwAwHltphhDM1r8i55H33GgqjXbrisuJhF4kRhW1dNuxsRklp4bXl8DSdLaNLuiL4A/LWRfxvg==", 1464 | "dev": true, 1465 | "engines": { 1466 | "node": ">= 0.6.0" 1467 | }, 1468 | "funding": { 1469 | "type": "tidelift", 1470 | "url": "https://tidelift.com/funding/github/npm/loglevel" 1471 | } 1472 | }, 1473 | "node_modules/loglevel-colored-level-prefix": { 1474 | "version": "1.0.0", 1475 | "resolved": "https://registry.npmjs.org/loglevel-colored-level-prefix/-/loglevel-colored-level-prefix-1.0.0.tgz", 1476 | "integrity": "sha512-u45Wcxxc+SdAlh4yeF/uKlC1SPUPCy0gullSNKXod5I4bmifzk+Q4lSLExNEVn19tGaJipbZ4V4jbFn79/6mVA==", 1477 | "dev": true, 1478 | "dependencies": { 1479 | "chalk": "^1.1.3", 1480 | "loglevel": "^1.4.1" 1481 | } 1482 | }, 1483 | "node_modules/loglevel-colored-level-prefix/node_modules/ansi-regex": { 1484 | "version": "2.1.1", 1485 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", 1486 | "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", 1487 | "dev": true, 1488 | "engines": { 1489 | "node": ">=0.10.0" 1490 | } 1491 | }, 1492 | "node_modules/loglevel-colored-level-prefix/node_modules/ansi-styles": { 1493 | "version": "2.2.1", 1494 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", 1495 | "integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==", 1496 | "dev": true, 1497 | "engines": { 1498 | "node": ">=0.10.0" 1499 | } 1500 | }, 1501 | "node_modules/loglevel-colored-level-prefix/node_modules/chalk": { 1502 | "version": "1.1.3", 1503 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", 1504 | "integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==", 1505 | "dev": true, 1506 | "dependencies": { 1507 | "ansi-styles": "^2.2.1", 1508 | "escape-string-regexp": "^1.0.2", 1509 | "has-ansi": "^2.0.0", 1510 | "strip-ansi": "^3.0.0", 1511 | "supports-color": "^2.0.0" 1512 | }, 1513 | "engines": { 1514 | "node": ">=0.10.0" 1515 | } 1516 | }, 1517 | "node_modules/loglevel-colored-level-prefix/node_modules/escape-string-regexp": { 1518 | "version": "1.0.5", 1519 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 1520 | "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", 1521 | "dev": true, 1522 | "engines": { 1523 | "node": ">=0.8.0" 1524 | } 1525 | }, 1526 | "node_modules/loglevel-colored-level-prefix/node_modules/strip-ansi": { 1527 | "version": "3.0.1", 1528 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", 1529 | "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", 1530 | "dev": true, 1531 | "dependencies": { 1532 | "ansi-regex": "^2.0.0" 1533 | }, 1534 | "engines": { 1535 | "node": ">=0.10.0" 1536 | } 1537 | }, 1538 | "node_modules/loglevel-colored-level-prefix/node_modules/supports-color": { 1539 | "version": "2.0.0", 1540 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", 1541 | "integrity": "sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==", 1542 | "dev": true, 1543 | "engines": { 1544 | "node": ">=0.8.0" 1545 | } 1546 | }, 1547 | "node_modules/lru-cache": { 1548 | "version": "10.2.0", 1549 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.0.tgz", 1550 | "integrity": "sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==", 1551 | "dev": true, 1552 | "engines": { 1553 | "node": "14 || >=16.14" 1554 | } 1555 | }, 1556 | "node_modules/make-plural": { 1557 | "version": "7.3.0", 1558 | "resolved": "https://registry.npmjs.org/make-plural/-/make-plural-7.3.0.tgz", 1559 | "integrity": "sha512-/K3BC0KIsO+WK2i94LkMPv3wslMrazrQhfi5We9fMbLlLjzoOSJWr7TAdupLlDWaJcWxwoNosBkhFDejiu5VDw==", 1560 | "dev": true 1561 | }, 1562 | "node_modules/map-obj": { 1563 | "version": "5.0.0", 1564 | "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-5.0.0.tgz", 1565 | "integrity": "sha512-2L3MIgJynYrZ3TYMriLDLWocz15okFakV6J12HXvMXDHui2x/zgChzg1u9mFFGbbGWE+GsLpQByt4POb9Or+uA==", 1566 | "dev": true, 1567 | "engines": { 1568 | "node": "^12.20.0 || ^14.13.1 || >=16.0.0" 1569 | }, 1570 | "funding": { 1571 | "url": "https://github.com/sponsors/sindresorhus" 1572 | } 1573 | }, 1574 | "node_modules/merge2": { 1575 | "version": "1.4.1", 1576 | "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", 1577 | "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", 1578 | "dev": true, 1579 | "engines": { 1580 | "node": ">= 8" 1581 | } 1582 | }, 1583 | "node_modules/micromatch": { 1584 | "version": "4.0.5", 1585 | "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", 1586 | "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", 1587 | "dev": true, 1588 | "dependencies": { 1589 | "braces": "^3.0.2", 1590 | "picomatch": "^2.3.1" 1591 | }, 1592 | "engines": { 1593 | "node": ">=8.6" 1594 | } 1595 | }, 1596 | "node_modules/minimatch": { 1597 | "version": "3.1.2", 1598 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 1599 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 1600 | "dev": true, 1601 | "dependencies": { 1602 | "brace-expansion": "^1.1.7" 1603 | }, 1604 | "engines": { 1605 | "node": "*" 1606 | } 1607 | }, 1608 | "node_modules/minipass": { 1609 | "version": "7.0.4", 1610 | "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.4.tgz", 1611 | "integrity": "sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==", 1612 | "dev": true, 1613 | "engines": { 1614 | "node": ">=16 || 14 >=14.17" 1615 | } 1616 | }, 1617 | "node_modules/moo": { 1618 | "version": "0.5.2", 1619 | "resolved": "https://registry.npmjs.org/moo/-/moo-0.5.2.tgz", 1620 | "integrity": "sha512-iSAJLHYKnX41mKcJKjqvnAN9sf0LMDTXDEvFv+ffuRR9a1MIuXLjMNL6EsnDHSkKLTWNqQQ5uo61P4EbU4NU+Q==", 1621 | "dev": true 1622 | }, 1623 | "node_modules/ms": { 1624 | "version": "2.1.2", 1625 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1626 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 1627 | "dev": true 1628 | }, 1629 | "node_modules/natural-compare": { 1630 | "version": "1.4.0", 1631 | "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", 1632 | "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", 1633 | "dev": true 1634 | }, 1635 | "node_modules/once": { 1636 | "version": "1.4.0", 1637 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1638 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", 1639 | "dev": true, 1640 | "dependencies": { 1641 | "wrappy": "1" 1642 | } 1643 | }, 1644 | "node_modules/optionator": { 1645 | "version": "0.9.3", 1646 | "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", 1647 | "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", 1648 | "dev": true, 1649 | "dependencies": { 1650 | "@aashutoshrathi/word-wrap": "^1.2.3", 1651 | "deep-is": "^0.1.3", 1652 | "fast-levenshtein": "^2.0.6", 1653 | "levn": "^0.4.1", 1654 | "prelude-ls": "^1.2.1", 1655 | "type-check": "^0.4.0" 1656 | }, 1657 | "engines": { 1658 | "node": ">= 0.8.0" 1659 | } 1660 | }, 1661 | "node_modules/p-limit": { 1662 | "version": "3.1.0", 1663 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", 1664 | "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", 1665 | "dev": true, 1666 | "dependencies": { 1667 | "yocto-queue": "^0.1.0" 1668 | }, 1669 | "engines": { 1670 | "node": ">=10" 1671 | }, 1672 | "funding": { 1673 | "url": "https://github.com/sponsors/sindresorhus" 1674 | } 1675 | }, 1676 | "node_modules/p-locate": { 1677 | "version": "5.0.0", 1678 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", 1679 | "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", 1680 | "dev": true, 1681 | "dependencies": { 1682 | "p-limit": "^3.0.2" 1683 | }, 1684 | "engines": { 1685 | "node": ">=10" 1686 | }, 1687 | "funding": { 1688 | "url": "https://github.com/sponsors/sindresorhus" 1689 | } 1690 | }, 1691 | "node_modules/parent-module": { 1692 | "version": "1.0.1", 1693 | "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", 1694 | "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", 1695 | "dev": true, 1696 | "dependencies": { 1697 | "callsites": "^3.0.0" 1698 | }, 1699 | "engines": { 1700 | "node": ">=6" 1701 | } 1702 | }, 1703 | "node_modules/path-exists": { 1704 | "version": "4.0.0", 1705 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", 1706 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", 1707 | "dev": true, 1708 | "engines": { 1709 | "node": ">=8" 1710 | } 1711 | }, 1712 | "node_modules/path-is-absolute": { 1713 | "version": "1.0.1", 1714 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1715 | "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", 1716 | "dev": true, 1717 | "engines": { 1718 | "node": ">=0.10.0" 1719 | } 1720 | }, 1721 | "node_modules/path-key": { 1722 | "version": "3.1.1", 1723 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", 1724 | "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", 1725 | "dev": true, 1726 | "engines": { 1727 | "node": ">=8" 1728 | } 1729 | }, 1730 | "node_modules/path-scurry": { 1731 | "version": "1.10.1", 1732 | "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.10.1.tgz", 1733 | "integrity": "sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==", 1734 | "dev": true, 1735 | "dependencies": { 1736 | "lru-cache": "^9.1.1 || ^10.0.0", 1737 | "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" 1738 | }, 1739 | "engines": { 1740 | "node": ">=16 || 14 >=14.17" 1741 | }, 1742 | "funding": { 1743 | "url": "https://github.com/sponsors/isaacs" 1744 | } 1745 | }, 1746 | "node_modules/path-type": { 1747 | "version": "4.0.0", 1748 | "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", 1749 | "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", 1750 | "dev": true, 1751 | "engines": { 1752 | "node": ">=8" 1753 | } 1754 | }, 1755 | "node_modules/picomatch": { 1756 | "version": "2.3.1", 1757 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 1758 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 1759 | "dev": true, 1760 | "engines": { 1761 | "node": ">=8.6" 1762 | }, 1763 | "funding": { 1764 | "url": "https://github.com/sponsors/jonschlinkert" 1765 | } 1766 | }, 1767 | "node_modules/prelude-ls": { 1768 | "version": "1.2.1", 1769 | "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", 1770 | "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", 1771 | "dev": true, 1772 | "engines": { 1773 | "node": ">= 0.8.0" 1774 | } 1775 | }, 1776 | "node_modules/prettier": { 1777 | "version": "3.2.5", 1778 | "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz", 1779 | "integrity": "sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==", 1780 | "dev": true, 1781 | "bin": { 1782 | "prettier": "bin/prettier.cjs" 1783 | }, 1784 | "engines": { 1785 | "node": ">=14" 1786 | }, 1787 | "funding": { 1788 | "url": "https://github.com/prettier/prettier?sponsor=1" 1789 | } 1790 | }, 1791 | "node_modules/prettier-eslint-cli": { 1792 | "version": "8.0.1", 1793 | "resolved": "https://registry.npmjs.org/prettier-eslint-cli/-/prettier-eslint-cli-8.0.1.tgz", 1794 | "integrity": "sha512-jru4JUDHzWEtM/SOxqagU7hQTVP8BVrxO2J0qNauWZuPRld6Ea2eyNaEzIGx6I+yjmOLCsjNM+vU1AJgaW1ZSQ==", 1795 | "dev": true, 1796 | "dependencies": { 1797 | "@messageformat/core": "^3.2.0", 1798 | "@prettier/eslint": "npm:prettier-eslint@^16.1.0", 1799 | "arrify": "^2.0.1", 1800 | "boolify": "^1.0.1", 1801 | "camelcase-keys": "^9.1.0", 1802 | "chalk": "^4.1.2", 1803 | "common-tags": "^1.8.2", 1804 | "core-js": "^3.33.0", 1805 | "eslint": "^8.51.0", 1806 | "find-up": "^5.0.0", 1807 | "get-stdin": "^8.0.0", 1808 | "glob": "^10.3.10", 1809 | "ignore": "^5.2.4", 1810 | "indent-string": "^4.0.0", 1811 | "lodash.memoize": "^4.1.2", 1812 | "loglevel-colored-level-prefix": "^1.0.0", 1813 | "rxjs": "^7.8.1", 1814 | "yargs": "^17.7.2" 1815 | }, 1816 | "bin": { 1817 | "prettier-eslint": "dist/index.js" 1818 | }, 1819 | "engines": { 1820 | "node": ">=16.10.0" 1821 | }, 1822 | "peerDependencies": { 1823 | "prettier-eslint": "*" 1824 | }, 1825 | "peerDependenciesMeta": { 1826 | "prettier-eslint": { 1827 | "optional": true 1828 | } 1829 | } 1830 | }, 1831 | "node_modules/pretty-format": { 1832 | "version": "29.7.0", 1833 | "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", 1834 | "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", 1835 | "dev": true, 1836 | "dependencies": { 1837 | "@jest/schemas": "^29.6.3", 1838 | "ansi-styles": "^5.0.0", 1839 | "react-is": "^18.0.0" 1840 | }, 1841 | "engines": { 1842 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 1843 | } 1844 | }, 1845 | "node_modules/pretty-format/node_modules/ansi-styles": { 1846 | "version": "5.2.0", 1847 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", 1848 | "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", 1849 | "dev": true, 1850 | "engines": { 1851 | "node": ">=10" 1852 | }, 1853 | "funding": { 1854 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 1855 | } 1856 | }, 1857 | "node_modules/punycode": { 1858 | "version": "2.3.1", 1859 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", 1860 | "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", 1861 | "dev": true, 1862 | "engines": { 1863 | "node": ">=6" 1864 | } 1865 | }, 1866 | "node_modules/queue-microtask": { 1867 | "version": "1.2.3", 1868 | "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", 1869 | "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", 1870 | "dev": true, 1871 | "funding": [ 1872 | { 1873 | "type": "github", 1874 | "url": "https://github.com/sponsors/feross" 1875 | }, 1876 | { 1877 | "type": "patreon", 1878 | "url": "https://www.patreon.com/feross" 1879 | }, 1880 | { 1881 | "type": "consulting", 1882 | "url": "https://feross.org/support" 1883 | } 1884 | ] 1885 | }, 1886 | "node_modules/quick-lru": { 1887 | "version": "6.1.2", 1888 | "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-6.1.2.tgz", 1889 | "integrity": "sha512-AAFUA5O1d83pIHEhJwWCq/RQcRukCkn/NSm2QsTEMle5f2hP0ChI2+3Xb051PZCkLryI/Ir1MVKviT2FIloaTQ==", 1890 | "dev": true, 1891 | "engines": { 1892 | "node": ">=12" 1893 | }, 1894 | "funding": { 1895 | "url": "https://github.com/sponsors/sindresorhus" 1896 | } 1897 | }, 1898 | "node_modules/react-is": { 1899 | "version": "18.2.0", 1900 | "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", 1901 | "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", 1902 | "dev": true 1903 | }, 1904 | "node_modules/require-directory": { 1905 | "version": "2.1.1", 1906 | "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", 1907 | "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", 1908 | "dev": true, 1909 | "engines": { 1910 | "node": ">=0.10.0" 1911 | } 1912 | }, 1913 | "node_modules/require-relative": { 1914 | "version": "0.8.7", 1915 | "resolved": "https://registry.npmjs.org/require-relative/-/require-relative-0.8.7.tgz", 1916 | "integrity": "sha512-AKGr4qvHiryxRb19m3PsLRGuKVAbJLUD7E6eOaHkfKhwc+vSgVOCY5xNvm9EkolBKTOf0GrQAZKLimOCz81Khg==", 1917 | "dev": true 1918 | }, 1919 | "node_modules/resolve-from": { 1920 | "version": "4.0.0", 1921 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", 1922 | "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", 1923 | "dev": true, 1924 | "engines": { 1925 | "node": ">=4" 1926 | } 1927 | }, 1928 | "node_modules/reusify": { 1929 | "version": "1.0.4", 1930 | "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", 1931 | "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", 1932 | "dev": true, 1933 | "engines": { 1934 | "iojs": ">=1.0.0", 1935 | "node": ">=0.10.0" 1936 | } 1937 | }, 1938 | "node_modules/rimraf": { 1939 | "version": "3.0.2", 1940 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", 1941 | "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", 1942 | "dev": true, 1943 | "dependencies": { 1944 | "glob": "^7.1.3" 1945 | }, 1946 | "bin": { 1947 | "rimraf": "bin.js" 1948 | }, 1949 | "funding": { 1950 | "url": "https://github.com/sponsors/isaacs" 1951 | } 1952 | }, 1953 | "node_modules/rimraf/node_modules/glob": { 1954 | "version": "7.2.3", 1955 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", 1956 | "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", 1957 | "dev": true, 1958 | "dependencies": { 1959 | "fs.realpath": "^1.0.0", 1960 | "inflight": "^1.0.4", 1961 | "inherits": "2", 1962 | "minimatch": "^3.1.1", 1963 | "once": "^1.3.0", 1964 | "path-is-absolute": "^1.0.0" 1965 | }, 1966 | "engines": { 1967 | "node": "*" 1968 | }, 1969 | "funding": { 1970 | "url": "https://github.com/sponsors/isaacs" 1971 | } 1972 | }, 1973 | "node_modules/run-parallel": { 1974 | "version": "1.2.0", 1975 | "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", 1976 | "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", 1977 | "dev": true, 1978 | "funding": [ 1979 | { 1980 | "type": "github", 1981 | "url": "https://github.com/sponsors/feross" 1982 | }, 1983 | { 1984 | "type": "patreon", 1985 | "url": "https://www.patreon.com/feross" 1986 | }, 1987 | { 1988 | "type": "consulting", 1989 | "url": "https://feross.org/support" 1990 | } 1991 | ], 1992 | "dependencies": { 1993 | "queue-microtask": "^1.2.2" 1994 | } 1995 | }, 1996 | "node_modules/rxjs": { 1997 | "version": "7.8.1", 1998 | "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", 1999 | "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", 2000 | "dev": true, 2001 | "dependencies": { 2002 | "tslib": "^2.1.0" 2003 | } 2004 | }, 2005 | "node_modules/safe-identifier": { 2006 | "version": "0.4.2", 2007 | "resolved": "https://registry.npmjs.org/safe-identifier/-/safe-identifier-0.4.2.tgz", 2008 | "integrity": "sha512-6pNbSMW6OhAi9j+N8V+U715yBQsaWJ7eyEUaOrawX+isg5ZxhUlV1NipNtgaKHmFGiABwt+ZF04Ii+3Xjkg+8w==", 2009 | "dev": true 2010 | }, 2011 | "node_modules/semver": { 2012 | "version": "7.6.0", 2013 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", 2014 | "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", 2015 | "dev": true, 2016 | "dependencies": { 2017 | "lru-cache": "^6.0.0" 2018 | }, 2019 | "bin": { 2020 | "semver": "bin/semver.js" 2021 | }, 2022 | "engines": { 2023 | "node": ">=10" 2024 | } 2025 | }, 2026 | "node_modules/semver/node_modules/lru-cache": { 2027 | "version": "6.0.0", 2028 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", 2029 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", 2030 | "dev": true, 2031 | "dependencies": { 2032 | "yallist": "^4.0.0" 2033 | }, 2034 | "engines": { 2035 | "node": ">=10" 2036 | } 2037 | }, 2038 | "node_modules/shebang-command": { 2039 | "version": "2.0.0", 2040 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", 2041 | "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", 2042 | "dev": true, 2043 | "dependencies": { 2044 | "shebang-regex": "^3.0.0" 2045 | }, 2046 | "engines": { 2047 | "node": ">=8" 2048 | } 2049 | }, 2050 | "node_modules/shebang-regex": { 2051 | "version": "3.0.0", 2052 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", 2053 | "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", 2054 | "dev": true, 2055 | "engines": { 2056 | "node": ">=8" 2057 | } 2058 | }, 2059 | "node_modules/signal-exit": { 2060 | "version": "4.1.0", 2061 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", 2062 | "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", 2063 | "dev": true, 2064 | "engines": { 2065 | "node": ">=14" 2066 | }, 2067 | "funding": { 2068 | "url": "https://github.com/sponsors/isaacs" 2069 | } 2070 | }, 2071 | "node_modules/slash": { 2072 | "version": "3.0.0", 2073 | "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", 2074 | "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", 2075 | "dev": true, 2076 | "engines": { 2077 | "node": ">=8" 2078 | } 2079 | }, 2080 | "node_modules/string-width": { 2081 | "version": "5.1.2", 2082 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", 2083 | "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", 2084 | "dev": true, 2085 | "dependencies": { 2086 | "eastasianwidth": "^0.2.0", 2087 | "emoji-regex": "^9.2.2", 2088 | "strip-ansi": "^7.0.1" 2089 | }, 2090 | "engines": { 2091 | "node": ">=12" 2092 | }, 2093 | "funding": { 2094 | "url": "https://github.com/sponsors/sindresorhus" 2095 | } 2096 | }, 2097 | "node_modules/string-width-cjs": { 2098 | "name": "string-width", 2099 | "version": "4.2.3", 2100 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 2101 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 2102 | "dev": true, 2103 | "dependencies": { 2104 | "emoji-regex": "^8.0.0", 2105 | "is-fullwidth-code-point": "^3.0.0", 2106 | "strip-ansi": "^6.0.1" 2107 | }, 2108 | "engines": { 2109 | "node": ">=8" 2110 | } 2111 | }, 2112 | "node_modules/string-width-cjs/node_modules/emoji-regex": { 2113 | "version": "8.0.0", 2114 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 2115 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 2116 | "dev": true 2117 | }, 2118 | "node_modules/string-width/node_modules/ansi-regex": { 2119 | "version": "6.0.1", 2120 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", 2121 | "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", 2122 | "dev": true, 2123 | "engines": { 2124 | "node": ">=12" 2125 | }, 2126 | "funding": { 2127 | "url": "https://github.com/chalk/ansi-regex?sponsor=1" 2128 | } 2129 | }, 2130 | "node_modules/string-width/node_modules/strip-ansi": { 2131 | "version": "7.1.0", 2132 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", 2133 | "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", 2134 | "dev": true, 2135 | "dependencies": { 2136 | "ansi-regex": "^6.0.1" 2137 | }, 2138 | "engines": { 2139 | "node": ">=12" 2140 | }, 2141 | "funding": { 2142 | "url": "https://github.com/chalk/strip-ansi?sponsor=1" 2143 | } 2144 | }, 2145 | "node_modules/strip-ansi": { 2146 | "version": "6.0.1", 2147 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 2148 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 2149 | "dev": true, 2150 | "dependencies": { 2151 | "ansi-regex": "^5.0.1" 2152 | }, 2153 | "engines": { 2154 | "node": ">=8" 2155 | } 2156 | }, 2157 | "node_modules/strip-ansi-cjs": { 2158 | "name": "strip-ansi", 2159 | "version": "6.0.1", 2160 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 2161 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 2162 | "dev": true, 2163 | "dependencies": { 2164 | "ansi-regex": "^5.0.1" 2165 | }, 2166 | "engines": { 2167 | "node": ">=8" 2168 | } 2169 | }, 2170 | "node_modules/strip-json-comments": { 2171 | "version": "3.1.1", 2172 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", 2173 | "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", 2174 | "dev": true, 2175 | "engines": { 2176 | "node": ">=8" 2177 | }, 2178 | "funding": { 2179 | "url": "https://github.com/sponsors/sindresorhus" 2180 | } 2181 | }, 2182 | "node_modules/supports-color": { 2183 | "version": "7.2.0", 2184 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 2185 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 2186 | "dev": true, 2187 | "dependencies": { 2188 | "has-flag": "^4.0.0" 2189 | }, 2190 | "engines": { 2191 | "node": ">=8" 2192 | } 2193 | }, 2194 | "node_modules/text-table": { 2195 | "version": "0.2.0", 2196 | "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", 2197 | "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", 2198 | "dev": true 2199 | }, 2200 | "node_modules/to-regex-range": { 2201 | "version": "5.0.1", 2202 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 2203 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 2204 | "dev": true, 2205 | "dependencies": { 2206 | "is-number": "^7.0.0" 2207 | }, 2208 | "engines": { 2209 | "node": ">=8.0" 2210 | } 2211 | }, 2212 | "node_modules/ts-api-utils": { 2213 | "version": "1.2.1", 2214 | "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.2.1.tgz", 2215 | "integrity": "sha512-RIYA36cJn2WiH9Hy77hdF9r7oEwxAtB/TS9/S4Qd90Ap4z5FSiin5zEiTL44OII1Y3IIlEvxwxFUVgrHSZ/UpA==", 2216 | "dev": true, 2217 | "engines": { 2218 | "node": ">=16" 2219 | }, 2220 | "peerDependencies": { 2221 | "typescript": ">=4.2.0" 2222 | } 2223 | }, 2224 | "node_modules/tslib": { 2225 | "version": "2.6.2", 2226 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", 2227 | "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", 2228 | "dev": true 2229 | }, 2230 | "node_modules/type-check": { 2231 | "version": "0.4.0", 2232 | "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", 2233 | "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", 2234 | "dev": true, 2235 | "dependencies": { 2236 | "prelude-ls": "^1.2.1" 2237 | }, 2238 | "engines": { 2239 | "node": ">= 0.8.0" 2240 | } 2241 | }, 2242 | "node_modules/type-fest": { 2243 | "version": "0.20.2", 2244 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", 2245 | "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", 2246 | "dev": true, 2247 | "engines": { 2248 | "node": ">=10" 2249 | }, 2250 | "funding": { 2251 | "url": "https://github.com/sponsors/sindresorhus" 2252 | } 2253 | }, 2254 | "node_modules/typescript": { 2255 | "version": "5.3.3", 2256 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", 2257 | "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", 2258 | "dev": true, 2259 | "bin": { 2260 | "tsc": "bin/tsc", 2261 | "tsserver": "bin/tsserver" 2262 | }, 2263 | "engines": { 2264 | "node": ">=14.17" 2265 | } 2266 | }, 2267 | "node_modules/uri-js": { 2268 | "version": "4.4.1", 2269 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", 2270 | "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", 2271 | "dev": true, 2272 | "dependencies": { 2273 | "punycode": "^2.1.0" 2274 | } 2275 | }, 2276 | "node_modules/vue-eslint-parser": { 2277 | "version": "9.4.2", 2278 | "resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-9.4.2.tgz", 2279 | "integrity": "sha512-Ry9oiGmCAK91HrKMtCrKFWmSFWvYkpGglCeFAIqDdr9zdXmMMpJOmUJS7WWsW7fX81h6mwHmUZCQQ1E0PkSwYQ==", 2280 | "dev": true, 2281 | "dependencies": { 2282 | "debug": "^4.3.4", 2283 | "eslint-scope": "^7.1.1", 2284 | "eslint-visitor-keys": "^3.3.0", 2285 | "espree": "^9.3.1", 2286 | "esquery": "^1.4.0", 2287 | "lodash": "^4.17.21", 2288 | "semver": "^7.3.6" 2289 | }, 2290 | "engines": { 2291 | "node": "^14.17.0 || >=16.0.0" 2292 | }, 2293 | "funding": { 2294 | "url": "https://github.com/sponsors/mysticatea" 2295 | }, 2296 | "peerDependencies": { 2297 | "eslint": ">=6.0.0" 2298 | } 2299 | }, 2300 | "node_modules/which": { 2301 | "version": "2.0.2", 2302 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", 2303 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", 2304 | "dev": true, 2305 | "dependencies": { 2306 | "isexe": "^2.0.0" 2307 | }, 2308 | "bin": { 2309 | "node-which": "bin/node-which" 2310 | }, 2311 | "engines": { 2312 | "node": ">= 8" 2313 | } 2314 | }, 2315 | "node_modules/wrap-ansi": { 2316 | "version": "8.1.0", 2317 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", 2318 | "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", 2319 | "dev": true, 2320 | "dependencies": { 2321 | "ansi-styles": "^6.1.0", 2322 | "string-width": "^5.0.1", 2323 | "strip-ansi": "^7.0.1" 2324 | }, 2325 | "engines": { 2326 | "node": ">=12" 2327 | }, 2328 | "funding": { 2329 | "url": "https://github.com/chalk/wrap-ansi?sponsor=1" 2330 | } 2331 | }, 2332 | "node_modules/wrap-ansi-cjs": { 2333 | "name": "wrap-ansi", 2334 | "version": "7.0.0", 2335 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", 2336 | "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", 2337 | "dev": true, 2338 | "dependencies": { 2339 | "ansi-styles": "^4.0.0", 2340 | "string-width": "^4.1.0", 2341 | "strip-ansi": "^6.0.0" 2342 | }, 2343 | "engines": { 2344 | "node": ">=10" 2345 | }, 2346 | "funding": { 2347 | "url": "https://github.com/chalk/wrap-ansi?sponsor=1" 2348 | } 2349 | }, 2350 | "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { 2351 | "version": "8.0.0", 2352 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 2353 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 2354 | "dev": true 2355 | }, 2356 | "node_modules/wrap-ansi-cjs/node_modules/string-width": { 2357 | "version": "4.2.3", 2358 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 2359 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 2360 | "dev": true, 2361 | "dependencies": { 2362 | "emoji-regex": "^8.0.0", 2363 | "is-fullwidth-code-point": "^3.0.0", 2364 | "strip-ansi": "^6.0.1" 2365 | }, 2366 | "engines": { 2367 | "node": ">=8" 2368 | } 2369 | }, 2370 | "node_modules/wrap-ansi/node_modules/ansi-regex": { 2371 | "version": "6.0.1", 2372 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", 2373 | "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", 2374 | "dev": true, 2375 | "engines": { 2376 | "node": ">=12" 2377 | }, 2378 | "funding": { 2379 | "url": "https://github.com/chalk/ansi-regex?sponsor=1" 2380 | } 2381 | }, 2382 | "node_modules/wrap-ansi/node_modules/ansi-styles": { 2383 | "version": "6.2.1", 2384 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", 2385 | "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", 2386 | "dev": true, 2387 | "engines": { 2388 | "node": ">=12" 2389 | }, 2390 | "funding": { 2391 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 2392 | } 2393 | }, 2394 | "node_modules/wrap-ansi/node_modules/strip-ansi": { 2395 | "version": "7.1.0", 2396 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", 2397 | "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", 2398 | "dev": true, 2399 | "dependencies": { 2400 | "ansi-regex": "^6.0.1" 2401 | }, 2402 | "engines": { 2403 | "node": ">=12" 2404 | }, 2405 | "funding": { 2406 | "url": "https://github.com/chalk/strip-ansi?sponsor=1" 2407 | } 2408 | }, 2409 | "node_modules/wrappy": { 2410 | "version": "1.0.2", 2411 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 2412 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", 2413 | "dev": true 2414 | }, 2415 | "node_modules/y18n": { 2416 | "version": "5.0.8", 2417 | "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", 2418 | "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", 2419 | "dev": true, 2420 | "engines": { 2421 | "node": ">=10" 2422 | } 2423 | }, 2424 | "node_modules/yallist": { 2425 | "version": "4.0.0", 2426 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", 2427 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", 2428 | "dev": true 2429 | }, 2430 | "node_modules/yargs": { 2431 | "version": "17.7.2", 2432 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", 2433 | "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", 2434 | "dev": true, 2435 | "dependencies": { 2436 | "cliui": "^8.0.1", 2437 | "escalade": "^3.1.1", 2438 | "get-caller-file": "^2.0.5", 2439 | "require-directory": "^2.1.1", 2440 | "string-width": "^4.2.3", 2441 | "y18n": "^5.0.5", 2442 | "yargs-parser": "^21.1.1" 2443 | }, 2444 | "engines": { 2445 | "node": ">=12" 2446 | } 2447 | }, 2448 | "node_modules/yargs-parser": { 2449 | "version": "21.1.1", 2450 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", 2451 | "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", 2452 | "dev": true, 2453 | "engines": { 2454 | "node": ">=12" 2455 | } 2456 | }, 2457 | "node_modules/yargs/node_modules/emoji-regex": { 2458 | "version": "8.0.0", 2459 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 2460 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 2461 | "dev": true 2462 | }, 2463 | "node_modules/yargs/node_modules/string-width": { 2464 | "version": "4.2.3", 2465 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 2466 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 2467 | "dev": true, 2468 | "dependencies": { 2469 | "emoji-regex": "^8.0.0", 2470 | "is-fullwidth-code-point": "^3.0.0", 2471 | "strip-ansi": "^6.0.1" 2472 | }, 2473 | "engines": { 2474 | "node": ">=8" 2475 | } 2476 | }, 2477 | "node_modules/yocto-queue": { 2478 | "version": "0.1.0", 2479 | "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", 2480 | "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", 2481 | "dev": true, 2482 | "engines": { 2483 | "node": ">=10" 2484 | }, 2485 | "funding": { 2486 | "url": "https://github.com/sponsors/sindresorhus" 2487 | } 2488 | } 2489 | } 2490 | } 2491 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "discord-oauth2", 3 | "version": "2.12.1", 4 | "description": "Easily interact with discord's oauth2 API", 5 | "main": "index.js", 6 | "scripts": { 7 | "lint": "prettier-eslint ./**/*.js --list-different", 8 | "fix": "prettier-eslint ./**/*.js --write" 9 | }, 10 | "repository": { 11 | "type": "git", 12 | "url": "git+https://github.com/reboxer/discord-oauth2.git" 13 | }, 14 | "keywords": [ 15 | "api", 16 | "discord", 17 | "discordapp", 18 | "oauth2" 19 | ], 20 | "author": "reboxer", 21 | "license": "MIT", 22 | "bugs": { 23 | "url": "https://github.com/reboxer/discord-oauth2/issues" 24 | }, 25 | "homepage": "https://github.com/reboxer/discord-oauth2#readme", 26 | "devDependencies": { 27 | "eslint": "^8.56.0", 28 | "prettier-eslint-cli": "^8.0.1" 29 | } 30 | } 31 | --------------------------------------------------------------------------------