From 99469d3892bfef50450a67ef74521f7801d8408a Mon Sep 17 00:00:00 2001 From: MsRandom Date: Sat, 4 Nov 2023 22:11:37 +0300 Subject: [PATCH] Linter and formatter --- .eslintignore | 2 + .eslintrc.json | 21 + .github/workflows/validate.yml | 0 .prettierrc | 10 + README.md | 7 +- odysseus-bot/index.ts | 241 ++- odysseus-bot/tsconfig.json | 8 +- odysseus-cli/index.ts | 66 +- odysseus-cli/tsconfig.json | 8 +- odysseus/Component.ts | 180 +- odysseus/HeraclesQuest.ts | 365 ++-- odysseus/convertFtbQuests.ts | 939 +++++---- odysseus/index.ts | 6 +- odysseus/parseStringifiedNbt.ts | 176 +- odysseus/tsconfig.json | 12 +- odysseus/types.ts | 2 +- package-lock.json | 3138 +++++++++++++++++++++++++++++-- package.json | 7 + 18 files changed, 4237 insertions(+), 951 deletions(-) create mode 100644 .eslintignore create mode 100644 .eslintrc.json create mode 100644 .github/workflows/validate.yml create mode 100644 .prettierrc diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..de4d1f0 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,2 @@ +dist +node_modules diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..0afd881 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,21 @@ +{ + "env": { + "node": true, + "es2021": true + }, + "parser": "@typescript-eslint/parser", + "plugins": ["@typescript-eslint"], + "extends": [ + "eslint:recommended", + "plugin:@typescript-eslint/eslint-recommended", + "plugin:@typescript-eslint/recommended" + ], + "parserOptions": { + "ecmaVersion": "latest", + "project": [ + "./odysseus/tsconfig.json", + "./odysseus-bot/tsconfig.json", + "./odysseus-cli/tsconfig.json" + ] + } +} diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml new file mode 100644 index 0000000..e69de29 diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..dc9c47a --- /dev/null +++ b/.prettierrc @@ -0,0 +1,10 @@ +{ + "overrides": [ + { + "files": "*.ts", + "options": { + "tabWidth": 4 + } + } + ] +} diff --git a/README.md b/README.md index 9accc9f..2a0fd82 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # Odysseus + A Project Odyssey tool for converting FTB and HQM quest-packs to the [Heracles](https://github.com/terrarium-earth/Heracles) format. ## Usage @@ -7,9 +8,9 @@ Set up with `npm install` and `npm run build --workspaces`. ### Via CLI - - Place your `quests` folder (the one containing `data.snbt`) in `odysseus-cli/` - - Run `npm run start --workspace=odysseus-cli -- --input=quests` - - Copy the `output/quests/` folder to your `config/heracles/` folder. +- Place your `quests` folder (the one containing `data.snbt`) in `odysseus-cli/` +- Run `npm run start --workspace=odysseus-cli -- --input=quests` +- Copy the `output/quests/` folder to your `config/heracles/` folder. ### Via Discord Bot diff --git a/odysseus-bot/index.ts b/odysseus-bot/index.ts index 38318de..102b4d0 100644 --- a/odysseus-bot/index.ts +++ b/odysseus-bot/index.ts @@ -1,100 +1,123 @@ -import express, {Request} from 'express'; -import nacl from 'tweetnacl'; +import express, { Request } from "express"; +import nacl from "tweetnacl"; import { APIApplicationCommandInteractionDataAttachmentOption, APIApplicationCommandInteractionDataOption, APIApplicationCommandInteractionDataStringOption, - APIDMInteraction, APIEmbed, + APIDMInteraction, APIGuildInteraction, APIInteractionResponse, APIPingInteraction, ApplicationCommandType, InteractionResponseType, InteractionType, - MessageFlags, RESTPatchAPIWebhookWithTokenMessageJSONBody, - Routes -} from 'discord-api-types/v10'; + MessageFlags, + RESTPatchAPIWebhookWithTokenMessageJSONBody, + Routes, +} from "discord-api-types/v10"; import JSZip from "jszip"; import axios from "axios"; -import {REST} from "@discordjs/rest"; -import {convertFtbQuests, QuestInputFileSystem, QuestOutputFileSystem} from 'odysseus'; -import {EmbedBuilder} from "@discordjs/builders"; +import { REST } from "@discordjs/rest"; +import { + convertFtbQuests, + QuestInputFileSystem, + QuestOutputFileSystem, +} from "odysseus"; +import { EmbedBuilder } from "@discordjs/builders"; const publicKey = process.env.CLIENT_PUBLIC_KEY; const discordToken = process.env.DISCORD_TOKEN; const port = process.env.PORT ? parseInt(process.env.PORT) : 80; if (!publicKey) { - throw new Error('CLIENT_PUBLIC_KEY was not defined.'); + throw new Error("CLIENT_PUBLIC_KEY was not defined."); } if (!discordToken) { - throw new Error('DISCORD_TOKEN was not defined.'); + throw new Error("DISCORD_TOKEN was not defined."); } const app = express(); const rest = new REST().setToken(discordToken); -app.use(express.text({type: '*/*'})); +app.use(express.text({ type: "*/*" })); -async function handleInteraction(interaction: APIPingInteraction | APIDMInteraction | APIGuildInteraction, respond: (response: APIInteractionResponse) => void) { +async function handleInteraction( + interaction: APIPingInteraction | APIDMInteraction | APIGuildInteraction, + respond: (response: APIInteractionResponse) => void, +) { if (interaction.type === InteractionType.Ping) { - return respond({type: InteractionResponseType.Pong}); + return respond({ type: InteractionResponseType.Pong }); } - if (!(interaction.type === InteractionType.ApplicationCommand && interaction.data.type === ApplicationCommandType.ChatInput)) { + if ( + !( + interaction.type === InteractionType.ApplicationCommand && + interaction.data.type === ApplicationCommandType.ChatInput + ) + ) { return; } const options = interaction.data.options; - const getOption = (name: string) => options?.find((option): option is T => option.name === name) + const getOption = ( + name: string, + ) => options?.find((option): option is T => option.name === name); - const questDataOption = getOption('quest-file'); - const typeOption = getOption('type'); - const questDataAttachment = questDataOption ? interaction.data.resolved?.attachments?.[questDataOption.value] : undefined; + const questDataOption = + getOption( + "quest-file", + ); + const typeOption = + getOption("type"); + const questDataAttachment = questDataOption + ? interaction.data.resolved?.attachments?.[questDataOption.value] + : undefined; if (!questDataAttachment) { return respond({ type: InteractionResponseType.ChannelMessageWithSource, data: { - content: 'No quest file specified.', - flags: MessageFlags.Ephemeral - } + content: "No quest file specified.", + flags: MessageFlags.Ephemeral, + }, }); } - let type: 'ftb' | 'hqm'; + let type: "ftb" | "hqm"; if (typeOption) { - if (typeOption.value !== 'ftb' && typeOption.value !== 'hqm') { + if (typeOption.value !== "ftb" && typeOption.value !== "hqm") { return respond({ type: InteractionResponseType.ChannelMessageWithSource, data: { content: `Invalid quest type ${typeOption.value}`, - flags: MessageFlags.Ephemeral - } + flags: MessageFlags.Ephemeral, + }, }); } type = typeOption.value; - } else if (questDataAttachment.filename.endsWith('.zip')) { - type = 'ftb'; + } else if (questDataAttachment.filename.endsWith(".zip")) { + type = "ftb"; } else { - type = 'hqm'; + type = "hqm"; } - if (type === 'hqm') { + if (type === "hqm") { return respond({ type: InteractionResponseType.ChannelMessageWithSource, data: { content: `HQM quests are not yet supported!`, - flags: MessageFlags.Ephemeral - } + flags: MessageFlags.Ephemeral, + }, }); } - const buffer = await axios.get(questDataAttachment.url, {responseType: 'arraybuffer'}).then(response => Buffer.from(response.data, 'binary')); + const buffer = await axios + .get(questDataAttachment.url, { responseType: "arraybuffer" }) + .then((response) => Buffer.from(response.data, "binary")); const inputZip = await JSZip.loadAsync(buffer); const outputZip = new JSZip(); @@ -106,7 +129,7 @@ async function handleInteraction(interaction: APIPingInteraction | APIDMInteract throw new Error(`File not found: ${name}`); } - return file.async('text'); + return file.async("text"); }, readDirectory(name: string) { @@ -118,10 +141,14 @@ async function handleInteraction(interaction: APIPingInteraction | APIDMInteract const fileContents: Promise<[data: string, name: string]>[] = []; - folder.forEach((name, file) => fileContents.push(file.async('text').then(data => [data, name]))); + folder.forEach((name, file) => + fileContents.push( + file.async("text").then((data) => [data, name]), + ), + ); return Promise.all(fileContents); - } + }, }; const outputFileSystem: QuestOutputFileSystem = { @@ -129,90 +156,116 @@ async function handleInteraction(interaction: APIPingInteraction | APIDMInteract outputZip.file(name, data); return Promise.resolve(); - } + }, }; respond({ type: InteractionResponseType.DeferredChannelMessageWithSource, - data: {flags: MessageFlags.Ephemeral} + data: { flags: MessageFlags.Ephemeral }, }); - const warningsEmbed = new EmbedBuilder().setTitle('Errors Encountered'); + const warningsEmbed = new EmbedBuilder().setTitle("Errors Encountered"); const warnings = await convertFtbQuests(inputFileSystem, outputFileSystem); if (warnings.length) { - warningsEmbed.setDescription(warnings.join('\n\n')); + warningsEmbed.setDescription(warnings.join("\n\n")); } else { - warningsEmbed.setDescription('None! :)'); + warningsEmbed.setDescription("None! :)"); } const body: RESTPatchAPIWebhookWithTokenMessageJSONBody = { - content: 'The resulting quest-pack is attached below.', - attachments: [{id: '0'}], - embeds: [warningsEmbed.toJSON()] + content: "The resulting quest-pack is attached below.", + attachments: [{ id: "0" }], + embeds: [warningsEmbed.toJSON()], }; - await rest.patch(Routes.webhookMessage(interaction.application_id, interaction.token), { - body, - files: [{ - name: 'quests.zip', - data: Buffer.from(await outputZip.generateAsync({type: 'binarystring'}), 'binary'), - contentType: 'application/zip' - }] - }); + await rest.patch( + Routes.webhookMessage(interaction.application_id, interaction.token), + { + body, + files: [ + { + name: "quests.zip", + data: Buffer.from( + await outputZip.generateAsync({ type: "binarystring" }), + "binary", + ), + contentType: "application/zip", + }, + ], + }, + ); } -app.post('/', async (request: Request, response) => { - const signature = request.get('X-Signature-Ed25519'); - const timestamp = request.get('X-Signature-Timestamp'); - - if (!request.body || !signature || !timestamp) { - response.status(401).end('Invalid Request Signature'); - return; - } - - const isVerified = nacl.sign.detached.verify( - Buffer.from(timestamp + request.body), - Buffer.from(signature, 'hex'), - Buffer.from(publicKey, 'hex') - ); +app.post( + "/", + async ( + request: Request, + response, + ) => { + const signature = request.get("X-Signature-Ed25519"); + const timestamp = request.get("X-Signature-Timestamp"); + + if (!request.body || !signature || !timestamp) { + response.status(401).end("Invalid Request Signature"); + return; + } - if (!isVerified) { - response.status(401).end('Invalid Request Signature'); - return; - } + const isVerified = nacl.sign.detached.verify( + Buffer.from(timestamp + request.body), + Buffer.from(signature, "hex"), + Buffer.from(publicKey, "hex"), + ); - let responded = false; + if (!isVerified) { + response.status(401).end("Invalid Request Signature"); + return; + } - const interaction: APIPingInteraction | APIDMInteraction | APIGuildInteraction = JSON.parse(request.body); + let responded = false; - try { - await handleInteraction(interaction, interactionResponse => { - responded = true; + const interaction: + | APIPingInteraction + | APIDMInteraction + | APIGuildInteraction = JSON.parse(request.body); - response.json(interactionResponse); - }); - } catch (error: unknown) { - console.error(error); + try { + await handleInteraction(interaction, (interactionResponse) => { + responded = true; - const message = error && typeof error === 'object' && 'message' in error ? `${error.message}` : null; + response.json(interactionResponse); + }); + } catch (error: unknown) { + console.error(error); - const data = { - content: `An error has occurred: ${message}`, - flags: MessageFlags.Ephemeral - }; + const message = + error && typeof error === "object" && "message" in error + ? `${error.message}` + : null; - if (responded) { - await rest.patch(Routes.webhookMessage(interaction.application_id, interaction.token), {body: data}); - } else { - const interactionResponse: APIInteractionResponse = { - type: InteractionResponseType.ChannelMessageWithSource, - data + const data = { + content: `An error has occurred: ${message}`, + flags: MessageFlags.Ephemeral, }; - response.json(interactionResponse); + if (responded) { + await rest.patch( + Routes.webhookMessage( + interaction.application_id, + interaction.token, + ), + { body: data }, + ); + } else { + const interactionResponse: APIInteractionResponse = { + type: InteractionResponseType.ChannelMessageWithSource, + data, + }; + + response.json(interactionResponse); + } } - } -}); + }, +); -app.listen(port, () => console.info('Awaiting Interactions')); +app.listen(port, () => console.info("Awaiting Interactions")); diff --git a/odysseus-bot/tsconfig.json b/odysseus-bot/tsconfig.json index b9e7c89..2e643e6 100644 --- a/odysseus-bot/tsconfig.json +++ b/odysseus-bot/tsconfig.json @@ -9,10 +9,6 @@ "strict": true, "target": "ES2021" }, - "exclude": [ - "node_modules" - ], - "lib": [ - "es2021" - ] + "exclude": ["node_modules"], + "lib": ["es2021"] } diff --git a/odysseus-cli/index.ts b/odysseus-cli/index.ts index 0efa7d2..617d0ff 100644 --- a/odysseus-cli/index.ts +++ b/odysseus-cli/index.ts @@ -1,17 +1,21 @@ -import process from 'process'; +import process from "process"; import fs from "fs"; -import {promisify} from "util"; -import {convertFtbQuests, QuestInputFileSystem, QuestOutputFileSystem} from "odysseus"; +import { promisify } from "util"; +import { + convertFtbQuests, + QuestInputFileSystem, + QuestOutputFileSystem, +} from "odysseus"; const args = process.argv.slice(2); -let type: 'ftb' | 'hqm' | null = null; +let type: "ftb" | "hqm" | null = null; let inputPath: string | null = null; let outputPath: string | null = null; for (let i = 0; i < args.length; ++i) { const argument = args[i]; - const equals = argument.indexOf('='); + const equals = argument.indexOf("="); let argumentType: string; let argumentValue: string; @@ -21,36 +25,38 @@ for (let i = 0; i < args.length; ++i) { argumentValue = argument.substring(equals + 1); } else { argumentType = args[i].toLowerCase(); - const nextArgument = args[(i++) + 1]; + const nextArgument = args[i++ + 1]; if (!nextArgument) { - throw new Error('Invalid argument list, no value provided for ' + argumentType); + throw new Error( + "Invalid argument list, no value provided for " + argumentType, + ); } argumentValue = nextArgument; } - if (argumentType === '--type' || argumentType === '-t') { + if (argumentType === "--type" || argumentType === "-t") { const typeArgument = argumentType.toLowerCase(); - if (typeArgument !== 'ftb' && typeArgument !== 'hqm') { + if (typeArgument !== "ftb" && typeArgument !== "hqm") { throw new Error(`Invalid type argument ${typeArgument}`); } type = typeArgument; } - if (argumentType === '--input' || argumentType === '-i') { + if (argumentType === "--input" || argumentType === "-i") { inputPath = argumentValue; } - if (argumentType === '--output' || argumentType === '-o') { + if (argumentType === "--output" || argumentType === "-o") { outputPath = argumentValue; } } if (!inputPath) { - throw new Error('No input specified, use --input or -i'); + throw new Error("No input specified, use --input or -i"); } const writeFile = promisify(fs.writeFile); @@ -61,15 +67,20 @@ const exists = promisify(fs.exists); if (!type) { if (fs.statSync(inputPath).isDirectory()) { - type = 'ftb'; - } else if (inputPath.substring(inputPath.lastIndexOf('.') + 1).toLowerCase() === 'json') { - type = 'hqm'; + type = "ftb"; + } else if ( + inputPath.substring(inputPath.lastIndexOf(".") + 1).toLowerCase() === + "json" + ) { + type = "hqm"; } else { - throw new Error('No type specified and couldn\'t infer from input, use --type or -t'); + throw new Error( + "No type specified and couldn't infer from input, use --type or -t", + ); } } -const output = outputPath ?? './output'; +const output = outputPath ?? "./output"; const inputFileSystem: QuestInputFileSystem = { async readFile(name: string) { @@ -80,24 +91,33 @@ const inputFileSystem: QuestInputFileSystem = { const path = `${inputPath}/${name}`; const doesExist = await exists(path); - return doesExist ? Promise.all((await readDir(path)).map(async file => [(await readFile(`${path}/${file}`)).toString(), file])) : []; - } + return doesExist + ? Promise.all( + (await readDir(path)).map(async (file) => [ + (await readFile(`${path}/${file}`)).toString(), + file, + ]), + ) + : []; + }, }; const outputFileSystem: QuestOutputFileSystem = { async writeFile(name: string, data: string) { const path = `${output}/${name}`; - await mkdir(path.substring(0, path.lastIndexOf('/')), {recursive: true}); + await mkdir(path.substring(0, path.lastIndexOf("/")), { + recursive: true, + }); return writeFile(path, data); }, }; -if (type === 'ftb') { +if (type === "ftb") { convertFtbQuests(inputFileSystem, outputFileSystem) - .then(warnings => console.warn(warnings.join('\n'))) + .then((warnings) => console.warn(warnings.join("\n"))) .catch(console.error); } else { - throw new Error('HQM is not yet supported!'); + throw new Error("HQM is not yet supported!"); } diff --git a/odysseus-cli/tsconfig.json b/odysseus-cli/tsconfig.json index b9e7c89..2e643e6 100644 --- a/odysseus-cli/tsconfig.json +++ b/odysseus-cli/tsconfig.json @@ -9,10 +9,6 @@ "strict": true, "target": "ES2021" }, - "exclude": [ - "node_modules" - ], - "lib": [ - "es2021" - ] + "exclude": ["node_modules"], + "lib": ["es2021"] } diff --git a/odysseus/Component.ts b/odysseus/Component.ts index f38c3f0..6f35675 100644 --- a/odysseus/Component.ts +++ b/odysseus/Component.ts @@ -1,87 +1,111 @@ -import {Json} from "./Json"; +import { Json } from "./Json"; -type NbtData = { - block: string; -} | { - entity: string; -} | { - storage: string; -}; +type NbtData = + | { + block: string; + } + | { + entity: string; + } + | { + storage: string; + }; -type ComponentObject = string | ({ - text: string; -} | { - translate: string; - fallback?: string; - with?: (Component | Json)[]; -} | { - score: string; - objective: string; -} | { - selector: string; - separator?: Component; -} | { - keybind: string; -} | ({ - nbt: string; - separator?: Component; - interpret?: boolean; -} & NbtData) & { - extra?: Component[]; - style: { - bold?: boolean; - italic?: boolean; - underlined?: boolean; - strikethrough?: boolean; - obfuscated?: boolean; +type ComponentObject = + | string + | ( + | { + text: string; + } + | { + translate: string; + fallback?: string; + with?: (Component | Json)[]; + } + | { + score: string; + objective: string; + } + | { + selector: string; + separator?: Component; + } + | { + keybind: string; + } + | (({ + nbt: string; + separator?: Component; + interpret?: boolean; + } & NbtData) & { + extra?: Component[]; + style: { + bold?: boolean; + italic?: boolean; + underlined?: boolean; + strikethrough?: boolean; + obfuscated?: boolean; - color?: - `#${string}` | - 'black' | - 'dark_blue' | - 'dark_green' | - 'dark_aqua' | - 'dark_red' | - 'dark_purple' | - 'gold' | - 'gray' | - 'dark_gray' | - 'blue' | - 'green' | - 'aqua' | - 'red' | - 'light_purple' | - 'yellow' | - 'white'; + color?: + | `#${string}` + | "black" + | "dark_blue" + | "dark_green" + | "dark_aqua" + | "dark_red" + | "dark_purple" + | "gold" + | "gray" + | "dark_gray" + | "blue" + | "green" + | "aqua" + | "red" + | "light_purple" + | "yellow" + | "white"; - insertion?: string; + insertion?: string; - clickEvent?: { - action?: 'open_url' | 'open_file' | 'run_command' | 'suggest_command' | 'change_page' | 'copy_to_clipboard'; - value?: string; - }; + clickEvent?: { + action?: + | "open_url" + | "open_file" + | "run_command" + | "suggest_command" + | "change_page" + | "copy_to_clipboard"; + value?: string; + }; - hoverEvent?: {action?: null} | { - action: 'show_text'; - contents: Component; - } | { - action: 'show_item'; - contents: string | { - id: string; - count?: number; - tag?: string; - }; - } | { - action: 'show_entity'; - contents?: { - type: string; - id: string; - name: Component; - }; - }; + hoverEvent?: + | { action?: null } + | { + action: "show_text"; + contents: Component; + } + | { + action: "show_item"; + contents: + | string + | { + id: string; + count?: number; + tag?: string; + }; + } + | { + action: "show_entity"; + contents?: { + type: string; + id: string; + name: Component; + }; + }; - font: string; - } | null; -}); + font: string; + } | null; + }) + ); export type Component = ComponentObject | ComponentObject[]; diff --git a/odysseus/HeraclesQuest.ts b/odysseus/HeraclesQuest.ts index 5e41fb3..c8b99e3 100644 --- a/odysseus/HeraclesQuest.ts +++ b/odysseus/HeraclesQuest.ts @@ -1,16 +1,23 @@ -import {Component} from "./Component"; -import {JsonObject} from "./Json"; -import {RegistryValue, ResourceLocation} from "./types"; +import { Component } from "./Component"; +import { JsonObject } from "./Json"; +import { RegistryValue, ResourceLocation } from "./types"; -type NumericRange = number | null | { - min?: number; - max?: number; -} +type NumericRange = + | number + | null + | { + min?: number; + max?: number; + }; -type StateProperties = Record; +type StateProperties = Record< + string, + | string + | { + min?: string; + max?: string; + } +>; type LocationPredicate = { position?: { @@ -46,12 +53,15 @@ type LocationPredicate = { } | null; } | null; -type EffectsPredicate = Record | null; +type EffectsPredicate = Record< + ResourceLocation, + { + amplifier?: NumericRange; + duration?: NumericRange; + ambient?: boolean; + visible?: boolean; + } +> | null; type EntityFlags = { is_on_fire?: boolean; @@ -103,37 +113,57 @@ type EntityPredicate = { mainhand?: ItemPredicate; offhand?: ItemPredicate; } | null; - type_specific?: { - type?: 'any'; - } | { - type: 'lightning'; - blocks_set_on_fire?: NumericRange; - entity_struck?: EntityPredicate; - } | { - type: 'fishing_hook'; - in_open_water?: boolean; - } | { - type: 'player'; - level?: NumericRange; - gamemode?: 'survival' | 'creative' | 'adventure' | 'spectator'; - stats?: { - type: ResourceLocation; - stat: ResourceLocation; - value: NumericRange; - }[]; - recipes?: Record; - advancements?: Record>; - looking_at?: EntityPredicate; - } | { - type: 'slime'; - size?: NumericRange; - } | { - type: 'cat' | 'frog' | 'villager' | 'painting'; - variant: ResourceLocation; - } | { - type: 'axolotl' | 'boat' | 'fox' | 'mooshroom' | 'rabbit' | 'horse' | 'llama' | 'parrot' | 'tropical_fish'; - variant: string; - } | null; + type_specific?: + | { + type?: "any"; + } + | { + type: "lightning"; + blocks_set_on_fire?: NumericRange; + entity_struck?: EntityPredicate; + } + | { + type: "fishing_hook"; + in_open_water?: boolean; + } + | { + type: "player"; + level?: NumericRange; + gamemode?: "survival" | "creative" | "adventure" | "spectator"; + stats?: { + type: ResourceLocation; + stat: ResourceLocation; + value: NumericRange; + }[]; + recipes?: Record; + advancements?: Record< + ResourceLocation, + boolean | Record + >; + looking_at?: EntityPredicate; + } + | { + type: "slime"; + size?: NumericRange; + } + | { + type: "cat" | "frog" | "villager" | "painting"; + variant: ResourceLocation; + } + | { + type: + | "axolotl" + | "boat" + | "fox" + | "mooshroom" + | "rabbit" + | "horse" + | "llama" + | "parrot" + | "tropical_fish"; + variant: string; + } + | null; vehicle?: EntityPredicate; passenger?: EntityPredicate; targeted_entity?: EntityPredicate; @@ -141,114 +171,142 @@ type EntityPredicate = { } | null; export type HeraclesQuestIcon = { - type: 'heracles:item'; + type: "heracles:item"; item: ResourceLocation; }; export type HeraclesQuestElement = { title?: string; - icon?: HeraclesQuestIcon -} + icon?: HeraclesQuestIcon; +}; -export type HeraclesQuestTask = HeraclesQuestElement & ({ - type: 'heracles:advancement'; - advancements: ResourceLocation[]; -} | { - type: 'heracles:biome'; - biomes: RegistryValue; -} | { - type: 'heracles:block_interaction'; - block: RegistryValue; - state?: StateProperties; +export type HeraclesQuestTask = HeraclesQuestElement & + ( + | { + type: "heracles:advancement"; + advancements: ResourceLocation[]; + } + | { + type: "heracles:biome"; + biomes: RegistryValue; + } + | { + type: "heracles:block_interaction"; + block: RegistryValue; + state?: StateProperties; - nbt?: JsonObject; -} | { - type: 'heracles:changed_dimension'; - from?: ResourceLocation; - to?: ResourceLocation; -} | { - type: 'heracles:check'; -} | { - type: 'heracles:composite'; - amount: number; - tasks: Record; -} | { - type: 'heracles:dummy'; - value: string; - icon: HeraclesQuestIcon; - title: string; - description: string; -} | { - type: 'heracles:entity_interaction'; - entity: RegistryValue; - nbt?: JsonObject; -} | { - type: 'heracles:item'; - item: RegistryValue; - nbt?: JsonObject; - amount?: number; - collection?: 'AUTOMATIC' | 'MANUAL' | 'CONSUME'; -} | { - type: 'heracles:item_interaction'; - item: RegistryValue; - nbt?: JsonObject; -} | { - type: 'heracles:item_use'; - item: RegistryValue; - nbt?: JsonObject; -} | { - type: 'heracles:kill_entity'; - entity: { - type: ResourceLocation; - location?: LocationPredicate; - effects?: EffectsPredicate; - nbt?: string | null; - flags?: EntityFlags; - target?: EntityPredicate; - }; - amount?: number; -} | { - type: 'heracles:location'; - description: string; - predicate: LocationPredicate; -} | { - type: 'heracles:recipe'; - recipes: ResourceLocation[]; -} | { - type: 'heracles:stat'; - stat: ResourceLocation; - target: number; -} | { - type: 'heracles:structure'; - structures: RegistryValue; -} | { - type: 'heracles:xp'; - amount?: number; - xpType?: 'level' | 'points'; -}); + nbt?: JsonObject; + } + | { + type: "heracles:changed_dimension"; + from?: ResourceLocation; + to?: ResourceLocation; + } + | { + type: "heracles:check"; + } + | { + type: "heracles:composite"; + amount: number; + tasks: Record; + } + | { + type: "heracles:dummy"; + value: string; + icon: HeraclesQuestIcon; + title: string; + description: string; + } + | { + type: "heracles:entity_interaction"; + entity: RegistryValue; + nbt?: JsonObject; + } + | { + type: "heracles:item"; + item: RegistryValue; + nbt?: JsonObject; + amount?: number; + collection?: "AUTOMATIC" | "MANUAL" | "CONSUME"; + } + | { + type: "heracles:item_interaction"; + item: RegistryValue; + nbt?: JsonObject; + } + | { + type: "heracles:item_use"; + item: RegistryValue; + nbt?: JsonObject; + } + | { + type: "heracles:kill_entity"; + entity: { + type: ResourceLocation; + location?: LocationPredicate; + effects?: EffectsPredicate; + nbt?: string | null; + flags?: EntityFlags; + target?: EntityPredicate; + }; + amount?: number; + } + | { + type: "heracles:location"; + description: string; + predicate: LocationPredicate; + } + | { + type: "heracles:recipe"; + recipes: ResourceLocation[]; + } + | { + type: "heracles:stat"; + stat: ResourceLocation; + target: number; + } + | { + type: "heracles:structure"; + structures: RegistryValue; + } + | { + type: "heracles:xp"; + amount?: number; + xpType?: "level" | "points"; + } + ); -export type HeraclesQuestReward = HeraclesQuestElement & ({ - type: 'heracles:command'; - command: string; -} | { - type: 'heracles:item'; - item: ResourceLocation | { - id: ResourceLocation; - count?: number; - nbt?: JsonObject; - }; -} | { - type: 'heracles:loottable'; - loot_table: ResourceLocation; -} | { - type: 'heracles:selectable'; - amount?: number; - rewards: Record; -} | { - type: 'heracles:xp'; - xptype?: 'level' | 'points'; - amount?: number; -}); +export type HeraclesQuestReward = HeraclesQuestElement & + ( + | { + type: "heracles:command"; + command: string; + } + | { + type: "heracles:item"; + item: + | ResourceLocation + | { + id: ResourceLocation; + count?: number; + nbt?: JsonObject; + }; + } + | { + type: "heracles:loottable"; + loot_table: ResourceLocation; + } + | { + type: "heracles:selectable"; + amount?: number; + rewards: Record; + } + | { + type: "heracles:xp"; + xptype?: "level" | "points"; + amount?: number; + } + ); export type HeraclesQuest = { display?: { @@ -258,9 +316,14 @@ export type HeraclesQuest = { subtitle?: Component; description?: string[]; - groups?: Partial>; + groups?: Partial< + Record< + string, + { + position: [x: number, y: number]; + } + > + >; }; settings?: { diff --git a/odysseus/convertFtbQuests.ts b/odysseus/convertFtbQuests.ts index 3fb2409..ddf9e95 100644 --- a/odysseus/convertFtbQuests.ts +++ b/odysseus/convertFtbQuests.ts @@ -1,9 +1,14 @@ import parseStringifiedNbt from "./parseStringifiedNbt"; -import {RegistryValue, ResourceLocation, TagKey} from "./types"; -import {HeraclesQuest, HeraclesQuestIcon, HeraclesQuestReward, HeraclesQuestTask} from "./HeraclesQuest"; -import {JsonObject, Long} from "./Json"; -import {QuestInputFileSystem, QuestOutputFileSystem} from "./QuestFileSystem"; -import * as JSONBigInt from 'json-bigint' +import { RegistryValue, ResourceLocation, TagKey } from "./types"; +import { + HeraclesQuest, + HeraclesQuestIcon, + HeraclesQuestReward, + HeraclesQuestTask, +} from "./HeraclesQuest"; +import { JsonObject, Long } from "./Json"; +import { QuestInputFileSystem, QuestOutputFileSystem } from "./QuestFileSystem"; +import * as JSONBigInt from "json-bigint"; const enum ObserveType { BLOCK, @@ -12,21 +17,30 @@ const enum ObserveType { BLOCK_ENTITY, BLOCK_ENTITY_TYPE, ENTITY_TYPE, - ENTITY_TYPE_TAG + ENTITY_TYPE_TAG, } -type QuestShape = 'circle' | 'square' | 'rsquare' | 'diamond' | 'pentagon' | 'hexagon' | 'octagon' | 'gear' | 'heart'; +type QuestShape = + | "circle" + | "square" + | "rsquare" + | "diamond" + | "pentagon" + | "hexagon" + | "octagon" + | "gear" + | "heart"; type FtbId = `ftbquests:${T}` | T; type Advancement = { - type: FtbId<'advancement'>; + type: FtbId<"advancement">; advancement: ResourceLocation; criterion: string; }; type Custom = { - type: FtbId<'custom'>; + type: FtbId<"custom">; }; type ItemStack = { @@ -41,7 +55,7 @@ type FtbItem = { item: Item; count?: Long; tag?: JsonObject; -} +}; type EntityWeight = { passive?: number; @@ -70,103 +84,144 @@ type RewardTable = BasicQuestObject & { loot_table_id?: ResourceLocation; }; -type QuestTask = QuestObject & ((FtbItem & { - type: FtbId<'item'>; - consume_items?: boolean; - only_from_crafting?: boolean; - match_nbt?: boolean; - weak_nbt_match?: boolean; - task_screen_only?: boolean; -}) | { - type: FtbId<'checkmark'>; -} | Advancement | { - type: FtbId<'biome'>; - biome: RegistryValue; -} | { - type: FtbId<'dimension'>; - dimension: ResourceLocation; -} | { - type: FtbId<'energy'>; - value: Long; - max_input?: Long; -} | { - type: FtbId<'fluid'>; - fluid: ResourceLocation; - amount: Long; - nbt?: JsonObject; -} | { - type: FtbId<'kill'>; - entity: ResourceLocation; - value: Long; -} | { - type: FtbId<'location'>; - dimension: ResourceLocation; - ignore_dimension?: boolean; - - position?: [x: number, y: number, z: number]; - size?: [width: number, height: number, depth: number]; -} | ({ - type: FtbId<'observation'>; - timer: Long; -} & ({ - observe_type: ObserveType.BLOCK | ObserveType.BLOCK_ENTITY_TYPE | ObserveType.ENTITY_TYPE; - to_observe: ResourceLocation; -} | { - observe_type: ObserveType.BLOCK_TAG | ObserveType.ENTITY_TYPE_TAG; - to_observe: TagKey; -} | { - observe_type: ObserveType.BLOCK_STATE | ObserveType.BLOCK_ENTITY; - to_observe: string; -})) | { - type: FtbId<'stage'>; - stage: string; -} | { - type: FtbId<'stat'>; - stat: ResourceLocation; - value: number; -} | { - type: FtbId<'structure'>; - structure: RegistryValue; -} | { - type: FtbId<'xp'>; - value: Long; - points?: boolean; -} | Custom); - -type QuestReward = BasicQuestObject & (Advancement | { - type: FtbId<'choice'>; - table_id: Long; - table_data?: RewardTable; -} | { - type: FtbId<'command'>; - command: string; - player_command?: boolean; -} | (FtbItem & { - type: FtbId<'item'>; - random_bonus?: number; - only_one: boolean; -}) | { - type: FtbId<'loot'> | FtbId<'random'>; - table_id: string; - table_data?: RewardTable; -} | { - type: FtbId<'loot'> | FtbId<'random'>; - table: number; - table_data?: RewardTable; -} | { - type: FtbId<'stage'>; - stage: string; - remove?: boolean; -} | { - type: FtbId<'toast'>; - description: string; -} | { - type: FtbId<'xp_levels'>; - xp_levels?: number; -} | { - type: FtbId<'xp'>; - xp?: number; -} | Custom); +type QuestTask = QuestObject & + ( + | (FtbItem & { + type: FtbId<"item">; + consume_items?: boolean; + only_from_crafting?: boolean; + match_nbt?: boolean; + weak_nbt_match?: boolean; + task_screen_only?: boolean; + }) + | { + type: FtbId<"checkmark">; + } + | Advancement + | { + type: FtbId<"biome">; + biome: RegistryValue; + } + | { + type: FtbId<"dimension">; + dimension: ResourceLocation; + } + | { + type: FtbId<"energy">; + value: Long; + max_input?: Long; + } + | { + type: FtbId<"fluid">; + fluid: ResourceLocation; + amount: Long; + nbt?: JsonObject; + } + | { + type: FtbId<"kill">; + entity: ResourceLocation; + value: Long; + } + | { + type: FtbId<"location">; + dimension: ResourceLocation; + ignore_dimension?: boolean; + + position?: [x: number, y: number, z: number]; + size?: [width: number, height: number, depth: number]; + } + | ({ + type: FtbId<"observation">; + timer: Long; + } & ( + | { + observe_type: + | ObserveType.BLOCK + | ObserveType.BLOCK_ENTITY_TYPE + | ObserveType.ENTITY_TYPE; + to_observe: ResourceLocation; + } + | { + observe_type: + | ObserveType.BLOCK_TAG + | ObserveType.ENTITY_TYPE_TAG; + to_observe: TagKey; + } + | { + observe_type: + | ObserveType.BLOCK_STATE + | ObserveType.BLOCK_ENTITY; + to_observe: string; + } + )) + | { + type: FtbId<"stage">; + stage: string; + } + | { + type: FtbId<"stat">; + stat: ResourceLocation; + value: number; + } + | { + type: FtbId<"structure">; + structure: RegistryValue; + } + | { + type: FtbId<"xp">; + value: Long; + points?: boolean; + } + | Custom + ); + +type QuestReward = BasicQuestObject & + ( + | Advancement + | { + type: FtbId<"choice">; + table_id: Long; + table_data?: RewardTable; + } + | { + type: FtbId<"command">; + command: string; + player_command?: boolean; + } + | (FtbItem & { + type: FtbId<"item">; + random_bonus?: number; + only_one: boolean; + }) + | { + type: FtbId<"loot"> | FtbId<"random">; + table_id: string; + table_data?: RewardTable; + } + | { + type: FtbId<"loot"> | FtbId<"random">; + table: number; + table_data?: RewardTable; + } + | { + type: FtbId<"stage">; + stage: string; + remove?: boolean; + } + | { + type: FtbId<"toast">; + description: string; + } + | { + type: FtbId<"xp_levels">; + xp_levels?: number; + } + | { + type: FtbId<"xp">; + xp?: number; + } + | Custom + ); type QuestObject = { id: string; @@ -177,7 +232,7 @@ type QuestObject = { disable_toast?: boolean; }; -type BasicQuestObject = Omit; +type BasicQuestObject = Omit; type OrderIndex = { order_index: number; @@ -186,7 +241,12 @@ type OrderIndex = { type QuestFile = QuestObject & { default_reward_team?: boolean; default_consume_items?: boolean; - default_autoclaim_rewards?: 'default' | 'disabled' | 'enabled' | 'no_toast' | 'invisible'; + default_autoclaim_rewards?: + | "default" + | "disabled" + | "enabled" + | "no_toast" + | "invisible"; default_quest_shape?: QuestShape; default_quest_disable_jei?: boolean; @@ -241,7 +301,11 @@ type Chapter = QuestObject & { dependencies?: number[] | string[]; hide?: boolean; invisible?: boolean; - dependency_requirement: 'all_completed' | 'one_completed' | 'all_started' | 'one_started'; + dependency_requirement: + | "all_completed" + | "one_completed" + | "all_started" + | "one_started"; hide_text_until_complete?: boolean; size?: number; optional?: boolean; @@ -261,66 +325,77 @@ class ConversionError extends Error { } function convertIcon(icon: ResourceLocation | ItemStack): HeraclesQuestIcon { - const item: ResourceLocation = typeof icon === 'object' ? icon.id : icon; + const item: ResourceLocation = typeof icon === "object" ? icon.id : icon; return { - type: 'heracles:item', + type: "heracles:item", item: convertItemId(item), - } + }; } function convertItemId(id: ResourceLocation): ResourceLocation { - return id == 'ftbquests:book' ? 'heracles:quest_book' : id + return id == "ftbquests:book" ? "heracles:quest_book" : id; } function convertItemNbt(nbt: JsonObject | undefined): JsonObject | undefined { if (nbt === undefined) return undefined; - let outNbt: JsonObject = {...nbt}; + const outNbt: JsonObject = { ...nbt }; if (outNbt.Damage === 0) { - delete outNbt.Damage // Strip 0 damage requirements. FTB puts it on all damageables, and it's not often used. + delete outNbt.Damage; // Strip 0 damage requirements. FTB puts it on all damageables, and it's not often used. } return Object.keys(outNbt).length > 0 ? outNbt : undefined; } function convertItemReward(reward: FtbItem): HeraclesQuestReward { - const item = typeof reward.item === 'object' ? reward.item : {id: reward.item} + const item = + typeof reward.item === "object" ? reward.item : { id: reward.item }; return { - type: 'heracles:item', + type: "heracles:item", item: { id: convertItemId(item.id), count: truncateLong(reward.count) ?? item.Count, - nbt: convertItemNbt(reward.tag) ?? convertItemNbt(item.tag) - } - } + nbt: convertItemNbt(reward.tag) ?? convertItemNbt(item.tag), + }, + }; } -function toObject(array: T[], warnings: Set, convertor: (value: T) => R | null): Record { - return array.map(value => { - try { - const data = convertor(value); - - if (!data) { - return null; - } +function toObject( + array: T[], + warnings: Set, + convertor: (value: T) => R | null, +): Record { + return array + .map((value) => { + try { + const data = convertor(value); + + if (!data) { + return null; + } - return { - id: value.id, - data - }; - } catch (error: unknown) { - if (error instanceof ConversionError) { - warnings.add(error.message); - } else { - throw error; + return { + id: value.id, + data, + }; + } catch (error: unknown) { + if (error instanceof ConversionError) { + warnings.add(error.message); + } else { + throw error; + } } - } - }).filter((value): value is { id: string; data: R; } => Boolean(value)).reduce((existing, current) => ({ - ...existing, - [current.id]: current.data - }), {}); + }) + .filter((value): value is { id: string; data: R } => Boolean(value)) + .reduce( + (existing, current) => ({ + ...existing, + [current.id]: current.data, + }), + {}, + ); } function areNumericIds(array?: number[] | string[]): array is number[] { - return typeof array?.[0] === 'number'; + return typeof array?.[0] === "number"; } function floatCoordinateToInt(value: number) { @@ -328,117 +403,170 @@ function floatCoordinateToInt(value: number) { } function escapeFormatters(description: string[]) { - return description.map(s => s.replaceAll('§', '&&')) + return description.map((s) => s.replaceAll("§", "&&")); } function inferTitle(t: HeraclesQuestTask): string | undefined { switch (t.type) { - case 'heracles:item': return `Acquire: ${t.item}`; - case 'heracles:item_interaction': return `Interact: ${t.item}`; - case 'heracles:item_use': return `Use: ${t.item}`; - case 'heracles:stat': return `Increase ${t.stat}`; - case 'heracles:changed_dimension': return `Visit ${t.to}`; - case 'heracles:advancement': return `Complete ${t.advancements.length === 0 ? 'Advancement' : t.advancements[0]}`; - case 'heracles:structure': return `Find ${t.structures.length === 0 ? 'Structure' : t.structures[0]}`; - case 'heracles:biome': return `Visit ${t.biomes.length === 0 ? 'Biome' : t.biomes[0]}`; - case "heracles:check": return `Check this Task`; - case "heracles:block_interaction": return `Interact ${t.block}`; - case "heracles:entity_interaction": return `Interact: ${t.entity}`; - case "heracles:kill_entity": return `Kill: ${t.entity}`; - case "heracles:location": return `Visit a Location`; - case "heracles:recipe": return `Craft a Recipe`; - case "heracles:xp": return `Acquire XP`; - case "heracles:composite": return undefined; - case "heracles:dummy": return undefined; + case "heracles:item": + return `Acquire: ${t.item}`; + case "heracles:item_interaction": + return `Interact: ${t.item}`; + case "heracles:item_use": + return `Use: ${t.item}`; + case "heracles:stat": + return `Increase ${t.stat}`; + case "heracles:changed_dimension": + return `Visit ${t.to}`; + case "heracles:advancement": + return `Complete ${ + t.advancements.length === 0 ? "Advancement" : t.advancements[0] + }`; + case "heracles:structure": + return `Find ${ + t.structures.length === 0 ? "Structure" : t.structures[0] + }`; + case "heracles:biome": + return `Visit ${t.biomes.length === 0 ? "Biome" : t.biomes[0]}`; + case "heracles:check": + return `Check this Task`; + case "heracles:block_interaction": + return `Interact ${t.block}`; + case "heracles:entity_interaction": + return `Interact: ${t.entity}`; + case "heracles:kill_entity": + return `Kill: ${t.entity}`; + case "heracles:location": + return `Visit a Location`; + case "heracles:recipe": + return `Craft a Recipe`; + case "heracles:xp": + return `Acquire XP`; + case "heracles:composite": + return undefined; + case "heracles:dummy": + return undefined; } } -function inferIcon (t: HeraclesQuestTask): HeraclesQuestIcon | undefined { +function inferIcon(t: HeraclesQuestTask): HeraclesQuestIcon | undefined { switch (t.type) { - case 'heracles:item': return t.item.startsWith('#') ? undefined : convertIcon(t.item); - case 'heracles:item_interaction': return t.item.startsWith('#') ? undefined : convertIcon(t.item); - case 'heracles:item_use': return t.item.startsWith('#') ? undefined : convertIcon(t.item); - case 'heracles:stat': return convertIcon('minecraft:spyglass'); - case 'heracles:changed_dimension': return convertIcon('minecraft:netherrack'); - case 'heracles:advancement': return convertIcon('minecraft:knowledge_book'); - case 'heracles:structure': return convertIcon('minecraft:structure_block'); - case 'heracles:biome': return convertIcon('minecraft:birch_sapling'); - case "heracles:check": return convertIcon('minecraft:green_wool'); - case "heracles:block_interaction": return t.block.startsWith('#') ? undefined : convertIcon(t.block); - case "heracles:entity_interaction": return t.entity.startsWith('#') ? undefined : convertIcon(t.entity + "_spawn_egg" as RegistryValue); - case "heracles:kill_entity": return t.entity.type.startsWith('#') ? undefined : convertIcon(t.entity.type + "_spawn_egg" as RegistryValue); - case "heracles:location": return convertIcon('minecraft:compass'); - case "heracles:recipe": return convertIcon('minecraft:crafting_table'); - case "heracles:xp": return convertIcon('minecraft:experience_bottle'); - case "heracles:composite": return undefined; - case "heracles:dummy": return undefined; + case "heracles:item": + return t.item.startsWith("#") ? undefined : convertIcon(t.item); + case "heracles:item_interaction": + return t.item.startsWith("#") ? undefined : convertIcon(t.item); + case "heracles:item_use": + return t.item.startsWith("#") ? undefined : convertIcon(t.item); + case "heracles:stat": + return convertIcon("minecraft:spyglass"); + case "heracles:changed_dimension": + return convertIcon("minecraft:netherrack"); + case "heracles:advancement": + return convertIcon("minecraft:knowledge_book"); + case "heracles:structure": + return convertIcon("minecraft:structure_block"); + case "heracles:biome": + return convertIcon("minecraft:birch_sapling"); + case "heracles:check": + return convertIcon("minecraft:green_wool"); + case "heracles:block_interaction": + return t.block.startsWith("#") ? undefined : convertIcon(t.block); + case "heracles:entity_interaction": + return t.entity.startsWith("#") + ? undefined + : convertIcon((t.entity + "_spawn_egg") as RegistryValue); + case "heracles:kill_entity": + return t.entity.type.startsWith("#") + ? undefined + : convertIcon((t.entity.type + "_spawn_egg") as RegistryValue); + case "heracles:location": + return convertIcon("minecraft:compass"); + case "heracles:recipe": + return convertIcon("minecraft:crafting_table"); + case "heracles:xp": + return convertIcon("minecraft:experience_bottle"); + case "heracles:composite": + return undefined; + case "heracles:dummy": + return undefined; } } function truncateLong(value: Long | undefined) { if (value === undefined) { - return undefined + return undefined; } - return Number(value) + return Number(value); } -function iconBackgroundTexture(iconBackground: QuestShape | undefined): ResourceLocation | undefined { - return iconBackground === undefined ? undefined : `heracles:textures/gui/quest_backgrounds/${iconBackground}s.png` +function iconBackgroundTexture( + iconBackground: QuestShape | undefined, +): ResourceLocation | undefined { + return iconBackground === undefined + ? undefined + : `heracles:textures/gui/quest_backgrounds/${iconBackground}s.png`; } -export const convertFtbQuests = async (input: QuestInputFileSystem, output: QuestOutputFileSystem) => { +export const convertFtbQuests = async ( + input: QuestInputFileSystem, + output: QuestOutputFileSystem, +) => { const readSNbtFile = async (name: string) => parseStringifiedNbt(await input.readFile(name), name); const readDirectory = async (directory: string) => (await input.readDirectory(directory)).map(([data, name]) => - parseStringifiedNbt(data, `${directory}/${name}`) + parseStringifiedNbt(data, `${directory}/${name}`), ); const sortOrdered = (entries: T[]) => entries.sort((a, b) => a.order_index - b.order_index); - const [ - questFile, - groups, - chapters, - rewardTables - ] = await Promise.all([ - readSNbtFile('data.snbt').then(data => data as QuestFile), - readSNbtFile('chapter_groups.snbt').then(groups => (groups as ChapterGroups).chapter_groups), - readDirectory('chapters').then(chapters => sortOrdered(chapters as (Chapter & OrderIndex)[])), - readDirectory('reward_tables').then(tables => sortOrdered(tables as (RewardTable & OrderIndex)[])) + const [questFile, groups, chapters, rewardTables] = await Promise.all([ + readSNbtFile("data.snbt").then((data) => data as QuestFile), + readSNbtFile("chapter_groups.snbt").then( + (groups) => (groups as ChapterGroups).chapter_groups, + ), + readDirectory("chapters").then((chapters) => + sortOrdered(chapters as (Chapter & OrderIndex)[]), + ), + readDirectory("reward_tables").then((tables) => + sortOrdered(tables as (RewardTable & OrderIndex)[]), + ), ]); const outputGroups: string[] = []; - const groupedChapters = chapters.reduce>((grouped, chapter) => { - const key = chapter.group ?? ''; + const groupedChapters = chapters.reduce>( + (grouped, chapter) => { + const key = chapter.group ?? ""; - return { - ...grouped, - [key]: [...(grouped[key] ?? []), chapter] - }; - }, {}); + return { + ...grouped, + [key]: [...(grouped[key] ?? []), chapter], + }; + }, + {}, + ); const fileWrites: Promise[] = []; const warnings = new Set(); const formatString = (text: string) => { - let result = ''; + let result = ""; for (let i = 0; i < text.length; ++i) { const character = text.charAt(i); - if (character === '\\') { + if (character === "\\") { result += text.charAt(++i); continue; } - if (character === '&') { - result += '§'; + if (character === "&") { + result += "§"; continue; } @@ -450,18 +578,27 @@ export const convertFtbQuests = async (input: QuestInputFileSystem, output: Ques }; for (const group of [...groups, null]) { - const groupTitle = group?.title ? formatString(group.title) : undefined; + // TODO Use group title + //const groupTitle = group?.title ? formatString(group.title) : undefined; - for (const chapter of groupedChapters[group?.id ?? ''] ?? []) { - const chapterTitle = chapter.title ? formatString(chapter.title) : undefined; + for (const chapter of groupedChapters[group?.id ?? ""] ?? []) { + const chapterTitle = chapter.title + ? formatString(chapter.title) + : undefined; if (chapterTitle) { outputGroups.push(chapterTitle); } for (const quest of chapter.quests) { - const tasks = toObject(quest.tasks ?? [], warnings, task => convertTask(task, questFile)); - const rewards = toObject(quest.rewards ?? [], warnings, reward => convertReward(reward, rewardTables)); + const tasks = toObject(quest.tasks ?? [], warnings, (task) => + convertTask(task, questFile), + ); + const rewards = toObject( + quest.rewards ?? [], + warnings, + (reward) => convertReward(reward, rewardTables), + ); const taskIds = Object.keys(tasks); const rewardsIds = Object.keys(rewards); @@ -471,16 +608,27 @@ export const convertFtbQuests = async (input: QuestInputFileSystem, output: Ques const task = tasks[taskIds[0]]; return { title: task.title ?? inferTitle(task), - icon: task.icon ?? inferIcon(task) - } + icon: task.icon ?? inferIcon(task), + }; } - } + }; const inferredData = inferData(); - const questTitle = quest.title ? formatString(quest.title) : inferredData?.title; - const questSubtitle = quest.subtitle ? formatString(quest.subtitle) : undefined; - const questIcon = quest.icon ? convertIcon(quest.icon) : inferredData?.icon; - let hidden: "LOCKED" | "IN_PROGRESS" | "COMPLETED" | "COMPLETED_CLAIMED" | undefined = undefined; + const questTitle = quest.title + ? formatString(quest.title) + : inferredData?.title; + const questSubtitle = quest.subtitle + ? formatString(quest.subtitle) + : undefined; + const questIcon = quest.icon + ? convertIcon(quest.icon) + : inferredData?.icon; + let hidden: + | "LOCKED" + | "IN_PROGRESS" + | "COMPLETED" + | "COMPLETED_CLAIMED" + | undefined = undefined; if (quest.invisible) { hidden = "COMPLETED"; @@ -488,16 +636,22 @@ export const convertFtbQuests = async (input: QuestInputFileSystem, output: Ques hidden = "IN_PROGRESS"; } - const iconBackground = iconBackgroundTexture(quest.shape ?? chapter.default_quest_shape ?? questFile.default_quest_shape) + const iconBackground = iconBackgroundTexture( + quest.shape ?? + chapter.default_quest_shape ?? + questFile.default_quest_shape, + ); const heraclesQuest: HeraclesQuest = { settings: { - hidden + hidden, }, - dependencies: areNumericIds(quest.dependencies) ? - quest.dependencies.map(id => id.toString(16).toUpperCase()) : - quest.dependencies, + dependencies: areNumericIds(quest.dependencies) + ? quest.dependencies.map((id) => + id.toString(16).toUpperCase(), + ) + : quest.dependencies, tasks, rewards, @@ -505,51 +659,73 @@ export const convertFtbQuests = async (input: QuestInputFileSystem, output: Ques display: { title: questTitle, description: escapeFormatters([ - ...questSubtitle ? [ - ``, - '
', - ] : [], - - ...taskIds.length ? [ - ...taskIds.map(taskId => ``), - '
', - ] : [], - - ...quest.description?.map(formatString)?.map(s => s.length ? s : '
') ?? [], - - ...rewardsIds.length ? [ - '
', - ...rewardsIds.map(rewardId => ``) - ] : [], + ...(questSubtitle + ? [ + ``, + "
", + ] + : []), + + ...(taskIds.length + ? [ + ...taskIds.map( + (taskId) => + ``, + ), + "
", + ] + : []), + + ...(quest.description + ?.map(formatString) + ?.map((s) => (s.length ? s : "
")) ?? []), + + ...(rewardsIds.length + ? [ + "
", + ...rewardsIds.map( + (rewardId) => + ``, + ), + ] + : []), ]), icon: questIcon, icon_background: iconBackground, - subtitle: questSubtitle ? { - text: questSubtitle - } : undefined, - - groups: chapterTitle ? { - [chapterTitle]: { - position: [ - floatCoordinateToInt(quest.x), - floatCoordinateToInt(quest.y) - ] - } - } : undefined - } + subtitle: questSubtitle + ? { + text: questSubtitle, + } + : undefined, + + groups: chapterTitle + ? { + [chapterTitle]: { + position: [ + floatCoordinateToInt(quest.x), + floatCoordinateToInt(quest.y), + ], + }, + } + : undefined, + }, }; - const groupPart = ''; - const chapterPart = chapterTitle?.toLowerCase().replaceAll(/[^a-z0-9]/g, ''); + const groupPart = ""; + const chapterPart = chapterTitle + ?.toLowerCase() + .replaceAll(/[^a-z0-9]/g, ""); fileWrites.push( output.writeFile( - `quests/${groupPart}${chapterPart?.length ? chapterPart : chapter.title}/${quest.id}.json`, - JSONBigInt.stringify(heraclesQuest, null, 2) - ) + `quests/${groupPart}${ + chapterPart?.length ? chapterPart : chapter.title + }/${quest.id}.json`, + JSONBigInt.stringify(heraclesQuest, null, 2), + ), ); } } @@ -557,95 +733,103 @@ export const convertFtbQuests = async (input: QuestInputFileSystem, output: Ques await Promise.all([ ...fileWrites, - output.writeFile(`groups.txt`, outputGroups.join('\n')) + output.writeFile(`groups.txt`, outputGroups.join("\n")), ]); return [...warnings]; -} +}; function convertTask(task: QuestTask, questFile: QuestFile): HeraclesQuestTask { const taskBase = { title: task.title, icon: task.icon ? convertIcon(task.icon) : undefined, - } + }; switch (task.type) { case "ftbquests:checkmark": case "checkmark": { return { ...taskBase, - type: 'heracles:check', + type: "heracles:check", }; } case "ftbquests:item": - case "item": - let collectionType: 'AUTOMATIC' | 'MANUAL' | 'CONSUME' | undefined = undefined; - - if (task.consume_items === true || questFile.default_consume_items === true) { - collectionType = 'MANUAL' + case "item": { + let collectionType: "AUTOMATIC" | "MANUAL" | "CONSUME" | undefined = + undefined; + + if ( + task.consume_items === true || + questFile.default_consume_items === true + ) { + collectionType = "MANUAL"; } - if (typeof task.item === 'object') { - if (task.item.id === 'itemfilters:tag' && task.item.tag?.value) { + if (typeof task.item === "object") { + if ( + task.item.id === "itemfilters:tag" && + task.item.tag?.value + ) { return { ...taskBase, - type: 'heracles:item', + type: "heracles:item", amount: truncateLong(task.count), item: `#${task.item.tag?.value as ResourceLocation}`, - collection: collectionType - } + collection: collectionType, + }; } return { ...taskBase, - type: 'heracles:item', + type: "heracles:item", amount: truncateLong(task.count), item: convertItemId(task.item.id), collection: collectionType, - nbt: convertItemNbt(task.item.tag) + nbt: convertItemNbt(task.item.tag), }; } else { return { ...taskBase, - type: 'heracles:item', + type: "heracles:item", amount: truncateLong(task.count), item: task.item, - collection: collectionType + collection: collectionType, }; } + } case "ftbquests:advancement": case "advancement": return { ...taskBase, - type: 'heracles:advancement', - advancements: [task.advancement] + type: "heracles:advancement", + advancements: [task.advancement], }; case "ftbquests:biome": case "biome": return { ...taskBase, - type: 'heracles:biome', - biomes: task.biome + type: "heracles:biome", + biomes: task.biome, }; case "ftbquests:dimension": case "dimension": return { ...taskBase, - type: 'heracles:changed_dimension', - from: 'minecraft:overworld', - to: task.dimension - } + type: "heracles:changed_dimension", + from: "minecraft:overworld", + to: task.dimension, + }; case "ftbquests:kill": case "kill": return { ...taskBase, - type: 'heracles:kill_entity', + type: "heracles:kill_entity", amount: Number(task.value), entity: { - type: task.entity - } + type: task.entity, + }, }; case "ftbquests:location": - case "location": + case "location": { const convertCoordinate = (index: number) => { const base = task.position?.[index]; const size = task.size?.[index]; @@ -653,39 +837,40 @@ function convertTask(task: QuestTask, questFile: QuestFile): HeraclesQuestTask { if (base && size) { return { min: base - size / 2, - max: base + size / 2 + max: base + size / 2, }; } return base; - } + }; return { ...taskBase, - type: 'heracles:location', - description: '', + type: "heracles:location", + description: "", predicate: { position: { x: convertCoordinate(0), y: convertCoordinate(1), - z: convertCoordinate(2) - } - } - } + z: convertCoordinate(2), + }, + }, + }; + } case "ftbquests:stat": case "stat": return { ...taskBase, - type: 'heracles:stat', + type: "heracles:stat", stat: task.stat, - target: task.value - } + target: task.value, + }; case "ftbquests:structure": case "structure": return { ...taskBase, - type: 'heracles:structure', - structures: task.structure + type: "heracles:structure", + structures: task.structure, }; case "ftbquests:observation": case "observation": { @@ -695,88 +880,113 @@ function convertTask(task: QuestTask, questFile: QuestFile): HeraclesQuestTask { case ObserveType.BLOCK_TAG: return { ...taskBase, - type: 'heracles:block_interaction', - block: task.to_observe + type: "heracles:block_interaction", + block: task.to_observe, }; case ObserveType.BLOCK_STATE: - case ObserveType.BLOCK_ENTITY: - const stateStart = task.to_observe.indexOf('['); - const stateEnd = task.to_observe.indexOf(']'); - - const block = task.to_observe.substring(0, stateStart).trim() as ResourceLocation; - - const nbtStart = task.to_observe.indexOf('{'); - const stateString = task.to_observe.substring(stateStart + 1, stateEnd); - const nbtString = nbtStart >= 0 ? task.to_observe.substring(nbtStart + 1, task.to_observe.lastIndexOf('}')) : null; - - const state: Record = stateString.split(',') - .map(property => property.split('=')) - .reduce((existingState, property) => ({ - ...existingState, - [property[0]]: property[1] - }), {}) + case ObserveType.BLOCK_ENTITY: { + const stateStart = task.to_observe.indexOf("["); + const stateEnd = task.to_observe.indexOf("]"); + + const block = task.to_observe + .substring(0, stateStart) + .trim() as ResourceLocation; + + const nbtStart = task.to_observe.indexOf("{"); + const stateString = task.to_observe.substring( + stateStart + 1, + stateEnd, + ); + const nbtString = + nbtStart >= 0 + ? task.to_observe.substring( + nbtStart + 1, + task.to_observe.lastIndexOf("}"), + ) + : null; + + const state: Record = stateString + .split(",") + .map((property) => property.split("=")) + .reduce( + (existingState, property) => ({ + ...existingState, + [property[0]]: property[1], + }), + {}, + ); if (nbtString) { return { ...taskBase, - type: 'heracles:block_interaction', + type: "heracles:block_interaction", block, state, - nbt: JSON.parse(nbtString) as JsonObject - } + nbt: JSON.parse(nbtString) as JsonObject, + }; } return { ...taskBase, - type: 'heracles:block_interaction', + type: "heracles:block_interaction", block, - state - } + state, + }; + } case ObserveType.ENTITY_TYPE: case ObserveType.ENTITY_TYPE_TAG: return { ...taskBase, - type: 'heracles:entity_interaction', - entity: task.to_observe - } + type: "heracles:entity_interaction", + entity: task.to_observe, + }; } break; } default: - throw new ConversionError(`Don't know how to convert task of type ${task.type}.`); + throw new ConversionError( + `Don't know how to convert task of type ${task.type}.`, + ); } } -function convertReward(reward: QuestReward, rewardTables: (RewardTable & OrderIndex)[]): HeraclesQuestReward | null { +function convertReward( + reward: QuestReward, + rewardTables: (RewardTable & OrderIndex)[], +): HeraclesQuestReward | null { const rewardBase = { title: reward.title, icon: reward.icon ? convertIcon(reward.icon) : undefined, - } + }; switch (reward.type) { case "ftbquests:command": case "command": return { ...rewardBase, - type: 'heracles:command', - command: reward.command - } + type: "heracles:command", + command: reward.command, + }; case "ftbquests:item": case "item": return { ...rewardBase, - ...convertItemReward(reward) - } - case 'ftbquests:random': - case 'random': + ...convertItemReward(reward), + }; + case "ftbquests:random": + case "random": case "ftbquests:loot": case "loot": { let rewardTable: RewardTable | undefined; - if ('table' in reward) { - rewardTable = rewardTables.find(table => table.order_index === reward.table); - } else if ('table_id' in reward) { - rewardTable = rewardTables.find(table => table.id === reward.table_id); + if ("table" in reward) { + rewardTable = rewardTables.find( + (table) => table.order_index === reward.table, + ); + } else if ("table_id" in reward) { + rewardTable = rewardTables.find( + (table) => table.id === reward.table_id, + ); } if (!rewardTable && reward.table_data) { @@ -790,18 +1000,20 @@ function convertReward(reward: QuestReward, rewardTables: (RewardTable & OrderIn if (rewardTable.loot_table_id) { return { ...rewardBase, - type: 'heracles:loottable', - loot_table: rewardTable.loot_table_id + type: "heracles:loottable", + loot_table: rewardTable.loot_table_id, }; } else { - throw new ConversionError(`Don't know how to convert reward ${reward}`); + throw new ConversionError( + `Don't know how to convert reward ${reward}`, + ); } } case "choice": { let rewardTable: RewardTable | undefined; const hexId = BigInt(reward.table_id).toString(16).toUpperCase(); - if ('table_id' in reward) { - rewardTable = rewardTables.find(table => table.id === hexId); + if ("table_id" in reward) { + rewardTable = rewardTables.find((table) => table.id === hexId); } if (!rewardTable && reward.table_data) { @@ -813,35 +1025,40 @@ function convertReward(reward: QuestReward, rewardTables: (RewardTable & OrderIn } if (rewardTable.rewards) { - let rewards: Record = {}; + const rewards: Record = {}; rewardTable.rewards.forEach((tableReward, i) => { - rewards[reward.id + '_' + i] = convertItemReward(tableReward); + rewards[reward.id + "_" + i] = + convertItemReward(tableReward); }); return { - type: 'heracles:selectable', - rewards: rewards + type: "heracles:selectable", + rewards: rewards, }; } else { - throw new ConversionError(`Don't know how to convert reward ${reward}`); + throw new ConversionError( + `Don't know how to convert reward ${reward}`, + ); } } case "ftbquests:xp_levels": case "xp_levels": return { ...rewardBase, - type: 'heracles:xp', - xptype: 'level', - amount: reward.xp_levels ?? 5 - } + type: "heracles:xp", + xptype: "level", + amount: reward.xp_levels ?? 5, + }; case "ftbquests:xp": case "xp": return { ...rewardBase, - type: 'heracles:xp', - xptype: 'points', - amount: reward.xp ?? 100 - } + type: "heracles:xp", + xptype: "points", + amount: reward.xp ?? 100, + }; default: - throw new ConversionError(`Don't know how to convert reward of type ${reward.type}.`); + throw new ConversionError( + `Don't know how to convert reward of type ${reward.type}.`, + ); } } diff --git a/odysseus/index.ts b/odysseus/index.ts index ba09183..b83ecc4 100644 --- a/odysseus/index.ts +++ b/odysseus/index.ts @@ -1,3 +1,3 @@ -export * from './convertFtbQuests'; -export * from './HeraclesQuest'; -export * from './QuestFileSystem'; +export * from "./convertFtbQuests"; +export * from "./HeraclesQuest"; +export * from "./QuestFileSystem"; diff --git a/odysseus/parseStringifiedNbt.ts b/odysseus/parseStringifiedNbt.ts index eb6511b..dde6993 100644 --- a/odysseus/parseStringifiedNbt.ts +++ b/odysseus/parseStringifiedNbt.ts @@ -1,4 +1,4 @@ -import {Json, JsonObject} from "./Json"; +import { Json, JsonObject } from "./Json"; export default (text: string, fileName: string) => { let currentLine = 0; @@ -7,26 +7,30 @@ export default (text: string, fileName: string) => { let currentCharacter = text.charAt(currentPosition); const createError = (message: string) => - new SyntaxError(`Error parsing ${fileName}: ${message} at ${currentLine}:${currentColumn}`); + new SyntaxError( + `Error parsing ${fileName}: ${message} at ${currentLine}:${currentColumn}`, + ); const escapes = { '"': '"', - '\'': '\'', - '\\': '\\', - '/': '/', - b: 'b', - f: '\f', - n: '\n', - r: '\r', - t: '\t' + "'": "'", + "\\": "\\", + "/": "/", + b: "b", + f: "\f", + n: "\n", + r: "\r", + t: "\t", }; const nextCharacter = (c?: string) => { if (c && c !== currentCharacter) { - throw createError(`Expected '${c}' instead of '${currentCharacter}'`); + throw createError( + `Expected '${c}' instead of '${currentCharacter}'`, + ); } - if (currentCharacter === '\n') { + if (currentCharacter === "\n") { ++currentLine; currentColumn = 0; } else { @@ -37,59 +41,63 @@ export default (text: string, fileName: string) => { }; const bulkNext = (c: string) => { - let result = ''; + let result = ""; for (let i = 0; i < c.length; i++) { - result += (currentCharacter = nextCharacter(c[i])); + result += currentCharacter = nextCharacter(c[i]); } return result; }; const number = () => { - let string = ''; + let string = ""; let float = false; - if (currentCharacter === '-') { - string = '-'; - currentCharacter = nextCharacter('-'); + if (currentCharacter === "-") { + string = "-"; + currentCharacter = nextCharacter("-"); } - while (currentCharacter >= '0' && currentCharacter <= '9') { + while (currentCharacter >= "0" && currentCharacter <= "9") { string += currentCharacter; currentCharacter = nextCharacter(); } - if (currentCharacter === '.') { - string += '.'; - while ((currentCharacter = nextCharacter()) && currentCharacter >= '0' && currentCharacter <= '9') { + if (currentCharacter === ".") { + string += "."; + while ( + (currentCharacter = nextCharacter()) && + currentCharacter >= "0" && + currentCharacter <= "9" + ) { string += currentCharacter; } float = true; } - if (currentCharacter === 'e' || currentCharacter === 'E') { + if (currentCharacter === "e" || currentCharacter === "E") { string += currentCharacter; currentCharacter = nextCharacter(); - if (currentCharacter === '-' || currentCharacter === '+') { + if (currentCharacter === "-" || currentCharacter === "+") { string += currentCharacter; currentCharacter = nextCharacter(); } - while (currentCharacter >= '0' && currentCharacter <= '9') { + while (currentCharacter >= "0" && currentCharacter <= "9") { string += currentCharacter; currentCharacter = nextCharacter(); } } switch (currentCharacter.toUpperCase()) { - case 'B': - case 'S': - case 'I': - case 'L': + case "B": + case "S": + case "I": + case "L": currentCharacter = nextCharacter(); return BigInt(string); - case 'F': - case 'D': + case "F": + case "D": currentCharacter = nextCharacter(); return parseFloat(string); default: @@ -99,27 +107,31 @@ export default (text: string, fileName: string) => { const string = () => { let quote; - let result = ''; + let result = ""; if (currentCharacter === '"' || currentCharacter === "'") { quote = currentCharacter; - while (currentCharacter = nextCharacter()) { - if (currentCharacter === '\\') { + while ((currentCharacter = nextCharacter())) { + if (currentCharacter === "\\") { currentCharacter = nextCharacter(); - if (currentCharacter === 'u') { + if (currentCharacter === "u") { let characterCode = 0; for (let i = 0; i < 4; i += 1) { - let hex = parseInt(currentCharacter = nextCharacter(), 16); + const hex = parseInt( + (currentCharacter = nextCharacter()), + 16, + ); if (!isFinite(hex)) { - throw createError('Bad unicode escape'); + throw createError("Bad unicode escape"); } characterCode = characterCode * 16 + hex; } result += String.fromCharCode(characterCode); } else if (currentCharacter in escapes) { - result += escapes[currentCharacter as keyof typeof escapes]; + result += + escapes[currentCharacter as keyof typeof escapes]; } else { break; } @@ -132,25 +144,25 @@ export default (text: string, fileName: string) => { } } - throw createError('Bad string'); + throw createError("Bad string"); }; const readWhitespace = () => { - while (currentCharacter && currentCharacter <= ' ') { + while (currentCharacter && currentCharacter <= " ") { currentCharacter = nextCharacter(); } - } + }; const word = () => { switch (currentCharacter) { - case 't': - bulkNext('true'); + case "t": + bulkNext("true"); return true; - case 'f': - bulkNext('false'); + case "f": + bulkNext("false"); return false; - case 'n': - bulkNext('null'); + case "n": + bulkNext("null"); return null; } @@ -158,20 +170,24 @@ export default (text: string, fileName: string) => { }; const array = () => { - let result: Json[] = []; + const result: Json[] = []; - if (currentCharacter === '[') { - currentCharacter = nextCharacter('['); + if (currentCharacter === "[") { + currentCharacter = nextCharacter("["); readWhitespace(); - if (['B', 'S', 'I', 'L', 'F', 'D'].includes(currentCharacter.toUpperCase())) { + if ( + ["B", "S", "I", "L", "F", "D"].includes( + currentCharacter.toUpperCase(), + ) + ) { currentCharacter = nextCharacter(); - currentCharacter = nextCharacter(';'); + currentCharacter = nextCharacter(";"); readWhitespace(); } - if (currentCharacter === ']') { - currentCharacter = nextCharacter(']'); + if (currentCharacter === "]") { + currentCharacter = nextCharacter("]"); return result; } @@ -179,24 +195,24 @@ export default (text: string, fileName: string) => { result.push(value()); readWhitespace(); - if (currentCharacter === ']') { - currentCharacter = nextCharacter(']'); + if (currentCharacter === "]") { + currentCharacter = nextCharacter("]"); return result; } - if (currentCharacter === ',') { - currentCharacter = nextCharacter(','); + if (currentCharacter === ",") { + currentCharacter = nextCharacter(","); } readWhitespace(); } } - throw createError('Bad array'); + throw createError("Bad array"); }; const key = () => { - let result = ''; + let result = ""; let quoted = false; if (currentCharacter === '"') { @@ -214,7 +230,7 @@ export default (text: string, fileName: string) => { return result; } - } else if (currentCharacter !== ':') { + } else if (currentCharacter !== ":") { result += currentCharacter; currentCharacter = nextCharacter(); } else { @@ -222,17 +238,17 @@ export default (text: string, fileName: string) => { } } - throw createError('Bad key'); + throw createError("Bad key"); }; const object = () => { const result: JsonObject = {}; - currentCharacter = nextCharacter('{'); + currentCharacter = nextCharacter("{"); readWhitespace(); - if (currentCharacter === '}') { - currentCharacter = nextCharacter('}'); + if (currentCharacter === "}") { + currentCharacter = nextCharacter("}"); return result; } @@ -240,42 +256,44 @@ export default (text: string, fileName: string) => { const k = key(); readWhitespace(); - currentCharacter = nextCharacter(':'); + currentCharacter = nextCharacter(":"); result[k] = value(); readWhitespace(); - if (currentCharacter === '}') { - currentCharacter = nextCharacter('}'); + if (currentCharacter === "}") { + currentCharacter = nextCharacter("}"); return result; } - if (currentCharacter === ',') { - currentCharacter = nextCharacter(','); + if (currentCharacter === ",") { + currentCharacter = nextCharacter(","); } readWhitespace(); } - throw createError('EOF'); - } + throw createError("EOF"); + }; const value = (): Json => { readWhitespace(); switch (currentCharacter) { - case '{': + case "{": return object(); - case '[': + case "[": return array(); case '"': - case '\'': + case "'": return string(); - case '-': + case "-": return number(); default: - return currentCharacter >= '0' && currentCharacter <= '9' ? number() : word(); + return currentCharacter >= "0" && currentCharacter <= "9" + ? number() + : word(); } - } + }; return value(); -} +}; diff --git a/odysseus/tsconfig.json b/odysseus/tsconfig.json index d597a10..b4ebd1c 100644 --- a/odysseus/tsconfig.json +++ b/odysseus/tsconfig.json @@ -9,13 +9,7 @@ "strict": true, "target": "ES2021" }, - "exclude": [ - "node_modules" - ], - "include": [ - "**/*.ts" - ], - "lib": [ - "es2021" - ] + "exclude": ["node_modules"], + "include": ["**/*.ts"], + "lib": ["es2021"] } diff --git a/odysseus/types.ts b/odysseus/types.ts index 4f8aba5..679cdb3 100644 --- a/odysseus/types.ts +++ b/odysseus/types.ts @@ -1,3 +1,3 @@ export type ResourceLocation = `${string}:${string}`; -export type TagKey = `#${ResourceLocation}` +export type TagKey = `#${ResourceLocation}`; export type RegistryValue = ResourceLocation | TagKey; diff --git a/package-lock.json b/package-lock.json index 4cd45f8..a876133 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,9 +12,24 @@ ], "devDependencies": { "@types/node": "^20.3.1", + "@typescript-eslint/eslint-plugin": "^6.9.1", + "eslint": "^8.53.0", + "eslint-plugin-import": "^2.29.0", + "eslint-plugin-n": "^16.2.0", + "eslint-plugin-promise": "^6.1.1", + "prettier": "3.0.3", "typescript": "^5.1.3" } }, + "node_modules/@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/@discordjs/builders": { "version": "1.6.3", "license": "Apache-2.0", @@ -72,6 +87,176 @@ "node": ">=16.9.0" } }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", + "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==", + "dev": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.3.tgz", + "integrity": "sha512-yZzuIG+jnVu6hNSzFEN07e8BxF3uAzYtQb6uDkaYZLo6oYZDCq454c5kB8zxnzfCYyP4MIuyBn10L0DqwujTmA==", + "dev": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/@eslint/eslintrc/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/@eslint/js": { + "version": "8.53.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.53.0.tgz", + "integrity": "sha512-Kn7K8dx/5U6+cT1yEhpX1w4PCSg0M+XyRILPgvwcEBjerFWCwQj5sbr3/VmxqV0JGHCBCzyd6LxypEuehypY1w==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.13", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.13.tgz", + "integrity": "sha512-JSBDMiDKSzQVngfRjOdFXgFfklaXI4K9nLF49Auh21lmBWRLIK3+xTErTWD4KU54pb6coM6ESE7Awz/FNU3zgQ==", + "dev": true, + "dependencies": { + "@humanwhocodes/object-schema": "^2.0.1", + "debug": "^4.1.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/config-array/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/@humanwhocodes/config-array/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.1.tgz", + "integrity": "sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==", + "dev": true + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/@sapphire/async-queue": { "version": "1.5.0", "license": "MIT", @@ -154,6 +339,18 @@ "integrity": "sha512-ZXqZc1YeBj1B2my/a/f5PWpNemgIb1r5s3cALPvsMqoGEZ0NOEo1UxrSRUEZr0EtChy1BH/CuORiYuvYr4/4Fw==", "dev": true }, + "node_modules/@types/json-schema": { + "version": "7.0.14", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.14.tgz", + "integrity": "sha512-U3PUjAudAdJBeC2pgN8uTIKgxrb4nlDF3SF0++EldXQvQBGkpFZMSnwQiIoDU77tv45VgNkl/L4ouD+rEomujw==", + "dev": true + }, + "node_modules/@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", + "dev": true + }, "node_modules/@types/mime": { "version": "1.3.2", "dev": true, @@ -174,6 +371,12 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-MMzuxN3GdFwskAnb6fz0orFvhfqi752yjaXylr0Rp4oDg5H0Zn1IuyRhDVvYOwAXoJirx2xuS16I3WjxnAIHiQ==", + "dev": true + }, "node_modules/@types/send": { "version": "0.17.1", "dev": true, @@ -193,180 +396,1280 @@ "@types/node": "*" } }, - "node_modules/accepts": { - "version": "1.3.8", - "license": "MIT", + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.9.1.tgz", + "integrity": "sha512-w0tiiRc9I4S5XSXXrMHOWgHgxbrBn1Ro+PmiYhSg2ZVdxrAJtQgzU5o2m1BfP6UOn7Vxcc6152vFjQfmZR4xEg==", + "dev": true, "dependencies": { - "mime-types": "~2.1.34", - "negotiator": "0.6.3" + "@eslint-community/regexpp": "^4.5.1", + "@typescript-eslint/scope-manager": "6.9.1", + "@typescript-eslint/type-utils": "6.9.1", + "@typescript-eslint/utils": "6.9.1", + "@typescript-eslint/visitor-keys": "6.9.1", + "debug": "^4.3.4", + "graphemer": "^1.4.0", + "ignore": "^5.2.4", + "natural-compare": "^1.4.0", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" }, "engines": { - "node": ">= 0.6" + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^6.0.0 || ^6.0.0-alpha", + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/array-flatten": { - "version": "1.1.1", - "license": "MIT" + "node_modules/@typescript-eslint/eslint-plugin/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } }, - "node_modules/asynckit": { - "version": "0.4.0", - "license": "MIT" + "node_modules/@typescript-eslint/eslint-plugin/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true }, - "node_modules/axios": { - "version": "1.4.0", - "license": "MIT", + "node_modules/@typescript-eslint/parser": { + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.9.1.tgz", + "integrity": "sha512-C7AK2wn43GSaCUZ9do6Ksgi2g3mwFkMO3Cis96kzmgudoVaKyt62yNzJOktP0HDLb/iO2O0n2lBOzJgr6Q/cyg==", + "dev": true, + "peer": true, "dependencies": { - "follow-redirects": "^1.15.0", - "form-data": "^4.0.0", - "proxy-from-env": "^1.1.0" + "@typescript-eslint/scope-manager": "6.9.1", + "@typescript-eslint/types": "6.9.1", + "@typescript-eslint/typescript-estree": "6.9.1", + "@typescript-eslint/visitor-keys": "6.9.1", + "debug": "^4.3.4" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/bignumber.js": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", - "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", + "node_modules/@typescript-eslint/parser/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "peer": true, + "dependencies": { + "ms": "2.1.2" + }, "engines": { - "node": "*" + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } } }, - "node_modules/body-parser": { - "version": "1.20.1", - "license": "MIT", + "node_modules/@typescript-eslint/parser/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true, + "peer": true + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.9.1.tgz", + "integrity": "sha512-38IxvKB6NAne3g/+MyXMs2Cda/Sz+CEpmm+KLGEM8hx/CvnSRuw51i8ukfwB/B/sESdeTGet1NH1Wj7I0YXswg==", + "dev": true, "dependencies": { - "bytes": "3.1.2", - "content-type": "~1.0.4", - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "on-finished": "2.4.1", - "qs": "6.11.0", - "raw-body": "2.5.1", - "type-is": "~1.6.18", - "unpipe": "1.0.0" + "@typescript-eslint/types": "6.9.1", + "@typescript-eslint/visitor-keys": "6.9.1" }, "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/busboy": { - "version": "1.6.0", + "node_modules/@typescript-eslint/type-utils": { + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.9.1.tgz", + "integrity": "sha512-eh2oHaUKCK58qIeYp19F5V5TbpM52680sB4zNSz29VBQPTWIlE/hCj5P5B1AChxECe/fmZlspAWFuRniep1Skg==", + "dev": true, "dependencies": { - "streamsearch": "^1.1.0" + "@typescript-eslint/typescript-estree": "6.9.1", + "@typescript-eslint/utils": "6.9.1", + "debug": "^4.3.4", + "ts-api-utils": "^1.0.1" }, "engines": { - "node": ">=10.16.0" + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/bytes": { - "version": "3.1.2", - "license": "MIT", + "node_modules/@typescript-eslint/type-utils/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, "engines": { - "node": ">= 0.8" + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } } }, - "node_modules/call-bind": { - "version": "1.0.2", - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" + "node_modules/@typescript-eslint/type-utils/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/@typescript-eslint/types": { + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.9.1.tgz", + "integrity": "sha512-BUGslGOb14zUHOUmDB2FfT6SI1CcZEJYfF3qFwBeUrU6srJfzANonwRYHDpLBuzbq3HaoF2XL2hcr01c8f8OaQ==", + "dev": true, + "engines": { + "node": "^16.0.0 || >=18.0.0" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/combined-stream": { - "version": "1.0.8", - "license": "MIT", + "node_modules/@typescript-eslint/typescript-estree": { + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.9.1.tgz", + "integrity": "sha512-U+mUylTHfcqeO7mLWVQ5W/tMLXqVpRv61wm9ZtfE5egz7gtnmqVIw9ryh0mgIlkKk9rZLY3UHygsBSdB9/ftyw==", + "dev": true, "dependencies": { - "delayed-stream": "~1.0.0" + "@typescript-eslint/types": "6.9.1", + "@typescript-eslint/visitor-keys": "6.9.1", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" }, "engines": { - "node": ">= 0.8" + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/content-disposition": { - "version": "0.5.4", - "license": "MIT", + "node_modules/@typescript-eslint/typescript-estree/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, "dependencies": { - "safe-buffer": "5.2.1" + "ms": "2.1.2" }, "engines": { - "node": ">= 0.6" + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } } }, - "node_modules/content-type": { - "version": "1.0.5", - "license": "MIT", + "node_modules/@typescript-eslint/typescript-estree/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/@typescript-eslint/utils": { + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.9.1.tgz", + "integrity": "sha512-L1T0A5nFdQrMVunpZgzqPL6y2wVreSyHhKGZryS6jrEN7bD9NplVAyMryUhXsQ4TWLnZmxc2ekar/lSGIlprCA==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "@types/json-schema": "^7.0.12", + "@types/semver": "^7.5.0", + "@typescript-eslint/scope-manager": "6.9.1", + "@typescript-eslint/types": "6.9.1", + "@typescript-eslint/typescript-estree": "6.9.1", + "semver": "^7.5.4" + }, "engines": { - "node": ">= 0.6" + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" } }, - "node_modules/cookie": { - "version": "0.5.0", - "license": "MIT", + "node_modules/@typescript-eslint/visitor-keys": { + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.9.1.tgz", + "integrity": "sha512-MUaPUe/QRLEffARsmNfmpghuQkW436DvESW+h+M52w0coICHRfD6Np9/K6PdACwnrq1HmuLl+cSPZaJmeVPkSw==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.9.1", + "eslint-visitor-keys": "^3.4.1" + }, "engines": { - "node": ">= 0.6" + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/cookie-signature": { - "version": "1.0.6", - "license": "MIT" + "node_modules/@ungap/structured-clone": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "dev": true + }, + "node_modules/accepts": { + "version": "1.3.8", + "license": "MIT", + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/acorn": { + "version": "8.11.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz", + "integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/array-buffer-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", + "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "is-array-buffer": "^3.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-flatten": { + "version": "1.1.1", + "license": "MIT" + }, + "node_modules/array-includes": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.7.tgz", + "integrity": "sha512-dlcsNBIiWhPkHdOEEKnehA+RNUWDc4UqFtnIXU4uuYDPtA4LDkr7qip2p0VvFAEXNDr0yWZ9PJyIRiGjRLQzwQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1", + "is-string": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/array.prototype.findlastindex": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.3.tgz", + "integrity": "sha512-LzLoiOMAxvy+Gd3BAq3B7VeIgPdo+Q8hthvKtXybMvRV0jrXfJM/t8mw7nNlpEcVlVUnCnM2KSX4XU5HmpodOA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0", + "get-intrinsic": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flat": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.2.tgz", + "integrity": "sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flatmap": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.2.tgz", + "integrity": "sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/arraybuffer.prototype.slice": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.2.tgz", + "integrity": "sha512-yMBKppFur/fbHu9/6USUe03bZ4knMYiwFBcyiaXB8Go0qNehwX6inYPzK9U0NeQvGxKthcmHcaR8P5MStSRBAw==", + "dev": true, + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1", + "is-array-buffer": "^3.0.2", + "is-shared-array-buffer": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "license": "MIT" + }, + "node_modules/available-typed-arrays": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", + "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/axios": { + "version": "1.4.0", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.15.0", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/bignumber.js": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz", + "integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==", + "engines": { + "node": "*" + } + }, + "node_modules/body-parser": { + "version": "1.20.1", + "license": "MIT", + "dependencies": { + "bytes": "3.1.2", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.11.0", + "raw-body": "2.5.1", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/builtins": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/builtins/-/builtins-5.0.1.tgz", + "integrity": "sha512-qwVpFEHNfhYJIzNRBvd2C1kyo6jz3ZSMPyyuR47OPdiKWlbYnZNyDWuyR175qDnAJLiCo5fBBqPb3RiXgWlkOQ==", + "dev": true, + "dependencies": { + "semver": "^7.0.0" + } + }, + "node_modules/busboy": { + "version": "1.6.0", + "dependencies": { + "streamsearch": "^1.1.0" + }, + "engines": { + "node": ">=10.16.0" + } + }, + "node_modules/bytes": { + "version": "3.1.2", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/call-bind": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.5.tgz", + "integrity": "sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==", + "dependencies": { + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.1", + "set-function-length": "^1.1.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "node_modules/content-disposition": { + "version": "0.5.4", + "license": "MIT", + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie": { + "version": "0.5.0", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.0.6", + "license": "MIT" + }, + "node_modules/core-util-is": { + "version": "1.0.3", + "license": "MIT" + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/debug": { + "version": "2.6.9", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/define-data-property": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.1.tgz", + "integrity": "sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==", + "dependencies": { + "get-intrinsic": "^1.2.1", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/define-properties": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", + "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", + "dev": true, + "dependencies": { + "define-data-property": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/depd": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/destroy": { + "version": "1.2.0", + "license": "MIT", + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/discord-api-types": { + "version": "0.37.47", + "license": "MIT" + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/ee-first": { + "version": "1.1.1", + "license": "MIT" + }, + "node_modules/encodeurl": { + "version": "1.0.2", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/es-abstract": { + "version": "1.22.3", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.3.tgz", + "integrity": "sha512-eiiY8HQeYfYH2Con2berK+To6GrK2RxbPawDkGq4UiCQQfZHb6wX9qQqkbpPqaxQFcl8d9QzZqo0tGE0VcrdwA==", + "dev": true, + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "arraybuffer.prototype.slice": "^1.0.2", + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.5", + "es-set-tostringtag": "^2.0.1", + "es-to-primitive": "^1.2.1", + "function.prototype.name": "^1.1.6", + "get-intrinsic": "^1.2.2", + "get-symbol-description": "^1.0.0", + "globalthis": "^1.0.3", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "hasown": "^2.0.0", + "internal-slot": "^1.0.5", + "is-array-buffer": "^3.0.2", + "is-callable": "^1.2.7", + "is-negative-zero": "^2.0.2", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "is-string": "^1.0.7", + "is-typed-array": "^1.1.12", + "is-weakref": "^1.0.2", + "object-inspect": "^1.13.1", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.5.1", + "safe-array-concat": "^1.0.1", + "safe-regex-test": "^1.0.0", + "string.prototype.trim": "^1.2.8", + "string.prototype.trimend": "^1.0.7", + "string.prototype.trimstart": "^1.0.7", + "typed-array-buffer": "^1.0.0", + "typed-array-byte-length": "^1.0.0", + "typed-array-byte-offset": "^1.0.0", + "typed-array-length": "^1.0.4", + "unbox-primitive": "^1.0.2", + "which-typed-array": "^1.1.13" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.2.tgz", + "integrity": "sha512-BuDyupZt65P9D2D2vA/zqcI3G5xRsklm5N3xCwuiy+/vKy8i0ifdsQP1sLgO4tZDSCaQUSnmC48khknGMV3D2Q==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.2.2", + "has-tostringtag": "^1.0.0", + "hasown": "^2.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-shim-unscopables": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz", + "integrity": "sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==", + "dev": true, + "dependencies": { + "hasown": "^2.0.0" + } + }, + "node_modules/es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, + "dependencies": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "license": "MIT" + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "8.53.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.53.0.tgz", + "integrity": "sha512-N4VuiPjXDUa4xVeV/GC/RV3hQW9Nw+Y463lkWaKKXKYMvmRiRDAtfpuPFLN+E1/6ZhyR8J2ig+eVREnYgUsiag==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.3", + "@eslint/js": "8.53.0", + "@humanwhocodes/config-array": "^0.11.13", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-import-resolver-node": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", + "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", + "dev": true, + "dependencies": { + "debug": "^3.2.7", + "is-core-module": "^2.13.0", + "resolve": "^1.22.4" + } + }, + "node_modules/eslint-import-resolver-node/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-import-resolver-node/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true + }, + "node_modules/eslint-module-utils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", + "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", + "dev": true, + "dependencies": { + "debug": "^3.2.7" + }, + "engines": { + "node": ">=4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/eslint-module-utils/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-module-utils/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true + }, + "node_modules/eslint-plugin-es-x": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-es-x/-/eslint-plugin-es-x-7.3.0.tgz", + "integrity": "sha512-W9zIs+k00I/I13+Bdkl/zG1MEO07G97XjUSQuH117w620SJ6bHtLUmoMvkGA2oYnI/gNdr+G7BONLyYnFaLLEQ==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.1.2", + "@eslint-community/regexpp": "^4.6.0" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ota-meshi" + }, + "peerDependencies": { + "eslint": ">=8" + } + }, + "node_modules/eslint-plugin-import": { + "version": "2.29.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.29.0.tgz", + "integrity": "sha512-QPOO5NO6Odv5lpoTkddtutccQjysJuFxoPS7fAHO+9m9udNHvTCPSAMW9zGAYj8lAIdr40I8yPCdUYrncXtrwg==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.7", + "array.prototype.findlastindex": "^1.2.3", + "array.prototype.flat": "^1.3.2", + "array.prototype.flatmap": "^1.3.2", + "debug": "^3.2.7", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.9", + "eslint-module-utils": "^2.8.0", + "hasown": "^2.0.0", + "is-core-module": "^2.13.1", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.fromentries": "^2.0.7", + "object.groupby": "^1.0.1", + "object.values": "^1.1.7", + "semver": "^6.3.1", + "tsconfig-paths": "^3.14.2" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" + } + }, + "node_modules/eslint-plugin-import/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } }, - "node_modules/core-util-is": { - "version": "1.0.3", - "license": "MIT" + "node_modules/eslint-plugin-import/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true }, - "node_modules/debug": { - "version": "2.6.9", - "license": "MIT", + "node_modules/eslint-plugin-import/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-plugin-n": { + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-n/-/eslint-plugin-n-16.2.0.tgz", + "integrity": "sha512-AQER2jEyQOt1LG6JkGJCCIFotzmlcCZFur2wdKrp1JX2cNotC7Ae0BcD/4lLv3lUAArM9uNS8z/fsvXTd0L71g==", + "dev": true, "dependencies": { - "ms": "2.0.0" + "@eslint-community/eslint-utils": "^4.4.0", + "builtins": "^5.0.1", + "eslint-plugin-es-x": "^7.1.0", + "get-tsconfig": "^4.7.0", + "ignore": "^5.2.4", + "is-core-module": "^2.12.1", + "minimatch": "^3.1.2", + "resolve": "^1.22.2", + "semver": "^7.5.3" + }, + "engines": { + "node": ">=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + }, + "peerDependencies": { + "eslint": ">=7.0.0" } }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "license": "MIT", + "node_modules/eslint-plugin-promise": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-promise/-/eslint-plugin-promise-6.1.1.tgz", + "integrity": "sha512-tjqWDwVZQo7UIPMeDReOpUgHCmCiH+ePnVT+5zVapL0uuHnegBUs2smM13CzOs2Xb5+MHMRFTs9v24yjba4Oig==", + "dev": true, "engines": { - "node": ">=0.4.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" } }, - "node_modules/depd": { - "version": "2.0.0", - "license": "MIT", + "node_modules/eslint-scope": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, "engines": { - "node": ">= 0.8" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/destroy": { - "version": "1.2.0", - "license": "MIT", + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/discord-api-types": { - "version": "0.37.47", - "license": "MIT" + "node_modules/eslint/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } }, - "node_modules/ee-first": { - "version": "1.1.1", - "license": "MIT" + "node_modules/eslint/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true }, - "node_modules/encodeurl": { - "version": "1.0.2", - "license": "MIT", + "node_modules/espree": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "dev": true, + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, "engines": { - "node": ">= 0.8" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/escape-html": { - "version": "1.0.3", - "license": "MIT" + "node_modules/esquery": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", + "dev": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, "node_modules/etag": { "version": "1.8.1", @@ -419,6 +1722,67 @@ "version": "3.1.3", "license": "MIT" }, + "node_modules/fast-glob": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", + "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/fastq": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, "node_modules/file-type": { "version": "18.5.0", "license": "MIT", @@ -434,6 +1798,18 @@ "url": "https://github.com/sindresorhus/file-type?sponsor=1" } }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/finalhandler": { "version": "1.2.0", "license": "MIT", @@ -450,6 +1826,42 @@ "node": ">= 0.8" } }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.1.1.tgz", + "integrity": "sha512-/qM2b3LUIaIgviBQovTLvijfyOQXPtSRnRK26ksj2J7rzPIecePUIpJsZ4T02Qg+xiAEKIs5K8dsHEd+VaKa/Q==", + "dev": true, + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.3", + "rimraf": "^3.0.2" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.9.tgz", + "integrity": "sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==", + "dev": true + }, "node_modules/follow-redirects": { "version": "1.15.2", "funding": [ @@ -468,6 +1880,15 @@ } } }, + "node_modules/for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "dev": true, + "dependencies": { + "is-callable": "^1.1.3" + } + }, "node_modules/form-data": { "version": "4.0.0", "license": "MIT", @@ -494,31 +1915,215 @@ "node": ">= 0.6" } }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, "node_modules/function-bind": { - "version": "1.1.1", - "license": "MIT" + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/function.prototype.name": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.6.tgz", + "integrity": "sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "functions-have-names": "^1.2.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, "node_modules/get-intrinsic": { - "version": "1.2.1", - "license": "MIT", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.2.tgz", + "integrity": "sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA==", "dependencies": { - "function-bind": "^1.1.1", - "has": "^1.0.3", + "function-bind": "^1.1.2", "has-proto": "^1.0.1", - "has-symbols": "^1.0.3" + "has-symbols": "^1.0.3", + "hasown": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-symbol-description": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", + "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-tsconfig": { + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.7.2.tgz", + "integrity": "sha512-wuMsz4leaj5hbGgg4IvDU0bqJagpftG5l5cXIAvo8uZrqn0NJqwtfupTN00VnkQJPcIRrxYrm1Ue24btpCha2A==", + "dev": true, + "dependencies": { + "resolve-pkg-maps": "^1.0.0" + }, + "funding": { + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/globals": { + "version": "13.23.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.23.0.tgz", + "integrity": "sha512-XAmF0RjlrjY23MA51q3HltdlGxUpXPvg0GioKiD9X6HD28iMjo2dKC8Vqwm7lne4GNr78+RHTfliktR6ZH09wA==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globalthis": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", + "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "dev": true, + "dependencies": { + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dev": true, + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true + }, + "node_modules/has-bigints": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", + "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", + "dev": true, "funding": { "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/has": { - "version": "1.0.3", - "license": "MIT", + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz", + "integrity": "sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==", "dependencies": { - "function-bind": "^1.1.1" + "get-intrinsic": "^1.2.2" }, - "engines": { - "node": ">= 0.4.0" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/has-proto": { @@ -541,6 +2146,32 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", + "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/http-errors": { "version": "2.0.0", "license": "MIT", @@ -583,14 +2214,72 @@ ], "license": "BSD-3-Clause" }, + "node_modules/ignore": { + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, "node_modules/immediate": { "version": "3.0.6", "license": "MIT" }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, "node_modules/inherits": { "version": "2.0.4", "license": "ISC" }, + "node_modules/internal-slot": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.6.tgz", + "integrity": "sha512-Xj6dv+PsbtwyPpEflsejS+oIZxmMlV44zAhG479uYu89MsjcYOhCFnNyKrkJrihbsiasQyY0afoCl/9BLR65bg==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.2.2", + "hasown": "^2.0.0", + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/ipaddr.js": { "version": "1.9.1", "license": "MIT", @@ -598,10 +2287,260 @@ "node": ">= 0.10" } }, + "node_modules/is-array-buffer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", + "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "is-typed-array": "^1.1.10" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-bigint": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", + "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "dev": true, + "dependencies": { + "has-bigints": "^1.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-boolean-object": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", + "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-core-module": { + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", + "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", + "dev": true, + "dependencies": { + "hasown": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-date-object": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", + "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-negative-zero": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", + "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-number-object": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", + "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-regex": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-shared-array-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", + "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-string": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", + "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-symbol": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", + "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typed-array": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.12.tgz", + "integrity": "sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==", + "dev": true, + "dependencies": { + "which-typed-array": "^1.1.11" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakref": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", + "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/isarray": { "version": "1.0.0", "license": "MIT" }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, "node_modules/json-bigint": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-1.0.0.tgz", @@ -610,6 +2549,36 @@ "bignumber.js": "^9.0.0" } }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, + "node_modules/json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "dev": true, + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, "node_modules/jszip": { "version": "3.10.1", "license": "(MIT OR GPL-3.0-or-later)", @@ -644,6 +2613,28 @@ "safe-buffer": "~5.1.0" } }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, "node_modules/lie": { "version": "3.3.0", "license": "MIT", @@ -651,10 +2642,43 @@ "immediate": "~3.0.5" } }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/lodash": { "version": "4.17.21", "license": "MIT" }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/media-typer": { "version": "0.3.0", "license": "MIT", @@ -666,6 +2690,15 @@ "version": "1.0.1", "license": "MIT" }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, "node_modules/methods": { "version": "1.1.2", "license": "MIT", @@ -673,6 +2706,19 @@ "node": ">= 0.6" } }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, "node_modules/mime": { "version": "1.6.0", "license": "MIT", @@ -700,10 +2746,37 @@ "node": ">= 0.6" } }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/ms": { "version": "2.0.0", "license": "MIT" }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, "node_modules/negotiator": { "version": "0.6.3", "license": "MIT", @@ -712,8 +2785,82 @@ } }, "node_modules/object-inspect": { - "version": "1.12.3", - "license": "MIT", + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", + "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.assign": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", + "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "has-symbols": "^1.0.3", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.fromentries": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.7.tgz", + "integrity": "sha512-UPbPHML6sL8PI/mOqPwsH4G6iyXcCGzLin8KvEPenOZN5lpCNBZZQ+V62vdjB1mQHrmqGQt5/OJzemUA+KJmEA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.groupby": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.1.tgz", + "integrity": "sha512-HqaQtqLnp/8Bn4GL16cj+CUYbnpe1bh0TtEaWvybszDG4tgxCJuRpV8VGuvNaI1fAnI4lUJzDG55MXcOH4JZcQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1" + } + }, + "node_modules/object.values": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.7.tgz", + "integrity": "sha512-aU6xnDFYT3x17e/f0IiiwlGPTy2jzMySGfUB4fq6z7CV8l85CWHDk5ErhyhpfDHhrOMwGFhSQkhMGHaIotA6Ng==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -740,10 +2887,78 @@ "node": ">= 0.8" } }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/optionator": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", + "dev": true, + "dependencies": { + "@aashutoshrathi/word-wrap": "^1.2.3", + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/pako": { "version": "1.0.11", "license": "(MIT AND Zlib)" }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/parseurl": { "version": "1.3.3", "license": "MIT", @@ -751,10 +2966,52 @@ "node": ">= 0.8" } }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, "node_modules/path-to-regexp": { "version": "0.1.7", "license": "MIT" }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/peek-readable": { "version": "5.0.0", "license": "MIT", @@ -766,6 +3023,42 @@ "url": "https://github.com/sponsors/Borewit" } }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prettier": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz", + "integrity": "sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==", + "dev": true, + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, "node_modules/process-nextick-args": { "version": "2.0.1", "license": "MIT" @@ -785,6 +3078,15 @@ "version": "1.1.0", "license": "MIT" }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/qs": { "version": "6.11.0", "license": "BSD-3-Clause", @@ -798,6 +3100,26 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, "node_modules/range-parser": { "version": "1.2.1", "license": "MIT", @@ -822,28 +3144,152 @@ "version": "3.6.2", "license": "MIT", "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/readable-web-to-node-stream": { + "version": "3.0.2", + "license": "MIT", + "dependencies": { + "readable-stream": "^3.6.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/regexp.prototype.flags": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.1.tgz", + "integrity": "sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "set-function-name": "^2.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve": { + "version": "1.22.8", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", + "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", + "dev": true, + "dependencies": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/resolve-pkg-maps": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", + "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", + "dev": true, + "funding": { + "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" } }, - "node_modules/readable-web-to-node-stream": { - "version": "3.0.2", - "license": "MIT", + "node_modules/safe-array-concat": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.1.tgz", + "integrity": "sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q==", + "dev": true, "dependencies": { - "readable-stream": "^3.6.0" + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.1", + "has-symbols": "^1.0.3", + "isarray": "^2.0.5" }, "engines": { - "node": ">=8" + "node": ">=0.4" }, "funding": { - "type": "github", - "url": "https://github.com/sponsors/Borewit" + "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/safe-array-concat/node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true + }, "node_modules/safe-buffer": { "version": "5.2.1", "funding": [ @@ -862,10 +3308,39 @@ ], "license": "MIT" }, + "node_modules/safe-regex-test": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", + "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "is-regex": "^1.1.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/safer-buffer": { "version": "2.1.2", "license": "MIT" }, + "node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/send": { "version": "0.18.0", "license": "MIT", @@ -905,6 +3380,34 @@ "node": ">= 0.8.0" } }, + "node_modules/set-function-length": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.1.1.tgz", + "integrity": "sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==", + "dependencies": { + "define-data-property": "^1.1.1", + "get-intrinsic": "^1.2.1", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/set-function-name": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.1.tgz", + "integrity": "sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA==", + "dev": true, + "dependencies": { + "define-data-property": "^1.0.1", + "functions-have-names": "^1.2.3", + "has-property-descriptors": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/setimmediate": { "version": "1.0.5", "license": "MIT" @@ -913,6 +3416,27 @@ "version": "1.2.0", "license": "ISC" }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/side-channel": { "version": "1.0.4", "license": "MIT", @@ -925,6 +3449,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/statuses": { "version": "2.0.1", "license": "MIT", @@ -945,6 +3478,84 @@ "safe-buffer": "~5.2.0" } }, + "node_modules/string.prototype.trim": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz", + "integrity": "sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimend": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.7.tgz", + "integrity": "sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimstart": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.7.tgz", + "integrity": "sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/strtok3": { "version": "7.0.0", "license": "MIT", @@ -960,6 +3571,48 @@ "url": "https://github.com/sponsors/Borewit" } }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, "node_modules/toidentifier": { "version": "1.0.1", "license": "MIT", @@ -982,10 +3635,34 @@ "url": "https://github.com/sponsors/Borewit" } }, + "node_modules/ts-api-utils": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.3.tgz", + "integrity": "sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg==", + "dev": true, + "engines": { + "node": ">=16.13.0" + }, + "peerDependencies": { + "typescript": ">=4.2.0" + } + }, "node_modules/ts-mixer": { "version": "6.0.3", "license": "MIT" }, + "node_modules/tsconfig-paths": { + "version": "3.14.2", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", + "integrity": "sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==", + "dev": true, + "dependencies": { + "@types/json5": "^0.0.29", + "json5": "^1.0.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + } + }, "node_modules/tslib": { "version": "2.6.0", "license": "0BSD" @@ -994,6 +3671,30 @@ "version": "1.0.3", "license": "Unlicense" }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/type-is": { "version": "1.6.18", "license": "MIT", @@ -1005,6 +3706,71 @@ "node": ">= 0.6" } }, + "node_modules/typed-array-buffer": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz", + "integrity": "sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/typed-array-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.0.tgz", + "integrity": "sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-byte-offset": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.0.tgz", + "integrity": "sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-length": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", + "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "is-typed-array": "^1.1.9" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/typescript": { "version": "5.1.6", "dev": true, @@ -1017,6 +3783,21 @@ "node": ">=14.17" } }, + "node_modules/unbox-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", + "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-bigints": "^1.0.2", + "has-symbols": "^1.0.3", + "which-boxed-primitive": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/undici": { "version": "5.22.1", "license": "MIT", @@ -1034,6 +3815,15 @@ "node": ">= 0.8" } }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, "node_modules/util-deprecate": { "version": "1.0.2", "license": "MIT" @@ -1052,6 +3842,80 @@ "node": ">= 0.8" } }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-boxed-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", + "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "dev": true, + "dependencies": { + "is-bigint": "^1.0.1", + "is-boolean-object": "^1.1.0", + "is-number-object": "^1.0.4", + "is-string": "^1.0.5", + "is-symbol": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-typed-array": { + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.13.tgz", + "integrity": "sha512-P5Nra0qjSncduVPEAr7xhoF5guty49ArDTwzJ/yNuPIbZppyRxFQsRCWrocxIY+CnMVG+qfbU2FmDKyvSGClow==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.4", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "odysseus": { "version": "1.0.0", "license": "MIT", diff --git a/package.json b/package.json index bde3427..18fa628 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,9 @@ { "name": "odysseus", + "scripts": { + "lint": "eslint .", + "checkstyle": "prettier . --check" + }, "workspaces": [ "odysseus", "odysseus-bot", @@ -7,6 +11,9 @@ ], "devDependencies": { "@types/node": "^20.3.1", + "@typescript-eslint/eslint-plugin": "^6.9.1", + "eslint": "^8.53.0", + "prettier": "3.0.3", "typescript": "^5.1.3" } }