From c4eb1e4c3cc928580883617ef807a5599e51a1f6 Mon Sep 17 00:00:00 2001 From: Yoshiboi18303 Date: Mon, 3 Nov 2025 20:16:00 -0500 Subject: [PATCH] (feat) Fix useless code - Remove redundant type in Request class (since IMG just threw an error anyway) - Fix README to abide by Markdownlint guidelines - Fix TypeDoc not properly syntax highlighting the CoffeeScript example - Add docs folder to .gitignore - Fix Request class spaghetti code --- .gitignore | 6 +- README.md | 21 ++- package.json | 2 + src/structures/Animal/Animal.js | 4 - src/structures/Color/Color.js | 4 - src/structures/Convert/Convert.js | 2 - src/structures/Image/Image.js | 6 +- src/structures/List/List.js | 3 - src/structures/Meme/Meme.js | 3 - src/structures/Minecraft/Minecraft.js | 3 - src/structures/Misc/Misc.js | 2 - src/structures/NSFW/Gifs.js | 22 ---- src/structures/NSFW/Images.js | 31 ----- src/structures/Request/Request.js | 45 +++---- src/structures/SFW/Gifs.js | 27 ---- src/structures/SFW/Images.js | 13 -- src/structures/Test/Test.js | 4 - typedoc.json | 20 +-- typings/index.d.ts | 13 +- yarn.lock | 178 ++++++++++++++++++-------- 20 files changed, 181 insertions(+), 228 deletions(-) diff --git a/.gitignore b/.gitignore index d32bfb3..9828cdf 100644 --- a/.gitignore +++ b/.gitignore @@ -342,4 +342,8 @@ ASALocalRun/ .mfractor/ # Local History for Visual Studio -.localhistory/ \ No newline at end of file +.localhistory/ + +# Generated TypeDoc documentation +docs/ + diff --git a/README.md b/README.md index fd49560..292aa3a 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,15 @@ # fluxpoint-js -Fluxpoint-JS is the offical Fluxpoint JavaScript api library built for the fluxpoint api! -https://fluxpoint.dev +Fluxpoint-JS is the offical Fluxpoint JavaScript api library +built for the fluxpoint api! + ## Docs -https://fluxpointdev.github.io/fluxpoint-js/ -# JavaScript +[https://fluxpointdev.github.io/fluxpoint-js/](https://fluxpointdev.github.io/fluxpoint-js/) + +## JavaScript + ```js const { FluxpointClient } = require("fluxpoint-js"); const client = new FluxpointClient({ @@ -21,7 +24,9 @@ main().catch((e) => { console.log(e); }); ``` -# TypeScript + +## TypeScript + ```ts import { FluxpointClient, IResponse, IErrorResponse } from "fluxpoint-js"; @@ -35,8 +40,10 @@ main().catch((e: IErrorResponse) => { console.log(e); }); ``` -# CoffeeScript -```coffee + +## CoffeeScript + +```coffeescript { FluxpointClient } = require "fluxpoint-js" client = new FluxpointClient { token: "token" } diff --git a/package.json b/package.json index 5d38d2e..bae71ac 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,10 @@ "doc": "typedoc" }, "devDependencies": { + "prettier": "^3.6.2", "ts-node": "^10.7.0", "ts-node-dev": "^1.1.8", + "typedoc": "^0.28.14", "typescript": "^4.6.4" }, "dependencies": { diff --git a/src/structures/Animal/Animal.js b/src/structures/Animal/Animal.js index 1de8e96..be1b3bf 100644 --- a/src/structures/Animal/Animal.js +++ b/src/structures/Animal/Animal.js @@ -5,7 +5,6 @@ class Animal { } async getCat() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/img/cat", }); @@ -13,7 +12,6 @@ class Animal { async getDog() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/img/dog", }); @@ -21,7 +19,6 @@ class Animal { async getDuck() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/img/duck", }); @@ -29,7 +26,6 @@ class Animal { async getLizard() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/img/lizard", }); diff --git a/src/structures/Color/Color.js b/src/structures/Color/Color.js index 42c4f7e..0c635d9 100644 --- a/src/structures/Color/Color.js +++ b/src/structures/Color/Color.js @@ -5,7 +5,6 @@ class Color { } async random() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/color/random", }); @@ -13,7 +12,6 @@ class Color { async getHex(hex) { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: `/color/info?hex=${hex}`, }); @@ -21,7 +19,6 @@ class Color { async getRGB(rgb) { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: `/color/info?rgb=${rgb}`, }); @@ -29,7 +26,6 @@ class Color { async getName(name) { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: `/color/info?name=${name}`, }); diff --git a/src/structures/Convert/Convert.js b/src/structures/Convert/Convert.js index ba49924..c3ae7e5 100644 --- a/src/structures/Convert/Convert.js +++ b/src/structures/Convert/Convert.js @@ -5,7 +5,6 @@ class Convert { } async htmlToMarkdown(options = { html: "" }) { return await this.#client.request.req({ - type: "API", method: "POST", endpoint: "/convert/html-markdown", data: { @@ -16,7 +15,6 @@ class Convert { async markdownToHTML(options = { markdown: "" }) { return await this.#client.request.req({ - type: "API", method: "POST", endpoint: "/convert/markdown-html", data: { diff --git a/src/structures/Image/Image.js b/src/structures/Image/Image.js index 9cbb8c8..d3a4713 100644 --- a/src/structures/Image/Image.js +++ b/src/structures/Image/Image.js @@ -5,7 +5,6 @@ class Images { } async generateTemplate(template) { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: `/gen/${template}`, }); @@ -13,7 +12,6 @@ class Images { async generate() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/gen/html", }); @@ -21,7 +19,6 @@ class Images { async generateCustom() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/gen/custom", }); @@ -38,10 +35,9 @@ class Images { color_welcome: "", color_username: "", color_members: "", - } + }, ) { const r = await this.#client.request.req({ - type: "API", method: "POST", endpoint: "/gen/welcome", data: { diff --git a/src/structures/List/List.js b/src/structures/List/List.js index ddd10c4..9027de8 100644 --- a/src/structures/List/List.js +++ b/src/structures/List/List.js @@ -5,7 +5,6 @@ class List { } async getTemplates() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/list/templates", }); @@ -13,7 +12,6 @@ class List { async getBanners() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/list/banners", }); @@ -21,7 +19,6 @@ class List { async getIcons() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/list/icons", }); diff --git a/src/structures/Meme/Meme.js b/src/structures/Meme/Meme.js index af8b8a1..3af37a2 100644 --- a/src/structures/Meme/Meme.js +++ b/src/structures/Meme/Meme.js @@ -5,7 +5,6 @@ class Meme { } async getMeme() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/img/meme", }); @@ -13,7 +12,6 @@ class Meme { async getNou() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/img/nou", }); @@ -21,7 +19,6 @@ class Meme { async getPog() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/img/pog", }); diff --git a/src/structures/Minecraft/Minecraft.js b/src/structures/Minecraft/Minecraft.js index 3d23150..e39dd92 100644 --- a/src/structures/Minecraft/Minecraft.js +++ b/src/structures/Minecraft/Minecraft.js @@ -5,7 +5,6 @@ class Minecraft { } async getPing(options = { host: "" | 0, port: "" | 25565 | "25565" }) { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: `/mc/ping?host=${options.host}?port=${options.port}`, }); @@ -13,7 +12,6 @@ class Minecraft { async getPingByHost(host) { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: `/mc/ping?host=${host}`, }); @@ -21,7 +19,6 @@ class Minecraft { async getSkin(playerName, type = "head" | "cube" | "body" | "full" | "all") { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: `/mc/skin?player=${playerName}${type ? `?type=${type}` : ""}`, }); diff --git a/src/structures/Misc/Misc.js b/src/structures/Misc/Misc.js index 17ba04e..7b6d6cc 100644 --- a/src/structures/Misc/Misc.js +++ b/src/structures/Misc/Misc.js @@ -5,7 +5,6 @@ class Misc { } async getDadJoke() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/dadjoke", }); @@ -13,7 +12,6 @@ class Misc { async getMe() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/me", }); diff --git a/src/structures/NSFW/Gifs.js b/src/structures/NSFW/Gifs.js index 2a02863..9a03bc5 100644 --- a/src/structures/NSFW/Gifs.js +++ b/src/structures/NSFW/Gifs.js @@ -5,7 +5,6 @@ class NSFWGifs { } async getAnal() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/gif/anal", }); @@ -13,7 +12,6 @@ class NSFWGifs { async getAss() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/gif/ass", }); @@ -21,7 +19,6 @@ class NSFWGifs { async getBDSM() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/gif/bdsm", }); @@ -29,7 +26,6 @@ class NSFWGifs { async getBlowJob() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/gif/blowjob", }); @@ -37,7 +33,6 @@ class NSFWGifs { async getBoobJob() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/gif/boobjob", }); @@ -45,7 +40,6 @@ class NSFWGifs { async getBoobs() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/gif/boobs", }); @@ -53,7 +47,6 @@ class NSFWGifs { async getCum() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/gif/cum", }); @@ -61,7 +54,6 @@ class NSFWGifs { async getFeet() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/gif/feet", }); @@ -69,7 +61,6 @@ class NSFWGifs { async getFuta() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/gif/futa", }); @@ -77,7 +68,6 @@ class NSFWGifs { async getHandJob() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/gif/handjob", }); @@ -85,7 +75,6 @@ class NSFWGifs { async getHentai() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/gif/hentai", }); @@ -93,7 +82,6 @@ class NSFWGifs { async getKitsune() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/gif/kitsune", }); @@ -101,7 +89,6 @@ class NSFWGifs { async getKuni() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/gif/kuni", }); @@ -109,7 +96,6 @@ class NSFWGifs { async getNeko() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/gif/neko", }); @@ -117,7 +103,6 @@ class NSFWGifs { async getPussy() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/gif/pussy", }); @@ -125,7 +110,6 @@ class NSFWGifs { async getWank() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/gif/wank", }); @@ -133,7 +117,6 @@ class NSFWGifs { async getSolo() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/gif/solo", }); @@ -141,7 +124,6 @@ class NSFWGifs { async getSpank() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/gif/spank", }); @@ -149,7 +131,6 @@ class NSFWGifs { async getFemdom() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/gif/femdom", }); @@ -157,7 +138,6 @@ class NSFWGifs { async getTentacle() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/gif/tentacle", }); @@ -165,7 +145,6 @@ class NSFWGifs { async getToys() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/gif/toys", }); @@ -173,7 +152,6 @@ class NSFWGifs { async getYuri() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/gif/yuri", }); diff --git a/src/structures/NSFW/Images.js b/src/structures/NSFW/Images.js index 5f2fd32..f4557ee 100644 --- a/src/structures/NSFW/Images.js +++ b/src/structures/NSFW/Images.js @@ -5,7 +5,6 @@ class NSFWImages { } async getAnal() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/img/anal", }); @@ -13,7 +12,6 @@ class NSFWImages { async getAnus() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/img/anus", }); @@ -21,7 +19,6 @@ class NSFWImages { async getAss() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/img/ass", }); @@ -29,7 +26,6 @@ class NSFWImages { async getAzurlane() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/img/azurlane", }); @@ -37,7 +33,6 @@ class NSFWImages { async getBDSM() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/img/bdsm", }); @@ -45,7 +40,6 @@ class NSFWImages { async getBlowJob() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/img/blowjob", }); @@ -53,7 +47,6 @@ class NSFWImages { async getBoobs() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/img/boobs", }); @@ -61,7 +54,6 @@ class NSFWImages { async getCosplay() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/img/cosplay", }); @@ -69,7 +61,6 @@ class NSFWImages { async getCum() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/img/cum", }); @@ -77,7 +68,6 @@ class NSFWImages { async getFeet() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/img/feet", }); @@ -85,7 +75,6 @@ class NSFWImages { async getFemdom() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/img/femdom", }); @@ -93,7 +82,6 @@ class NSFWImages { async getFuta() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/img/futa", }); @@ -101,7 +89,6 @@ class NSFWImages { async getGasm() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/img/gasm", }); @@ -109,7 +96,6 @@ class NSFWImages { async getHolo() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/img/holo", }); @@ -117,7 +103,6 @@ class NSFWImages { async getKitsune() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/img/kitsune", }); @@ -125,7 +110,6 @@ class NSFWImages { async getLewd() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/img/lewd", }); @@ -133,7 +117,6 @@ class NSFWImages { async getNeko() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/img/neko", }); @@ -141,7 +124,6 @@ class NSFWImages { async getNekopara() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/img/nekopara", }); @@ -149,7 +131,6 @@ class NSFWImages { async getPantsu() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/img/pantsu", }); @@ -157,7 +138,6 @@ class NSFWImages { async getPantyhose() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/img/pantyhose", }); @@ -165,7 +145,6 @@ class NSFWImages { async getPeeing() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/img/peeing", }); @@ -173,7 +152,6 @@ class NSFWImages { async getPetPlay() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/img/petplay", }); @@ -181,7 +159,6 @@ class NSFWImages { async getPussy() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/img/pussy", }); @@ -189,7 +166,6 @@ class NSFWImages { async getSlimes() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/img/slimes", }); @@ -197,7 +173,6 @@ class NSFWImages { async getSolo() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/img/solo", }); @@ -205,7 +180,6 @@ class NSFWImages { async getSwimsuit() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/img/swimsuit", }); @@ -213,7 +187,6 @@ class NSFWImages { async getTentacle() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/img/tentacle", }); @@ -221,7 +194,6 @@ class NSFWImages { async getThighs() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/img/thighs", }); @@ -229,7 +201,6 @@ class NSFWImages { async getTrap() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/img/trap", }); @@ -237,7 +208,6 @@ class NSFWImages { async getYaoi() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/img/yaoi", }); @@ -245,7 +215,6 @@ class NSFWImages { async getYuri() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/nsfw/img/yuri", }); diff --git a/src/structures/Request/Request.js b/src/structures/Request/Request.js index 26c016d..c5f95b2 100644 --- a/src/structures/Request/Request.js +++ b/src/structures/Request/Request.js @@ -2,53 +2,42 @@ const fetch = require("cross-fetch"); class Request { constructor(token) { - this.api = "https://gallery.fluxpoint.dev"; + this.api = "https://api.fluxpoint.dev"; this.token = token; } async req( options = { - type: "IMG" | "API", method: "GET" | "POST" | "PATCH" | "DELETE" | "PUT", endpoint: "", data: null, - } + }, ) { - if (!this.token) { - return Promise.reject("[fluxpoint-js] No token provided"); - } - - if (options.type == "IMG") { - throw Error("[fluxpoint-js] Gallery endpoint deprecated."); - } else if (options.type == "API") { - this.api = "https://api.fluxpoint.dev"; - } else { - throw Error("[fluxpoint-js] Gallery endpoint deprecated."); - } + return new Promise(async (resolve, reject) => { + if (!this.token) { + return reject("[fluxpoint-js] No token provided"); + } - const request = { - method: options.method, - headers: { - "Content-Type": "application/json", - Authorization: `${this.token}`, - }, - body: JSON.stringify(options.data), - }; + const request = { + method: options.method, + headers: { + "Content-Type": "application/json", + Authorization: `${this.token}`, + }, + }; - const data = options.data ? JSON.stringify(options.data) : {}; + const data = options.data ? JSON.stringify(options.data) : {}; - if (options.method !== "GET") { - if (options.method !== "DELETE") { + if (options.method !== "GET" && options.method !== "DELETE") { request["body"] = data; } - } - return new Promise(async (resolve, reject) => { + return fetch(this.api + options.endpoint, request).then((x) => { x.json() .then((res) => { return resolve(res); }) - .catch(() => { + .catch((e) => { resolve(null); }); }); diff --git a/src/structures/SFW/Gifs.js b/src/structures/SFW/Gifs.js index ea30e03..71b71c5 100644 --- a/src/structures/SFW/Gifs.js +++ b/src/structures/SFW/Gifs.js @@ -5,7 +5,6 @@ class SFWGifs { } async getBaka() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/gif/baka", }); @@ -13,7 +12,6 @@ class SFWGifs { async getBite() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/gif/bite", }); @@ -21,7 +19,6 @@ class SFWGifs { async getBlush() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/gif/blush", }); @@ -29,7 +26,6 @@ class SFWGifs { async getCry() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/gif/cry", }); @@ -37,7 +33,6 @@ class SFWGifs { async getDance() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/gif/dance", }); @@ -45,7 +40,6 @@ class SFWGifs { async getFeed() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/gif/feed", }); @@ -53,7 +47,6 @@ class SFWGifs { async getFluff() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/gif/fluff", }); @@ -61,7 +54,6 @@ class SFWGifs { async getGrab() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/gif/grab", }); @@ -69,7 +61,6 @@ class SFWGifs { async getHandHold() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/gif/handhold", }); @@ -77,7 +68,6 @@ class SFWGifs { async getHighFive() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/gif/highfive", }); @@ -85,7 +75,6 @@ class SFWGifs { async getHug() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/gif/hug", }); @@ -93,7 +82,6 @@ class SFWGifs { async getKiss() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/gif/kiss", }); @@ -101,7 +89,6 @@ class SFWGifs { async getLick() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/gif/lick", }); @@ -109,7 +96,6 @@ class SFWGifs { async getNeko() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/gif/neko", }); @@ -117,7 +103,6 @@ class SFWGifs { async getPat() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/gif/pat", }); @@ -125,7 +110,6 @@ class SFWGifs { async getPoke() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/gif/poke", }); @@ -133,7 +117,6 @@ class SFWGifs { async getPunch() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/gif/punch", }); @@ -141,7 +124,6 @@ class SFWGifs { async getShrug() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/gif/shrug", }); @@ -149,7 +131,6 @@ class SFWGifs { async getSlap() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/gif/slap", }); @@ -157,7 +138,6 @@ class SFWGifs { async getSmug() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/gif/smug", }); @@ -165,7 +145,6 @@ class SFWGifs { async getStare() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/gif/stare", }); @@ -173,7 +152,6 @@ class SFWGifs { async getTickle() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/gif/tickle", }); @@ -181,7 +159,6 @@ class SFWGifs { async getTailWag() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/gif/wag", }); @@ -189,7 +166,6 @@ class SFWGifs { async getWasted() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/gif/wasted", }); @@ -197,7 +173,6 @@ class SFWGifs { async getWave() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/gif/wave", }); @@ -205,7 +180,6 @@ class SFWGifs { async getWink() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/gif/wink", }); @@ -213,7 +187,6 @@ class SFWGifs { async getLaugh() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/gif/laugh", }); diff --git a/src/structures/SFW/Images.js b/src/structures/SFW/Images.js index 3647dea..fff749c 100644 --- a/src/structures/SFW/Images.js +++ b/src/structures/SFW/Images.js @@ -5,7 +5,6 @@ class SFWImages { } async getAnime() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/img/anime", }); @@ -13,7 +12,6 @@ class SFWImages { async getChibi() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/img/chibi", }); @@ -21,7 +19,6 @@ class SFWImages { async getNeko() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/img/neko", }); @@ -29,7 +26,6 @@ class SFWImages { async getNekoBoy() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/img/nekoboy", }); @@ -37,7 +33,6 @@ class SFWImages { async getNekoPara() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/img/nekopara", }); @@ -45,7 +40,6 @@ class SFWImages { async getKitsune() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/img/kitsune", }); @@ -53,7 +47,6 @@ class SFWImages { async getHolo() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/img/holo", }); @@ -61,7 +54,6 @@ class SFWImages { async getAzulane() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/img/azurlane", }); @@ -69,7 +61,6 @@ class SFWImages { async getChristmas() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/img/christmas", }); @@ -77,7 +68,6 @@ class SFWImages { async getHalloween() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/img/halloween", }); @@ -85,7 +75,6 @@ class SFWImages { async getMaid() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/img/maid", }); @@ -93,7 +82,6 @@ class SFWImages { async getDDLC() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/img/ddlc", }); @@ -101,7 +89,6 @@ class SFWImages { async getWallpaper() { return await this.#client.request.req({ - type: "API", method: "GET", endpoint: "/sfw/img/wallpaper", }); diff --git a/src/structures/Test/Test.js b/src/structures/Test/Test.js index 17ea533..787b341 100644 --- a/src/structures/Test/Test.js +++ b/src/structures/Test/Test.js @@ -4,7 +4,6 @@ class Test { } async test() { return await this.client.request.req({ - type: "API", method: "GET", endpoint: "/", }); @@ -12,7 +11,6 @@ class Test { async testGallery() { return await this.client.request.req({ - type: "API", method: "GET", endpoint: "/test/gallery", }); @@ -20,7 +18,6 @@ class Test { async testImage(type = "png" | "webp") { return await this.client.request.req({ - type: "API", method: "GET", endpoint: `/test/image?type=${type}`, }); @@ -28,7 +25,6 @@ class Test { async testError() { return await this.client.request.req({ - type: "API", method: "GET", endpoint: "/test/error", }); diff --git a/typedoc.json b/typedoc.json index d8a0821..bd5f71b 100644 --- a/typedoc.json +++ b/typedoc.json @@ -1,10 +1,12 @@ { - "out": "./docs", - "name": "fluxpoint-js", - "readme": "./README.md", - "theme": "default", - "entryPoints": ["typings/index.d.ts"], - "excludeExternals": false, - "excludePrivate": false, - "excludeInternal": false - } \ No newline at end of file + "out": "./docs", + "name": "fluxpoint-js", + "readme": "./README.md", + "theme": "default", + "entryPoints": ["typings/index.d.ts"], + "excludeExternals": false, + "excludePrivate": false, + "excludeInternal": false, + "highlightLanguages": ["javascript", "js", "ts", "typescript", "coffeescript"] +} + diff --git a/typings/index.d.ts b/typings/index.d.ts index 3e36e53..e0b9f85 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -1,6 +1,5 @@ declare module "fluxpoint-js" { interface IResponseOptions { - type: "IMG" | "API"; method: "GET" | "POST" | "PATCH" | "DELETE" | "PUT"; endpoint: string; data?: Object; @@ -162,10 +161,10 @@ declare module "fluxpoint-js" { private client: FluxpointClient; constructor(client: FluxpointClient); public htmlToMarkdown( - options: IHTMLToMarkdownOptions + options: IHTMLToMarkdownOptions, ): Promise; public markdownToHTML( - options: IMarkdownToHTML + options: IMarkdownToHTML, ): Promise; } class List { @@ -181,21 +180,21 @@ declare module "fluxpoint-js" { public generateTemplate(template: string): Promise; public generate(): Promise; public generateWelcome( - options: IGenerateWelcomeOptions + options: IGenerateWelcomeOptions, ): Promise; } class Minecraft { private client: FluxpointClient; constructor(client: FluxpointClient); public getPing( - options: IGetPingOptions + options: IGetPingOptions, ): Promise; public getPingByHost( - host: string | number + host: string | number, ): Promise; public getSkin( playerName: string, - type?: "head" | "cube" | "body" | "full" | "all" + type?: "head" | "cube" | "body" | "full" | "all", ): Promise; } class SFWImages { diff --git a/yarn.lock b/yarn.lock index 7fdc8a2..bab29e5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -14,6 +14,52 @@ dependencies: "@cspotcode/source-map-consumer" "0.8.0" +"@gerrit0/mini-shiki@^3.12.0": + version "3.14.0" + resolved "https://registry.yarnpkg.com/@gerrit0/mini-shiki/-/mini-shiki-3.14.0.tgz#ba66291e151b909cf96515e1cf6cba38748e4b62" + integrity sha512-c5X8fwPLOtUS8TVdqhynz9iV0GlOtFUT1ppXYzUUlEXe4kbZ/mvMT8wXoT8kCwUka+zsiloq7sD3pZ3+QVTuNQ== + dependencies: + "@shikijs/engine-oniguruma" "^3.14.0" + "@shikijs/langs" "^3.14.0" + "@shikijs/themes" "^3.14.0" + "@shikijs/types" "^3.14.0" + "@shikijs/vscode-textmate" "^10.0.2" + +"@shikijs/engine-oniguruma@^3.14.0": + version "3.14.0" + resolved "https://registry.yarnpkg.com/@shikijs/engine-oniguruma/-/engine-oniguruma-3.14.0.tgz#562bcce2f69cc65c92bcf2ccb637b2a7021f3d7b" + integrity sha512-TNcYTYMbJyy+ZjzWtt0bG5y4YyMIWC2nyePz+CFMWqm+HnZZyy9SWMgo8Z6KBJVIZnx8XUXS8U2afO6Y0g1Oug== + dependencies: + "@shikijs/types" "3.14.0" + "@shikijs/vscode-textmate" "^10.0.2" + +"@shikijs/langs@^3.14.0": + version "3.14.0" + resolved "https://registry.yarnpkg.com/@shikijs/langs/-/langs-3.14.0.tgz#71e6ca44e661b405209eb63d4449b57b9de529d0" + integrity sha512-DIB2EQY7yPX1/ZH7lMcwrK5pl+ZkP/xoSpUzg9YC8R+evRCCiSQ7yyrvEyBsMnfZq4eBzLzBlugMyTAf13+pzg== + dependencies: + "@shikijs/types" "3.14.0" + +"@shikijs/themes@^3.14.0": + version "3.14.0" + resolved "https://registry.yarnpkg.com/@shikijs/themes/-/themes-3.14.0.tgz#2b516c19caf63f78f81f5df9c087800c3b2c7404" + integrity sha512-fAo/OnfWckNmv4uBoUu6dSlkcBc+SA1xzj5oUSaz5z3KqHtEbUypg/9xxgJARtM6+7RVm0Q6Xnty41xA1ma1IA== + dependencies: + "@shikijs/types" "3.14.0" + +"@shikijs/types@3.14.0", "@shikijs/types@^3.14.0": + version "3.14.0" + resolved "https://registry.yarnpkg.com/@shikijs/types/-/types-3.14.0.tgz#4e666f8d31e319494daf23efcc19a32a5fdaa341" + integrity sha512-bQGgC6vrY8U/9ObG1Z/vTro+uclbjjD/uG58RvfxKZVD5p9Yc1ka3tVyEFy7BNJLzxuWyHH5NWynP9zZZS59eQ== + dependencies: + "@shikijs/vscode-textmate" "^10.0.2" + "@types/hast" "^3.0.4" + +"@shikijs/vscode-textmate@^10.0.2": + version "10.0.2" + resolved "https://registry.yarnpkg.com/@shikijs/vscode-textmate/-/vscode-textmate-10.0.2.tgz#a90ab31d0cc1dfb54c66a69e515bf624fa7b2224" + integrity sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg== + "@tsconfig/node10@^1.0.7": version "1.0.8" resolved "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.8.tgz" @@ -34,6 +80,13 @@ resolved "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.2.tgz" integrity sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA== +"@types/hast@^3.0.4": + version "3.0.4" + resolved "https://registry.yarnpkg.com/@types/hast/-/hast-3.0.4.tgz#1d6b39993b82cea6ad783945b0508c25903e15aa" + integrity sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ== + dependencies: + "@types/unist" "*" + "@types/node@^17.0.36": version "17.0.36" resolved "https://registry.npmjs.org/@types/node/-/node-17.0.36.tgz" @@ -49,6 +102,11 @@ resolved "https://registry.npmjs.org/@types/strip-json-comments/-/strip-json-comments-0.0.30.tgz" integrity sha512-7NQmHra/JILCd1QqpSzl8+mJRc8ZHz3uDm8YV1Ks9IhK0epEiTw8aIErbvH9PI+6XbqhyIQy3462nEsn7UVzjQ== +"@types/unist@*": + version "3.0.3" + resolved "https://registry.yarnpkg.com/@types/unist/-/unist-3.0.3.tgz#acaab0f919ce69cce629c2d4ed2eb4adc1b6c20c" + integrity sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q== + acorn-walk@^8.1.1: version "8.2.0" resolved "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz" @@ -72,6 +130,11 @@ arg@^4.1.0: resolved "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz" integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA== +argparse@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" + integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== + balanced-match@^1.0.0: version "1.0.2" resolved "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz" @@ -91,9 +154,9 @@ brace-expansion@^1.1.7: concat-map "0.0.1" brace-expansion@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.1.tgz#1edc459e0f0c548486ecf9fc99f2221364b9a0ae" - integrity sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA== + version "2.0.2" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.2.tgz#54fc53237a613d854c7bd37463aad17df87214e7" + integrity sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ== dependencies: balanced-match "^1.0.0" @@ -153,6 +216,11 @@ dynamic-dedupe@^0.3.0: dependencies: xtend "^4.0.0" +entities@^4.4.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/entities/-/entities-4.5.0.tgz#5d268ea5e7113ec74c4d033b79ea5a35a488fb48" + integrity sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw== + fill-range@^7.0.1: version "7.0.1" resolved "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz" @@ -194,17 +262,6 @@ glob@^7.1.3: once "^1.3.0" path-is-absolute "^1.0.0" -glob@^8.0.3: - version "8.0.3" - resolved "https://registry.yarnpkg.com/glob/-/glob-8.0.3.tgz#415c6eb2deed9e502c68fa44a272e6da6eeca42e" - integrity sha512-ull455NHSHI/Y1FqGaaYFaLGkNMMJbavMrEGFXG/PGrg6y7sutWHUHrz6gy6WEBH6akM1M414dWKCNs+IhKdiQ== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^5.0.1" - once "^1.3.0" - has@^1.0.3: version "1.0.3" resolved "https://registry.npmjs.org/has/-/has-1.0.3.tgz" @@ -256,10 +313,12 @@ is-number@^7.0.0: resolved "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz" integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== -jsonc-parser@^3.0.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/jsonc-parser/-/jsonc-parser-3.2.0.tgz#31ff3f4c2b9793f89c67212627c51c6394f88e76" - integrity sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w== +linkify-it@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/linkify-it/-/linkify-it-5.0.0.tgz#9ef238bfa6dc70bd8e7f9572b52d369af569b421" + integrity sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ== + dependencies: + uc.micro "^2.0.0" lunr@^2.3.9: version "2.3.9" @@ -271,10 +330,22 @@ make-error@^1.1.1: resolved "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz" integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== -marked@^4.0.16: - version "4.2.5" - resolved "https://registry.yarnpkg.com/marked/-/marked-4.2.5.tgz#979813dfc1252cc123a79b71b095759a32f42a5d" - integrity sha512-jPueVhumq7idETHkb203WDD4fMA3yV9emQ5vLwop58lu8bTclMghBWcYAavlDqIEMaisADinV1TooIFCfqOsYQ== +markdown-it@^14.1.0: + version "14.1.0" + resolved "https://registry.yarnpkg.com/markdown-it/-/markdown-it-14.1.0.tgz#3c3c5992883c633db4714ccb4d7b5935d98b7d45" + integrity sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg== + dependencies: + argparse "^2.0.1" + entities "^4.4.0" + linkify-it "^5.0.0" + mdurl "^2.0.0" + punycode.js "^2.3.1" + uc.micro "^2.1.0" + +mdurl@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/mdurl/-/mdurl-2.0.0.tgz#80676ec0433025dd3e17ee983d0fe8de5a2237e0" + integrity sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w== minimatch@^3.1.1: version "3.1.2" @@ -283,10 +354,10 @@ minimatch@^3.1.1: dependencies: brace-expansion "^1.1.7" -minimatch@^5.0.1, minimatch@^5.1.0: - version "5.1.2" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.1.2.tgz#0939d7d6f0898acbd1508abe534d1929368a8fff" - integrity sha512-bNH9mmM9qsJ2X4r2Nat1B//1dJVcn3+iBLa3IgqJ7EbGaDNepL9QSHOxN4ng33s52VMMhhIfgCYDk3C4ZmlDAg== +minimatch@^9.0.5: + version "9.0.5" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.5.tgz#d74f9dd6b57d83d8e98cfb82133b03978bc929e5" + integrity sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow== dependencies: brace-expansion "^2.0.1" @@ -334,6 +405,16 @@ picomatch@^2.0.4, picomatch@^2.2.1: resolved "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz" integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== +prettier@^3.6.2: + version "3.6.2" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.6.2.tgz#ccda02a1003ebbb2bfda6f83a074978f608b9393" + integrity sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ== + +punycode.js@^2.3.1: + version "2.3.1" + resolved "https://registry.yarnpkg.com/punycode.js/-/punycode.js-2.3.1.tgz#6b53e56ad75588234e79f4affa90972c7dd8cdb7" + integrity sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA== + readdirp@~3.6.0: version "3.6.0" resolved "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz" @@ -357,15 +438,6 @@ rimraf@^2.6.1: dependencies: glob "^7.1.3" -shiki@^0.10.1: - version "0.10.1" - resolved "https://registry.yarnpkg.com/shiki/-/shiki-0.10.1.tgz#6f9a16205a823b56c072d0f1a0bcd0f2646bef14" - integrity sha512-VsY7QJVzU51j5o1+DguUd+6vmCmZ5v/6gYu4vyYAhzjuNQU6P/vmSy4uQaOhvje031qQMiW0d2BwgMH52vqMng== - dependencies: - jsonc-parser "^3.0.0" - vscode-oniguruma "^1.6.1" - vscode-textmate "5.2.0" - source-map-support@^0.5.12, source-map-support@^0.5.17: version "0.5.21" resolved "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz" @@ -468,37 +540,32 @@ tsconfig@^7.0.0: strip-bom "^3.0.0" strip-json-comments "^2.0.0" -typedoc@^0.22.15: - version "0.22.18" - resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.22.18.tgz#1d000c33b66b88fd8cdfea14a26113a83b7e6591" - integrity sha512-NK9RlLhRUGMvc6Rw5USEYgT4DVAUFk7IF7Q6MYfpJ88KnTZP7EneEa4RcP+tX1auAcz7QT1Iy0bUSZBYYHdoyA== +typedoc@^0.28.14: + version "0.28.14" + resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.28.14.tgz#f48d650efc983b5cb3034b3b0e986b1702074326" + integrity sha512-ftJYPvpVfQvFzpkoSfHLkJybdA/geDJ8BGQt/ZnkkhnBYoYW6lBgPQXu6vqLxO4X75dA55hX8Af847H5KXlEFA== dependencies: - glob "^8.0.3" + "@gerrit0/mini-shiki" "^3.12.0" lunr "^2.3.9" - marked "^4.0.16" - minimatch "^5.1.0" - shiki "^0.10.1" + markdown-it "^14.1.0" + minimatch "^9.0.5" + yaml "^2.8.1" typescript@^4.6.4: version "4.6.4" resolved "https://registry.npmjs.org/typescript/-/typescript-4.6.4.tgz" integrity sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg== +uc.micro@^2.0.0, uc.micro@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/uc.micro/-/uc.micro-2.1.0.tgz#f8d3f7d0ec4c3dea35a7e3c8efa4cb8b45c9e7ee" + integrity sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A== + v8-compile-cache-lib@^3.0.0: version "3.0.1" resolved "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz" integrity sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg== -vscode-oniguruma@^1.6.1: - version "1.7.0" - resolved "https://registry.yarnpkg.com/vscode-oniguruma/-/vscode-oniguruma-1.7.0.tgz#439bfad8fe71abd7798338d1cd3dc53a8beea94b" - integrity sha512-L9WMGRfrjOhgHSdOYgCt/yRMsXzLDJSL7BPrOZt73gU0iWO4mpqzqQzOz5srxqTvMBaR0XZTSrVWo4j55Rc6cA== - -vscode-textmate@5.2.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/vscode-textmate/-/vscode-textmate-5.2.0.tgz#01f01760a391e8222fe4f33fbccbd1ad71aed74e" - integrity sha512-Uw5ooOQxRASHgu6C7GVvUxisKXfSgW4oFlO+aa+PAkgmH89O3CXxEEzNRNtHSqtXFTl0nAC1uYj0GMSH27uwtQ== - webidl-conversions@^3.0.0: version "3.0.1" resolved "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz" @@ -522,6 +589,11 @@ xtend@^4.0.0: resolved "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz" integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ== +yaml@^2.8.1: + version "2.8.1" + resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.8.1.tgz#1870aa02b631f7e8328b93f8bc574fac5d6c4d79" + integrity sha512-lcYcMxX2PO9XMGvAJkJ3OsNMw+/7FKes7/hgerGUYWIoWu5j/+YQqcZr5JnPZWzOsEBgMbSbiSTn/dv/69Mkpw== + yn@3.1.1: version "3.1.1" resolved "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz"