mirror of
https://github.com/discordjs/discord.js.git
synced 2024-07-08 02:11:22 +12:00
chore: deps
This commit is contained in:
parent
3755e66d41
commit
ae57d7facb
|
@ -47,13 +47,13 @@
|
|||
"@code-hike/mdx": "^0.9.0",
|
||||
"@discordjs/ui": "workspace:^",
|
||||
"@react-icons/all-files": "^4.1.0",
|
||||
"@vercel/analytics": "^1.1.1",
|
||||
"@vercel/analytics": "^1.1.3",
|
||||
"@vercel/edge-config": "^0.4.1",
|
||||
"@vercel/og": "^0.5.20",
|
||||
"@vercel/og": "^0.6.2",
|
||||
"ariakit": "2.0.0-next.44",
|
||||
"cmdk": "^0.2.0",
|
||||
"cmdk": "^0.2.1",
|
||||
"contentlayer": "^0.3.4",
|
||||
"next": "14.0.5-canary.21",
|
||||
"next": "14.1.0",
|
||||
"next-contentlayer": "^0.3.4",
|
||||
"next-themes": "^0.2.1",
|
||||
"react": "^18.2.0",
|
||||
|
@ -62,36 +62,36 @@
|
|||
"rehype-autolink-headings": "^6.1.1",
|
||||
"rehype-slug": "^5.1.0",
|
||||
"remark-gfm": "^3.0.1",
|
||||
"sharp": "^0.32.6"
|
||||
"sharp": "^0.33.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@next/bundle-analyzer": "14.0.5-canary.21",
|
||||
"@testing-library/react": "^14.1.2",
|
||||
"@testing-library/user-event": "^14.5.1",
|
||||
"@next/bundle-analyzer": "14.1.0",
|
||||
"@testing-library/react": "^14.2.1",
|
||||
"@testing-library/user-event": "^14.5.2",
|
||||
"@types/html-escaper": "^3.0.2",
|
||||
"@types/node": "18.18.8",
|
||||
"@types/react": "^18.2.45",
|
||||
"@types/react": "^18.2.54",
|
||||
"@types/react-dom": "^18.2.18",
|
||||
"@unocss/eslint-plugin": "^0.57.7",
|
||||
"@unocss/postcss": "^0.57.7",
|
||||
"@unocss/reset": "^0.57.7",
|
||||
"@unocss/eslint-plugin": "^0.58.5",
|
||||
"@unocss/postcss": "^0.58.5",
|
||||
"@unocss/reset": "^0.58.5",
|
||||
"@vitejs/plugin-react": "^4.2.1",
|
||||
"@vitest/coverage-v8": "^0.34.6",
|
||||
"@vitest/coverage-v8": "^1.2.2",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-neon": "^0.1.57",
|
||||
"eslint-formatter-pretty": "^5.0.0",
|
||||
"happy-dom": "^12.10.3",
|
||||
"eslint-config-neon": "^0.1.58",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"happy-dom": "^13.3.8",
|
||||
"hast-util-to-string": "^2.0.0",
|
||||
"hastscript": "^8.0.0",
|
||||
"html-escaper": "^3.0.3",
|
||||
"postcss": "^8.4.32",
|
||||
"prettier": "^3.1.1",
|
||||
"turbo": "^1.11.2",
|
||||
"typescript": "^5.2.2",
|
||||
"unocss": "^0.57.3",
|
||||
"vercel": "^32.7.2",
|
||||
"vitest": "^0.34.6"
|
||||
"postcss": "^8.4.34",
|
||||
"prettier": "^3.2.5",
|
||||
"turbo": "^1.12.2",
|
||||
"typescript": "^5.3.3",
|
||||
"unocss": "^0.58.5",
|
||||
"vercel": "^33.4.1",
|
||||
"vitest": "^1.2.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
|
|
@ -6,7 +6,7 @@ export default function NotFound() {
|
|||
<h1 className="text-[9rem] font-black leading-none md:text-[12rem]">404</h1>
|
||||
<h2 className="text-[2rem] md:text-[3rem]">Not found.</h2>
|
||||
<Link
|
||||
className="h-11 flex flex-row transform-gpu cursor-pointer select-none appearance-none place-items-center border-0 rounded bg-blurple px-6 text-base font-semibold leading-none text-white no-underline outline-none active:translate-y-px focus:ring focus:ring-width-2 focus:ring-white"
|
||||
className="h-11 flex flex-row transform-gpu cursor-pointer select-none appearance-none place-items-center border-0 rounded bg-blurple px-6 text-base text-white font-semibold leading-none no-underline outline-none active:translate-y-px focus:ring focus:ring-width-2 focus:ring-white"
|
||||
href="/guide"
|
||||
>
|
||||
Take me back
|
||||
|
|
|
@ -53,51 +53,51 @@
|
|||
"@microsoft/tsdoc": "^0.14.2",
|
||||
"@microsoft/tsdoc-config": "0.16.2",
|
||||
"@react-icons/all-files": "^4.1.0",
|
||||
"@vercel/analytics": "^1.1.1",
|
||||
"@vercel/analytics": "^1.1.3",
|
||||
"@vercel/edge-config": "^0.4.1",
|
||||
"@vercel/og": "^0.5.20",
|
||||
"@vercel/postgres": "^0.5.1",
|
||||
"@vercel/og": "^0.6.2",
|
||||
"@vercel/postgres": "^0.7.2",
|
||||
"ariakit": "2.0.0-next.44",
|
||||
"bright": "^0.8.4",
|
||||
"class-variance-authority": "^0.7.0",
|
||||
"cmdk": "^0.2.0",
|
||||
"meilisearch": "^0.35.1",
|
||||
"next": "14.0.5-canary.21",
|
||||
"cmdk": "^0.2.1",
|
||||
"meilisearch": "^0.37.0",
|
||||
"next": "14.1.0",
|
||||
"next-mdx-remote": "^4.4.1",
|
||||
"next-themes": "^0.2.1",
|
||||
"react": "^18.2.0",
|
||||
"react-custom-scrollbars-2": "^4.5.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-use": "^17.4.2",
|
||||
"react-use": "^17.5.0",
|
||||
"rehype-slug": "^5.1.0",
|
||||
"remark-gfm": "^3.0.1",
|
||||
"sharp": "^0.32.6",
|
||||
"sharp": "^0.33.2",
|
||||
"swr": "^2.2.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@next/bundle-analyzer": "14.0.5-canary.21",
|
||||
"@testing-library/react": "^14.1.2",
|
||||
"@testing-library/user-event": "^14.5.1",
|
||||
"@next/bundle-analyzer": "14.1.0",
|
||||
"@testing-library/react": "^14.2.1",
|
||||
"@testing-library/user-event": "^14.5.2",
|
||||
"@types/node": "18.18.8",
|
||||
"@types/react": "^18.2.45",
|
||||
"@types/react": "^18.2.54",
|
||||
"@types/react-dom": "^18.2.18",
|
||||
"@unocss/eslint-plugin": "^0.57.7",
|
||||
"@unocss/postcss": "^0.57.7",
|
||||
"@unocss/reset": "^0.57.7",
|
||||
"@unocss/eslint-plugin": "^0.58.5",
|
||||
"@unocss/postcss": "^0.58.5",
|
||||
"@unocss/reset": "^0.58.5",
|
||||
"@vitejs/plugin-react": "^4.2.1",
|
||||
"@vitest/coverage-v8": "^0.34.6",
|
||||
"@vitest/coverage-v8": "^1.2.2",
|
||||
"cpy-cli": "^5.0.0",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-neon": "^0.1.57",
|
||||
"eslint-formatter-pretty": "^5.0.0",
|
||||
"happy-dom": "^12.10.3",
|
||||
"postcss": "^8.4.32",
|
||||
"prettier": "^3.1.1",
|
||||
"turbo": "^1.11.2",
|
||||
"typescript": "^5.2.2",
|
||||
"vercel": "^32.7.2",
|
||||
"vitest": "^0.34.6"
|
||||
"eslint-config-neon": "^0.1.58",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"happy-dom": "^13.3.8",
|
||||
"postcss": "^8.4.34",
|
||||
"prettier": "^3.2.5",
|
||||
"turbo": "^1.12.2",
|
||||
"typescript": "^5.3.3",
|
||||
"vercel": "^33.4.1",
|
||||
"vitest": "^1.2.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
|
|
@ -13,7 +13,7 @@ export default function NotFound() {
|
|||
<h1 className="text-[9rem] font-black leading-none md:text-[12rem]">404</h1>
|
||||
<h2 className="text-[2rem] md:text-[3rem]">Not found.</h2>
|
||||
<Link
|
||||
className="h-11 flex flex-row transform-gpu cursor-pointer select-none appearance-none place-items-center border-0 rounded bg-blurple px-6 text-base font-semibold leading-none text-white no-underline outline-none active:translate-y-px focus:ring focus:ring-width-2 focus:ring-white"
|
||||
className="h-11 flex flex-row transform-gpu cursor-pointer select-none appearance-none place-items-center border-0 rounded bg-blurple px-6 text-base text-white font-semibold leading-none no-underline outline-none active:translate-y-px focus:ring focus:ring-width-2 focus:ring-white"
|
||||
href={href as Route}
|
||||
>
|
||||
Take me back
|
||||
|
|
|
@ -7,7 +7,7 @@ export default function NotFound() {
|
|||
<h1 className="text-[9rem] font-black leading-none md:text-[12rem]">404</h1>
|
||||
<h2 className="text-[2rem] md:text-[3rem]">Not found.</h2>
|
||||
<Link
|
||||
className="h-11 flex flex-row transform-gpu cursor-pointer select-none appearance-none place-items-center border-0 rounded bg-blurple px-6 text-base font-semibold leading-none text-white no-underline outline-none active:translate-y-px focus:ring focus:ring-width-2 focus:ring-white"
|
||||
className="h-11 flex flex-row transform-gpu cursor-pointer select-none appearance-none place-items-center border-0 rounded bg-blurple px-6 text-base text-white font-semibold leading-none no-underline outline-none active:translate-y-px focus:ring focus:ring-width-2 focus:ring-white"
|
||||
href={'/docs' as Route}
|
||||
>
|
||||
Take me back
|
||||
|
|
|
@ -18,7 +18,7 @@ export default function Page() {
|
|||
The <span className="relative rounded bg-blurple px-3 py-1 text-white">most popular</span> way to build
|
||||
Discord bots.
|
||||
</h1>
|
||||
<p className="my-6 leading-normal text-neutral-700 dark:text-neutral-300">{DESCRIPTION}</p>
|
||||
<p className="my-6 text-neutral-700 leading-normal dark:text-neutral-300">{DESCRIPTION}</p>
|
||||
<div className="flex flex-wrap place-content-center gap-4 md:flex-row">
|
||||
<Link className={buttonVariants()} href={'/docs' as Route}>
|
||||
Docs
|
||||
|
|
|
@ -52,7 +52,7 @@ export function CmdKDialog() {
|
|||
() =>
|
||||
searchResults?.map((item, idx) => (
|
||||
<Command.Item
|
||||
className="my-1 flex flex-row transform-gpu cursor-pointer select-none appearance-none place-content-center rounded bg-transparent px-4 py-2 text-base font-semibold leading-none text-black outline-none active:translate-y-px dark:border-dark-100 active:bg-neutral-200 hover:bg-neutral-100 dark:text-white [&[aria-selected]]:ring [&[aria-selected]]:ring-width-2 [&[aria-selected]]:ring-blurple dark:active:bg-dark-200 dark:hover:bg-dark-300"
|
||||
className="my-1 flex flex-row transform-gpu cursor-pointer select-none appearance-none place-content-center rounded bg-transparent px-4 py-2 text-base text-black font-semibold leading-none outline-none active:translate-y-px dark:border-dark-100 active:bg-neutral-200 hover:bg-neutral-100 dark:text-white [&[aria-selected]]:ring [&[aria-selected]]:ring-width-2 [&[aria-selected]]:ring-blurple dark:active:bg-dark-200 dark:hover:bg-dark-300"
|
||||
key={`${item.id}-${idx}`}
|
||||
onSelect={() => {
|
||||
router.push(item.path);
|
||||
|
|
|
@ -7,7 +7,7 @@ export function InheritanceText({ parent }: { readonly parent: ApiDeclaredItem }
|
|||
<span className="font-semibold">
|
||||
Inherited from{' '}
|
||||
<ItemLink
|
||||
className="rounded font-mono text-blurple outline-none focus:ring focus:ring-width-2 focus:ring-blurple"
|
||||
className="rounded text-blurple font-mono outline-none focus:ring focus:ring-width-2 focus:ring-blurple"
|
||||
itemURI={resolveItemURI(parent)}
|
||||
>
|
||||
{parent.displayName}
|
||||
|
|
|
@ -27,7 +27,7 @@ export function InstallButton() {
|
|||
}}
|
||||
type="button"
|
||||
>
|
||||
<span className="font-semibold text-blurple">{'>'}</span> npm install discord.js{' '}
|
||||
<span className="text-blurple font-semibold">{'>'}</span> npm install discord.js{' '}
|
||||
{state.value && interacted ? (
|
||||
<FiCheck className="ml-1 inline-block text-green-500" />
|
||||
) : (
|
||||
|
|
|
@ -80,7 +80,7 @@ export function TSDoc({ item, tsdoc }: { readonly item: ApiItem; readonly tsdoc:
|
|||
|
||||
return (
|
||||
<ItemLink
|
||||
className="rounded font-mono text-blurple outline-none focus:ring focus:ring-width-2 focus:ring-blurple"
|
||||
className="rounded text-blurple font-mono outline-none focus:ring focus:ring-width-2 focus:ring-blurple"
|
||||
itemURI={resolveItemURI(foundItem ?? resolved!.item)}
|
||||
key={idx}
|
||||
packageName={resolved?.package ?? item.getAssociatedPackage()?.displayName.replace('@discordjs/', '')}
|
||||
|
@ -99,7 +99,7 @@ export function TSDoc({ item, tsdoc }: { readonly item: ApiItem; readonly tsdoc:
|
|||
if (urlDestination) {
|
||||
return (
|
||||
<Link
|
||||
className="rounded font-mono text-blurple outline-none focus:ring focus:ring-width-2 focus:ring-blurple"
|
||||
className="rounded text-blurple font-mono outline-none focus:ring focus:ring-width-2 focus:ring-blurple"
|
||||
href={urlDestination as Route}
|
||||
key={idx}
|
||||
>
|
||||
|
|
|
@ -19,8 +19,9 @@ export function MethodDocumentation({ method, inheritedFrom }: MethodDocumentati
|
|||
const parent = method.parent as ApiDeclaredItem;
|
||||
const firstOverload = method
|
||||
.getMergedSiblings()
|
||||
.find((meth): meth is ApiMethod => meth.kind === ApiItemKind.Method && (meth as ApiMethod).overloadIndex === 1)
|
||||
?.tsdocComment;
|
||||
.find(
|
||||
(meth): meth is ApiMethod => meth.kind === ApiItemKind.Method && (meth as ApiMethod).overloadIndex === 1,
|
||||
)?.tsdocComment;
|
||||
|
||||
if (!(method.tsdocComment?.summarySection || firstOverload?.summarySection || method.parameters.length > 0)) {
|
||||
return null;
|
||||
|
|
26
package.json
26
package.json
|
@ -49,27 +49,27 @@
|
|||
},
|
||||
"homepage": "https://discord.js.org",
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^18.4.3",
|
||||
"@commitlint/config-angular": "^18.4.3",
|
||||
"@commitlint/cli": "^18.6.0",
|
||||
"@commitlint/config-angular": "^18.6.0",
|
||||
"@favware/cliff-jumper": "^2.2.3",
|
||||
"@favware/npm-deprecate": "^1.0.7",
|
||||
"@types/lodash.merge": "^4.6.9",
|
||||
"@unocss/eslint-plugin": "^0.57.7",
|
||||
"@vitest/coverage-v8": "^0.34.6",
|
||||
"@unocss/eslint-plugin": "^0.58.5",
|
||||
"@vitest/coverage-v8": "^1.2.2",
|
||||
"conventional-changelog-cli": "^4.1.0",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-neon": "^0.1.57",
|
||||
"eslint-config-neon": "^0.1.58",
|
||||
"husky": "^9.0.10",
|
||||
"is-ci": "^3.0.1",
|
||||
"lint-staged": "^15.2.0",
|
||||
"lint-staged": "^15.2.2",
|
||||
"lodash.merge": "^4.6.2",
|
||||
"prettier": "^3.1.1",
|
||||
"tsup": "^7.2.0",
|
||||
"turbo": "^1.11.2",
|
||||
"typescript": "^5.2.2",
|
||||
"unocss": "^0.57.3",
|
||||
"vercel": "^32.7.2",
|
||||
"vitest": "^0.34.6"
|
||||
"prettier": "^3.2.5",
|
||||
"tsup": "^8.0.1",
|
||||
"turbo": "^1.12.2",
|
||||
"typescript": "^5.3.3",
|
||||
"unocss": "^0.58.5",
|
||||
"vercel": "^33.4.1",
|
||||
"vitest": "^1.2.2"
|
||||
},
|
||||
"pnpm": {
|
||||
"peerDependencyRules": {
|
||||
|
|
|
@ -43,24 +43,24 @@
|
|||
"@actions/core": "^1.10.1",
|
||||
"@actions/glob": "^0.4.0",
|
||||
"@discordjs/scripts": "workspace:^",
|
||||
"@vercel/blob": "^0.15.1",
|
||||
"@vercel/postgres": "^0.5.1",
|
||||
"meilisearch": "^0.35.1",
|
||||
"@vercel/blob": "^0.20.0",
|
||||
"@vercel/postgres": "^0.7.2",
|
||||
"meilisearch": "^0.37.0",
|
||||
"tslib": "^2.6.2",
|
||||
"undici": "5.27.2"
|
||||
"undici": "6.6.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "18.18.8",
|
||||
"@vitest/coverage-v8": "^0.34.6",
|
||||
"@vitest/coverage-v8": "^1.2.2",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-neon": "^0.1.57",
|
||||
"eslint-formatter-pretty": "^5.0.0",
|
||||
"prettier": "^3.1.1",
|
||||
"tsup": "^7.2.0",
|
||||
"turbo": "^1.11.2",
|
||||
"typescript": "^5.2.2",
|
||||
"vitest": "^0.34.6"
|
||||
"eslint-config-neon": "^0.1.58",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.2.5",
|
||||
"tsup": "^8.0.1",
|
||||
"turbo": "^1.12.2",
|
||||
"typescript": "^5.3.3",
|
||||
"vitest": "^1.2.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
|
|
@ -35,15 +35,15 @@
|
|||
"@rushstack/node-core-library": "3.61.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jest": "^29.5.11",
|
||||
"@types/node": "^18.19.3",
|
||||
"@types/jest": "^29.5.12",
|
||||
"@types/node": "^18.19.14",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-neon": "^0.1.57",
|
||||
"eslint-formatter-pretty": "^5.0.0",
|
||||
"eslint-config-neon": "^0.1.58",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"jest": "^29.7.0",
|
||||
"prettier": "^3.1.1",
|
||||
"tsup": "^7.2.0",
|
||||
"turbo": "^1.11.2"
|
||||
"prettier": "^3.2.5",
|
||||
"tsup": "^8.0.1",
|
||||
"turbo": "^1.12.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,12 +52,12 @@
|
|||
"@types/node": "18.18.8",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-neon": "^0.1.57",
|
||||
"eslint-formatter-pretty": "^5.0.0",
|
||||
"prettier": "^3.1.1",
|
||||
"tsup": "^7.2.0",
|
||||
"turbo": "^1.11.2",
|
||||
"typescript": "^5.2.2"
|
||||
"eslint-config-neon": "^0.1.58",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.2.5",
|
||||
"tsup": "^8.0.1",
|
||||
"turbo": "^1.12.2",
|
||||
"typescript": "^5.3.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
|
|
@ -63,19 +63,19 @@
|
|||
"typescript": "^5.2.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jest": "^29.5.11",
|
||||
"@types/jest": "^29.5.12",
|
||||
"@types/lodash": "^4.14.202",
|
||||
"@types/node": "^18.19.3",
|
||||
"@types/node": "^18.19.14",
|
||||
"@types/resolve": "^1.20.6",
|
||||
"@types/semver": "^7.5.6",
|
||||
"cpy-cli": "^5.0.0",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-neon": "^0.1.57",
|
||||
"eslint-formatter-pretty": "^5.0.0",
|
||||
"eslint-config-neon": "^0.1.58",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"jest": "^29.7.0",
|
||||
"prettier": "^3.1.1",
|
||||
"tsup": "^7.2.0",
|
||||
"turbo": "^1.11.2"
|
||||
"prettier": "^3.2.5",
|
||||
"tsup": "^8.0.1",
|
||||
"turbo": "^1.12.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -260,6 +260,7 @@ export class ExportAnalyzer {
|
|||
: undefined;
|
||||
|
||||
const resolvedModule: ts.ResolvedModuleFull | undefined = TypeScriptInternals.getResolvedModule(
|
||||
this._program,
|
||||
importOrExportDeclaration.getSourceFile(),
|
||||
moduleSpecifier,
|
||||
mode,
|
||||
|
@ -856,6 +857,7 @@ export class ExportAnalyzer {
|
|||
)
|
||||
: undefined;
|
||||
const resolvedModule: ts.ResolvedModuleFull | undefined = TypeScriptInternals.getResolvedModule(
|
||||
this._program,
|
||||
importOrExportDeclaration.getSourceFile(),
|
||||
moduleSpecifier,
|
||||
mode,
|
||||
|
|
|
@ -369,7 +369,7 @@ export class Span {
|
|||
* can make changes to Span.modification for each node.
|
||||
*/
|
||||
public forEach(callback: (span: Span) => void): void {
|
||||
// eslint-disable-next-line n/callback-return, n/no-callback-literal
|
||||
// eslint-disable-next-line n/callback-return
|
||||
callback(this);
|
||||
for (const child of this.children) {
|
||||
// eslint-disable-next-line unicorn/no-array-for-each
|
||||
|
|
|
@ -75,14 +75,19 @@ export class TypeScriptInternals {
|
|||
* The compiler populates this cache as part of analyzing the source file.
|
||||
*/
|
||||
public static getResolvedModule(
|
||||
program: ts.Program,
|
||||
sourceFile: ts.SourceFile,
|
||||
moduleNameText: string,
|
||||
mode: ts.ModuleKind.CommonJS | ts.ModuleKind.ESNext | undefined,
|
||||
): ts.ResolvedModuleFull | undefined {
|
||||
// Compiler internal:
|
||||
// https://github.com/microsoft/TypeScript/blob/v4.7.2/src/compiler/utilities.ts#L161
|
||||
|
||||
return (ts as any).getResolvedModule(sourceFile, moduleNameText, mode);
|
||||
// https://github.com/microsoft/TypeScript/blob/v5.3.3/src/compiler/types.ts#L4698
|
||||
const result: ts.ResolvedModuleWithFailedLookupLocations | undefined = (program as any).getResolvedModule(
|
||||
sourceFile,
|
||||
moduleNameText,
|
||||
mode,
|
||||
);
|
||||
return result?.resolvedModule;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -45,7 +45,7 @@ export class ApiExtractorCommandLine extends CommandLineParser {
|
|||
console.error(os.EOL + colors.red('ERROR: ' + error.message.trim()));
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-restricted-globals, n/prefer-global/process
|
||||
// eslint-disable-next-line no-restricted-globals
|
||||
process.exitCode = 1;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* eslint-disable n/prefer-global/process */
|
||||
/* eslint-disable no-restricted-globals */
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
||||
// See LICENSE in the project root for license information.
|
||||
|
|
|
@ -74,17 +74,17 @@
|
|||
"@discordjs/api-extractor": "workspace:^",
|
||||
"@favware/cliff-jumper": "^2.2.3",
|
||||
"@types/node": "18.18.8",
|
||||
"@vitest/coverage-v8": "^0.34.6",
|
||||
"@vitest/coverage-v8": "^1.2.2",
|
||||
"cross-env": "^7.0.3",
|
||||
"esbuild-plugin-version-injector": "^1.2.1",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-neon": "^0.1.57",
|
||||
"eslint-formatter-pretty": "^5.0.0",
|
||||
"prettier": "^3.1.1",
|
||||
"tsup": "^7.2.0",
|
||||
"turbo": "^1.11.2",
|
||||
"typescript": "^5.2.2",
|
||||
"vitest": "^0.34.6"
|
||||
"eslint-config-neon": "^0.1.58",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.2.5",
|
||||
"tsup": "^8.0.1",
|
||||
"turbo": "^1.12.2",
|
||||
"typescript": "^5.3.3",
|
||||
"vitest": "^1.2.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
"dependencies": {
|
||||
"@discordjs/formatters": "workspace:^",
|
||||
"@discordjs/util": "workspace:^",
|
||||
"@sapphire/shapeshift": "^3.9.5",
|
||||
"@sapphire/shapeshift": "^3.9.6",
|
||||
"discord-api-types": "0.37.61",
|
||||
"fast-deep-equal": "^3.1.3",
|
||||
"ts-mixer": "^6.0.3",
|
||||
|
@ -76,18 +76,18 @@
|
|||
"@discordjs/api-extractor": "workspace:^",
|
||||
"@favware/cliff-jumper": "^2.2.3",
|
||||
"@types/node": "16.18.60",
|
||||
"@vitest/coverage-v8": "^0.34.6",
|
||||
"@vitest/coverage-v8": "^1.2.2",
|
||||
"cross-env": "^7.0.3",
|
||||
"downlevel-dts": "^0.11.0",
|
||||
"esbuild-plugin-version-injector": "^1.2.1",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-neon": "^0.1.57",
|
||||
"eslint-formatter-pretty": "^5.0.0",
|
||||
"prettier": "^3.1.1",
|
||||
"tsup": "^7.2.0",
|
||||
"turbo": "^1.11.2",
|
||||
"typescript": "^5.2.2",
|
||||
"vitest": "^0.34.6"
|
||||
"eslint-config-neon": "^0.1.58",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.2.5",
|
||||
"tsup": "^8.0.1",
|
||||
"turbo": "^1.12.2",
|
||||
"typescript": "^5.3.3",
|
||||
"vitest": "^1.2.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.11.0"
|
||||
|
|
|
@ -63,17 +63,17 @@
|
|||
"@discordjs/api-extractor": "workspace:^",
|
||||
"@favware/cliff-jumper": "^2.2.3",
|
||||
"@types/node": "18.18.8",
|
||||
"@vitest/coverage-v8": "^0.34.6",
|
||||
"@vitest/coverage-v8": "^1.2.2",
|
||||
"cross-env": "^7.0.3",
|
||||
"esbuild-plugin-version-injector": "^1.2.1",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-neon": "^0.1.57",
|
||||
"eslint-formatter-pretty": "^5.0.0",
|
||||
"prettier": "^3.1.1",
|
||||
"tsup": "^7.2.0",
|
||||
"turbo": "^1.11.2",
|
||||
"typescript": "^5.2.2",
|
||||
"vitest": "^0.34.6"
|
||||
"eslint-config-neon": "^0.1.58",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.2.5",
|
||||
"tsup": "^8.0.1",
|
||||
"turbo": "^1.12.2",
|
||||
"typescript": "^5.3.3",
|
||||
"vitest": "^1.2.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
|
|
@ -67,7 +67,7 @@
|
|||
"@discordjs/rest": "workspace:^",
|
||||
"@discordjs/util": "workspace:^",
|
||||
"@discordjs/ws": "workspace:^",
|
||||
"@sapphire/snowflake": "^3.5.2",
|
||||
"@sapphire/snowflake": "^3.5.3",
|
||||
"@vladfrangu/async_event_emitter": "^2.2.4",
|
||||
"discord-api-types": "0.37.61"
|
||||
},
|
||||
|
@ -75,17 +75,17 @@
|
|||
"@discordjs/api-extractor": "workspace:^",
|
||||
"@favware/cliff-jumper": "^2.2.3",
|
||||
"@types/node": "18.18.8",
|
||||
"@vitest/coverage-v8": "^0.34.6",
|
||||
"@vitest/coverage-v8": "^1.2.2",
|
||||
"cross-env": "^7.0.3",
|
||||
"esbuild-plugin-version-injector": "^1.2.1",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-neon": "^0.1.57",
|
||||
"eslint-formatter-pretty": "^5.0.0",
|
||||
"prettier": "^3.1.1",
|
||||
"tsup": "^7.2.0",
|
||||
"turbo": "^1.11.2",
|
||||
"typescript": "^5.2.2",
|
||||
"vitest": "^0.34.6"
|
||||
"eslint-config-neon": "^0.1.58",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.2.5",
|
||||
"tsup": "^8.0.1",
|
||||
"turbo": "^1.12.2",
|
||||
"typescript": "^5.3.3",
|
||||
"vitest": "^1.2.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
|
|
@ -60,16 +60,16 @@
|
|||
"@types/node": "18.18.8",
|
||||
"@types/prompts": "^2.4.9",
|
||||
"@types/validate-npm-package-name": "^4.0.2",
|
||||
"@vitest/coverage-v8": "^0.34.6",
|
||||
"@vitest/coverage-v8": "^1.2.2",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-neon": "^0.1.57",
|
||||
"eslint-formatter-pretty": "^5.0.0",
|
||||
"prettier": "^3.1.1",
|
||||
"terser": "^5.26.0",
|
||||
"tsup": "^7.2.0",
|
||||
"typescript": "^5.2.2",
|
||||
"vitest": "^0.34.6"
|
||||
"eslint-config-neon": "^0.1.58",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.2.5",
|
||||
"terser": "^5.27.0",
|
||||
"tsup": "^8.0.1",
|
||||
"typescript": "^5.3.3",
|
||||
"vitest": "^1.2.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
|
|
@ -5,14 +5,14 @@
|
|||
"deploy": "deno run --allow-read --allow-env --allow-net src/util/deploy.ts",
|
||||
"format": "deno fmt",
|
||||
"fmt": "deno fmt",
|
||||
"start": "deno run --allow-read --allow-env --allow-net src/index.ts"
|
||||
"start": "deno run --allow-read --allow-env --allow-net src/index.ts",
|
||||
},
|
||||
"lint": {
|
||||
"include": ["src/"],
|
||||
"rules": {
|
||||
"tags": ["recommended"],
|
||||
"exclude": ["require-await", "no-await-in-sync-fn"]
|
||||
}
|
||||
"exclude": ["require-await", "no-await-in-sync-fn"],
|
||||
},
|
||||
},
|
||||
"fmt": {
|
||||
"useTabs": true,
|
||||
|
@ -20,7 +20,7 @@
|
|||
"semiColons": true,
|
||||
"singleQuote": true,
|
||||
"proseWrap": "preserve",
|
||||
"include": ["src/"]
|
||||
"include": ["src/"],
|
||||
},
|
||||
"compilerOptions": {
|
||||
"alwaysStrict": true,
|
||||
|
@ -36,6 +36,6 @@
|
|||
"allowUnreachableCode": false,
|
||||
"allowUnusedLabels": false,
|
||||
"exactOptionalPropertyTypes": false,
|
||||
"noImplicitOverride": true
|
||||
}
|
||||
"noImplicitOverride": true,
|
||||
},
|
||||
}
|
||||
|
|
|
@ -70,32 +70,32 @@
|
|||
"@discordjs/rest": "workspace:^",
|
||||
"@discordjs/util": "workspace:^",
|
||||
"@discordjs/ws": "workspace:^",
|
||||
"@sapphire/snowflake": "3.5.1",
|
||||
"@types/ws": "8.5.9",
|
||||
"@sapphire/snowflake": "3.5.3",
|
||||
"@types/ws": "8.5.10",
|
||||
"discord-api-types": "0.37.61",
|
||||
"fast-deep-equal": "3.1.3",
|
||||
"lodash.snakecase": "4.1.1",
|
||||
"tslib": "2.6.2",
|
||||
"undici": "5.27.2",
|
||||
"ws": "8.14.2"
|
||||
"undici": "6.6.1",
|
||||
"ws": "8.16.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@discordjs/api-extractor": "workspace:^",
|
||||
"@discordjs/docgen": "workspace:^",
|
||||
"@favware/cliff-jumper": "2.2.1",
|
||||
"@favware/cliff-jumper": "2.2.3",
|
||||
"@types/node": "16.18.60",
|
||||
"@typescript-eslint/eslint-plugin": "^6.15.0",
|
||||
"@typescript-eslint/parser": "^6.15.0",
|
||||
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
||||
"@typescript-eslint/parser": "^6.21.0",
|
||||
"cross-env": "^7.0.3",
|
||||
"dtslint": "4.2.1",
|
||||
"eslint": "8.53.0",
|
||||
"eslint": "8.56.0",
|
||||
"eslint-formatter-pretty": "5.0.0",
|
||||
"jest": "29.7.0",
|
||||
"prettier": "3.1.0",
|
||||
"tsd": "0.29.0",
|
||||
"prettier": "3.2.5",
|
||||
"tsd": "0.30.4",
|
||||
"tslint": "6.1.3",
|
||||
"turbo": "^1.11.2",
|
||||
"typescript": "5.2.2"
|
||||
"turbo": "^1.12.2",
|
||||
"typescript": "5.3.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.11.0"
|
||||
|
|
|
@ -178,9 +178,10 @@ class MessageManager extends CachedManager {
|
|||
const messageId = this.resolveId(message);
|
||||
if (!messageId) throw new DiscordjsTypeError(ErrorCodes.InvalidType, 'message', 'MessageResolvable');
|
||||
|
||||
const { body, files } = await (options instanceof MessagePayload
|
||||
? options
|
||||
: MessagePayload.create(message instanceof Message ? message : this, options)
|
||||
const { body, files } = await (
|
||||
options instanceof MessagePayload
|
||||
? options
|
||||
: MessagePayload.create(message instanceof Message ? message : this, options)
|
||||
)
|
||||
.resolveBody()
|
||||
.resolveFiles();
|
||||
|
|
|
@ -59,9 +59,9 @@
|
|||
"homepage": "https://discord.js.org",
|
||||
"dependencies": {
|
||||
"commander": "^11.1.0",
|
||||
"jsdoc-to-markdown": "^8.0.0",
|
||||
"jsdoc-to-markdown": "^8.0.1",
|
||||
"tslib": "^2.6.2",
|
||||
"typedoc": "^0.25.4"
|
||||
"typedoc": "^0.25.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@favware/cliff-jumper": "^2.2.3",
|
||||
|
@ -69,12 +69,12 @@
|
|||
"@types/node": "18.18.8",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-neon": "^0.1.57",
|
||||
"eslint-formatter-pretty": "^5.0.0",
|
||||
"prettier": "^3.1.1",
|
||||
"tsup": "^7.2.0",
|
||||
"turbo": "^1.11.2",
|
||||
"typescript": "^5.2.2"
|
||||
"eslint-config-neon": "^0.1.58",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.2.5",
|
||||
"tsup": "^8.0.1",
|
||||
"turbo": "^1.12.2",
|
||||
"typescript": "^5.3.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
|
|
@ -60,17 +60,17 @@
|
|||
"@discordjs/api-extractor": "workspace:^",
|
||||
"@favware/cliff-jumper": "^2.2.3",
|
||||
"@types/node": "16.18.60",
|
||||
"@vitest/coverage-v8": "^0.34.6",
|
||||
"@vitest/coverage-v8": "^1.2.2",
|
||||
"cross-env": "^7.0.3",
|
||||
"esbuild-plugin-version-injector": "^1.2.1",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-neon": "^0.1.57",
|
||||
"eslint-formatter-pretty": "^5.0.0",
|
||||
"prettier": "^3.1.1",
|
||||
"tsup": "^7.2.0",
|
||||
"turbo": "^1.11.2",
|
||||
"typescript": "^5.2.2",
|
||||
"vitest": "^0.34.6"
|
||||
"eslint-config-neon": "^0.1.58",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.2.5",
|
||||
"tsup": "^8.0.1",
|
||||
"turbo": "^1.12.2",
|
||||
"typescript": "^5.3.3",
|
||||
"vitest": "^1.2.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.11.0"
|
||||
|
|
|
@ -77,17 +77,17 @@
|
|||
"@discordjs/api-extractor": "workspace:^",
|
||||
"@favware/cliff-jumper": "^2.2.3",
|
||||
"@types/node": "18.18.8",
|
||||
"@vitest/coverage-v8": "^0.34.6",
|
||||
"@vitest/coverage-v8": "^1.2.2",
|
||||
"cross-env": "^7.0.3",
|
||||
"esbuild-plugin-version-injector": "^1.2.1",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-neon": "^0.1.57",
|
||||
"eslint-formatter-pretty": "^5.0.0",
|
||||
"prettier": "^3.1.1",
|
||||
"tsup": "^7.2.0",
|
||||
"turbo": "^1.11.2",
|
||||
"typescript": "^5.2.2",
|
||||
"vitest": "^0.34.6"
|
||||
"eslint-config-neon": "^0.1.58",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.2.5",
|
||||
"tsup": "^8.0.1",
|
||||
"turbo": "^1.12.2",
|
||||
"typescript": "^5.3.3",
|
||||
"vitest": "^1.2.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
|
|
@ -52,12 +52,12 @@
|
|||
"@types/node": "18.18.8",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-neon": "^0.1.57",
|
||||
"eslint-formatter-pretty": "^5.0.0",
|
||||
"prettier": "^3.1.1",
|
||||
"tsup": "^7.2.0",
|
||||
"turbo": "^1.11.2",
|
||||
"typescript": "^5.2.2"
|
||||
"eslint-config-neon": "^0.1.58",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.2.5",
|
||||
"tsup": "^8.0.1",
|
||||
"turbo": "^1.12.2",
|
||||
"typescript": "^5.3.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
|
|
@ -67,25 +67,25 @@
|
|||
"@discordjs/rest": "workspace:^",
|
||||
"@discordjs/util": "workspace:^",
|
||||
"tslib": "^2.6.2",
|
||||
"undici": "5.27.2"
|
||||
"undici": "6.6.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@discordjs/api-extractor": "workspace:^",
|
||||
"@favware/cliff-jumper": "^2.2.3",
|
||||
"@types/node": "18.18.8",
|
||||
"@types/supertest": "^2.0.16",
|
||||
"@vitest/coverage-v8": "^0.34.6",
|
||||
"@types/supertest": "^6.0.2",
|
||||
"@vitest/coverage-v8": "^1.2.2",
|
||||
"cross-env": "^7.0.3",
|
||||
"esbuild-plugin-version-injector": "^1.2.1",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-neon": "^0.1.57",
|
||||
"eslint-formatter-pretty": "^5.0.0",
|
||||
"prettier": "^3.1.1",
|
||||
"supertest": "^6.3.3",
|
||||
"tsup": "^7.2.0",
|
||||
"turbo": "^1.11.2",
|
||||
"typescript": "^5.2.2",
|
||||
"vitest": "^0.34.6"
|
||||
"eslint-config-neon": "^0.1.58",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.2.5",
|
||||
"supertest": "^6.3.4",
|
||||
"tsup": "^8.0.1",
|
||||
"turbo": "^1.12.2",
|
||||
"typescript": "^5.3.3",
|
||||
"vitest": "^1.2.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
|
|
@ -84,29 +84,29 @@
|
|||
"dependencies": {
|
||||
"@discordjs/collection": "workspace:^",
|
||||
"@discordjs/util": "workspace:^",
|
||||
"@sapphire/async-queue": "^1.5.1",
|
||||
"@sapphire/snowflake": "^3.5.2",
|
||||
"@sapphire/async-queue": "^1.5.2",
|
||||
"@sapphire/snowflake": "^3.5.3",
|
||||
"@vladfrangu/async_event_emitter": "^2.2.4",
|
||||
"discord-api-types": "0.37.61",
|
||||
"magic-bytes.js": "^1.7.0",
|
||||
"magic-bytes.js": "^1.8.0",
|
||||
"tslib": "^2.6.2",
|
||||
"undici": "5.27.2"
|
||||
"undici": "6.6.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@discordjs/api-extractor": "workspace:^",
|
||||
"@favware/cliff-jumper": "^2.2.3",
|
||||
"@types/node": "18.17.9",
|
||||
"@vitest/coverage-v8": "^0.34.6",
|
||||
"@vitest/coverage-v8": "^1.2.2",
|
||||
"cross-env": "^7.0.3",
|
||||
"esbuild-plugin-version-injector": "^1.2.1",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-neon": "^0.1.57",
|
||||
"eslint-formatter-pretty": "^5.0.0",
|
||||
"prettier": "^3.1.1",
|
||||
"tsup": "^7.2.0",
|
||||
"turbo": "^1.11.2",
|
||||
"typescript": "^5.2.2",
|
||||
"vitest": "^0.34.6"
|
||||
"eslint-config-neon": "^0.1.58",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.2.5",
|
||||
"tsup": "^8.0.1",
|
||||
"turbo": "^1.12.2",
|
||||
"typescript": "^5.3.3",
|
||||
"vitest": "^1.2.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.11.0"
|
||||
|
|
|
@ -58,26 +58,26 @@
|
|||
"@discordjs/api-extractor-utils": "workspace:^",
|
||||
"@microsoft/tsdoc": "0.14.2",
|
||||
"@microsoft/tsdoc-config": "0.16.2",
|
||||
"@vercel/blob": "^0.15.1",
|
||||
"@vercel/postgres": "^0.5.1",
|
||||
"@vercel/blob": "^0.20.0",
|
||||
"@vercel/postgres": "^0.7.2",
|
||||
"tslib": "^2.6.2",
|
||||
"undici": "5.27.2",
|
||||
"undici": "6.6.1",
|
||||
"yaml": "2.3.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@turbo/gen": "^1.11.2",
|
||||
"@turbo/gen": "^1.12.2",
|
||||
"@types/node": "18.18.8",
|
||||
"@vitest/coverage-v8": "^0.34.6",
|
||||
"@vitest/coverage-v8": "^1.2.2",
|
||||
"cross-env": "^7.0.3",
|
||||
"env-cmd": "^10.1.0",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-neon": "^0.1.57",
|
||||
"eslint-formatter-pretty": "^5.0.0",
|
||||
"prettier": "^3.1.1",
|
||||
"tsup": "^7.2.0",
|
||||
"turbo": "^1.11.2",
|
||||
"typescript": "^5.2.2",
|
||||
"vitest": "^0.34.6"
|
||||
"eslint-config-neon": "^0.1.58",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.2.5",
|
||||
"tsup": "^8.0.1",
|
||||
"turbo": "^1.12.2",
|
||||
"typescript": "^5.3.3",
|
||||
"vitest": "^1.2.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
|
|
@ -59,35 +59,35 @@
|
|||
"devDependencies": {
|
||||
"@favware/cliff-jumper": "^2.2.3",
|
||||
"@react-icons/all-files": "^4.1.0",
|
||||
"@storybook/addon-essentials": "^7.6.5",
|
||||
"@storybook/addon-interactions": "^7.6.5",
|
||||
"@storybook/addon-links": "^7.6.5",
|
||||
"@storybook/addon-essentials": "^7.6.12",
|
||||
"@storybook/addon-interactions": "^7.6.12",
|
||||
"@storybook/addon-links": "^7.6.12",
|
||||
"@storybook/addon-styling": "^1.3.7",
|
||||
"@storybook/blocks": "^7.6.5",
|
||||
"@storybook/react": "^7.6.5",
|
||||
"@storybook/react-vite": "^7.6.5",
|
||||
"@storybook/blocks": "^7.6.12",
|
||||
"@storybook/react": "^7.6.12",
|
||||
"@storybook/react-vite": "^7.6.12",
|
||||
"@storybook/testing-library": "^0.2.2",
|
||||
"@types/node": "18.18.8",
|
||||
"@types/react": "^18.2.45",
|
||||
"@types/react": "^18.2.54",
|
||||
"@types/react-dom": "^18.2.18",
|
||||
"@unocss/eslint-plugin": "^0.57.7",
|
||||
"@unocss/reset": "^0.57.7",
|
||||
"@unocss/eslint-plugin": "^0.58.5",
|
||||
"@unocss/reset": "^0.58.5",
|
||||
"@vitejs/plugin-react": "^4.2.1",
|
||||
"@vitest/coverage-v8": "^0.34.6",
|
||||
"chromatic": "^9.1.0",
|
||||
"@vitest/coverage-v8": "^1.2.2",
|
||||
"chromatic": "^10.7.1",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-neon": "^0.1.57",
|
||||
"eslint-formatter-pretty": "^5.0.0",
|
||||
"prettier": "^3.1.1",
|
||||
"eslint-config-neon": "^0.1.58",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.2.5",
|
||||
"prop-types": "^15.8.1",
|
||||
"storybook": "^7.6.5",
|
||||
"turbo": "^1.11.2",
|
||||
"typescript": "^5.2.2",
|
||||
"unocss": "^0.57.3",
|
||||
"vite": "^4.5.1",
|
||||
"vite-plugin-dts": "^3.6.4",
|
||||
"vitest": "^0.34.6"
|
||||
"storybook": "^7.6.12",
|
||||
"turbo": "^1.12.2",
|
||||
"typescript": "^5.3.3",
|
||||
"unocss": "^0.58.5",
|
||||
"vite": "^5.0.12",
|
||||
"vite-plugin-dts": "^3.7.2",
|
||||
"vitest": "^1.2.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
|
|
@ -42,7 +42,7 @@ export function DiscordMessage({
|
|||
<div className="static" id="content-wrapper">
|
||||
{followUp ? (
|
||||
<span
|
||||
className="absolute left-0 mr-1 hidden h-5.5 w-[56px] cursor-default select-none text-right text-xs leading-loose text-[rgb(163_166_170)] group-hover:inline-block"
|
||||
className="absolute left-0 mr-1 hidden h-5.5 w-[56px] cursor-default select-none text-right text-xs text-[rgb(163_166_170)] leading-loose group-hover:inline-block"
|
||||
id="time"
|
||||
>
|
||||
{time}
|
||||
|
|
|
@ -24,14 +24,14 @@ export function DiscordMessageAuthor({ avatar, bot, verified, color, time, usern
|
|||
</span>
|
||||
{bot ? (
|
||||
<span
|
||||
className="mr-1 inline-flex place-items-center rounded bg-blurple px-1 vertical-top text-[0.7rem]/4 font-normal text-white"
|
||||
className="mr-1 inline-flex place-items-center rounded bg-blurple px-1 vertical-top text-[0.7rem]/4 text-white font-normal"
|
||||
id="bot"
|
||||
>
|
||||
{verified ? <FiCheck className="mr-0.5 inline-block stroke-3" /> : null} BOT
|
||||
</span>
|
||||
) : null}
|
||||
</span>
|
||||
<span className="ml-1 cursor-default text-xs leading-snug text-[rgb(163_166_170)]" id="time">
|
||||
<span className="ml-1 cursor-default text-xs text-[rgb(163_166_170)] leading-snug" id="time">
|
||||
{time}
|
||||
</span>
|
||||
</h2>
|
||||
|
|
|
@ -14,7 +14,7 @@ export function DiscordMessageAuthorReply({ avatar, bot, verified, color, userna
|
|||
<img alt={`${username}'s avatar`} className="mr-1.5 h-4 w-4 select-none rounded-full" src={avatar} />
|
||||
{bot ? (
|
||||
<div
|
||||
className="mr-1 inline-flex place-items-center rounded bg-blurple px-1 vertical-top text-[0.7rem]/4 font-normal text-white"
|
||||
className="mr-1 inline-flex place-items-center rounded bg-blurple px-1 vertical-top text-[0.7rem]/4 text-white font-normal"
|
||||
id="bot"
|
||||
>
|
||||
{verified ? <FiCheck className="mr-0.5 inline-block stroke-3" /> : null} BOT
|
||||
|
|
|
@ -6,7 +6,7 @@ export interface IDiscordMessageEmbedTitle {
|
|||
export function DiscordMessageEmbedTitle({ title, url }: IDiscordMessageEmbedTitle) {
|
||||
return url ? (
|
||||
<a
|
||||
className="mt-2 font-medium text-blue-500 hover:underline"
|
||||
className="mt-2 text-blue-500 font-medium hover:underline"
|
||||
href={url}
|
||||
rel="noreferrer noopener external"
|
||||
target="_blank"
|
||||
|
|
|
@ -11,8 +11,8 @@ export interface IDiscordMessageInteraction {
|
|||
export function DiscordMessageInteraction({ author, authorNode, command }: IDiscordMessageInteraction) {
|
||||
return (
|
||||
<DiscordMessageBaseReply author={author} authorNode={authorNode}>
|
||||
<span className="mr-1 select-none text-sm leading-snug text-white">used</span>
|
||||
<div className="cursor-pointer text-sm leading-snug text-blurple hover:underline">{command}</div>
|
||||
<span className="mr-1 select-none text-sm text-white leading-snug">used</span>
|
||||
<div className="cursor-pointer text-sm text-blurple leading-snug hover:underline">{command}</div>
|
||||
</DiscordMessageBaseReply>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ export interface IDiscordMessageReply {
|
|||
export function DiscordMessageReply({ author, authorNode, content }: IDiscordMessageReply) {
|
||||
return (
|
||||
<DiscordMessageBaseReply author={author} authorNode={authorNode}>
|
||||
<div className="cursor-pointer select-none text-sm leading-snug text-[rgb(163_166_170)] hover:text-white">
|
||||
<div className="cursor-pointer select-none text-sm text-[rgb(163_166_170)] leading-snug hover:text-white">
|
||||
{content}
|
||||
</div>
|
||||
</DiscordMessageBaseReply>
|
||||
|
|
|
@ -64,18 +64,18 @@
|
|||
"@discordjs/api-extractor": "workspace:^",
|
||||
"@favware/cliff-jumper": "^2.2.3",
|
||||
"@types/node": "16.18.60",
|
||||
"@vitest/coverage-v8": "^0.34.6",
|
||||
"@vitest/coverage-v8": "^1.2.2",
|
||||
"cross-env": "^7.0.3",
|
||||
"esbuild-plugin-version-injector": "^1.2.1",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-neon": "^0.1.57",
|
||||
"eslint-formatter-pretty": "^5.0.0",
|
||||
"prettier": "^3.1.1",
|
||||
"tsd": "^0.29.0",
|
||||
"tsup": "^7.2.0",
|
||||
"turbo": "^1.11.2",
|
||||
"typescript": "^5.2.2",
|
||||
"vitest": "^0.34.6"
|
||||
"eslint-config-neon": "^0.1.58",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.2.5",
|
||||
"tsd": "^0.30.4",
|
||||
"tsup": "^8.0.1",
|
||||
"turbo": "^1.12.2",
|
||||
"typescript": "^5.3.3",
|
||||
"vitest": "^1.2.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.11.0"
|
||||
|
|
|
@ -66,29 +66,29 @@
|
|||
"discord-api-types": "0.37.61",
|
||||
"prism-media": "^1.3.5",
|
||||
"tslib": "^2.6.2",
|
||||
"ws": "^8.15.1"
|
||||
"ws": "^8.16.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.23.6",
|
||||
"@babel/preset-env": "^7.23.6",
|
||||
"@babel/core": "^7.23.9",
|
||||
"@babel/preset-env": "^7.23.9",
|
||||
"@babel/preset-typescript": "^7.23.3",
|
||||
"@discordjs/api-extractor": "workspace:^",
|
||||
"@favware/cliff-jumper": "^2.2.3",
|
||||
"@types/jest": "^29.5.11",
|
||||
"@types/jest": "^29.5.12",
|
||||
"@types/node": "16.18.60",
|
||||
"cross-env": "^7.0.3",
|
||||
"esbuild-plugin-version-injector": "^1.2.1",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-neon": "^0.1.57",
|
||||
"eslint-formatter-pretty": "^5.0.0",
|
||||
"eslint-config-neon": "^0.1.58",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"jest": "^29.7.0",
|
||||
"jest-websocket-mock": "^2.5.0",
|
||||
"mock-socket": "^9.3.1",
|
||||
"prettier": "^3.1.1",
|
||||
"tsup": "^7.2.0",
|
||||
"turbo": "^1.11.2",
|
||||
"prettier": "^3.2.5",
|
||||
"tsup": "^8.0.1",
|
||||
"turbo": "^1.12.2",
|
||||
"tweetnacl": "^1.0.3",
|
||||
"typescript": "^5.2.2"
|
||||
"typescript": "^5.3.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.11.0"
|
||||
|
|
|
@ -75,31 +75,31 @@
|
|||
"@discordjs/collection": "workspace:^",
|
||||
"@discordjs/rest": "workspace:^",
|
||||
"@discordjs/util": "workspace:^",
|
||||
"@sapphire/async-queue": "^1.5.1",
|
||||
"@sapphire/async-queue": "^1.5.2",
|
||||
"@types/ws": "^8.5.10",
|
||||
"@vladfrangu/async_event_emitter": "^2.2.4",
|
||||
"discord-api-types": "0.37.61",
|
||||
"tslib": "^2.6.2",
|
||||
"ws": "^8.15.1"
|
||||
"ws": "^8.16.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@discordjs/api-extractor": "workspace:^",
|
||||
"@favware/cliff-jumper": "^2.2.3",
|
||||
"@types/node": "18.17.9",
|
||||
"@vitest/coverage-v8": "^0.34.6",
|
||||
"@vitest/coverage-v8": "^1.2.2",
|
||||
"cross-env": "^7.0.3",
|
||||
"esbuild-plugin-version-injector": "^1.2.1",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-neon": "^0.1.57",
|
||||
"eslint-formatter-pretty": "^5.0.0",
|
||||
"eslint-config-neon": "^0.1.58",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"mock-socket": "^9.3.1",
|
||||
"prettier": "^3.1.1",
|
||||
"tsd": "^0.29.0",
|
||||
"tsup": "^7.2.0",
|
||||
"turbo": "^1.11.2",
|
||||
"typescript": "^5.2.2",
|
||||
"undici": "5.27.2",
|
||||
"vitest": "^0.34.6",
|
||||
"prettier": "^3.2.5",
|
||||
"tsd": "^0.30.4",
|
||||
"tsup": "^8.0.1",
|
||||
"turbo": "^1.12.2",
|
||||
"typescript": "^5.3.3",
|
||||
"undici": "6.6.1",
|
||||
"vitest": "^1.2.2",
|
||||
"zlib-sync": "^0.1.9"
|
||||
},
|
||||
"engines": {
|
||||
|
|
7694
pnpm-lock.yaml
7694
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue