mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
chore: deps
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
"@vitest/coverage-c8": "^0.23.4",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^8.24.0",
|
||||
"eslint-config-neon": "^0.1.33",
|
||||
"eslint-config-neon": "^0.1.34",
|
||||
"prettier": "^2.7.1",
|
||||
"tsup": "^6.2.3",
|
||||
"typescript": "^4.8.4",
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
"@types/node": "^16.11.64",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^8.24.0",
|
||||
"eslint-config-neon": "^0.1.33",
|
||||
"eslint-config-neon": "^0.1.34",
|
||||
"prettier": "^2.7.1",
|
||||
"tsup": "^6.2.3",
|
||||
"typescript": "^4.8.4"
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
"cross-env": "^7.0.3",
|
||||
"downlevel-dts": "^0.10.1",
|
||||
"eslint": "^8.24.0",
|
||||
"eslint-config-neon": "^0.1.33",
|
||||
"eslint-config-neon": "^0.1.34",
|
||||
"prettier": "^2.7.1",
|
||||
"tsup": "^6.2.3",
|
||||
"typescript": "^4.8.4",
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
"cross-env": "^7.0.3",
|
||||
"downlevel-dts": "^0.10.1",
|
||||
"eslint": "^8.24.0",
|
||||
"eslint-config-neon": "^0.1.33",
|
||||
"eslint-config-neon": "^0.1.34",
|
||||
"prettier": "^2.7.1",
|
||||
"tsup": "^6.2.3",
|
||||
"typescript": "^4.8.4",
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
"@types/node": "^16.11.64",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^8.24.0",
|
||||
"eslint-config-neon": "^0.1.33",
|
||||
"eslint-config-neon": "^0.1.34",
|
||||
"prettier": "^2.7.1",
|
||||
"tsup": "^6.2.3",
|
||||
"typescript": "^4.8.4"
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
"@types/node": "^16.11.64",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^8.24.0",
|
||||
"eslint-config-neon": "^0.1.33",
|
||||
"eslint-config-neon": "^0.1.34",
|
||||
"prettier": "^2.7.1",
|
||||
"tsup": "^6.2.3",
|
||||
"typescript": "^4.8.4"
|
||||
|
||||
@@ -68,9 +68,9 @@
|
||||
"cross-env": "^7.0.3",
|
||||
"downlevel-dts": "^0.10.1",
|
||||
"eslint": "^8.24.0",
|
||||
"eslint-config-neon": "^0.1.33",
|
||||
"eslint-config-neon": "^0.1.34",
|
||||
"prettier": "^2.7.1",
|
||||
"supertest": "^6.2.4",
|
||||
"supertest": "^6.3.0",
|
||||
"tsup": "^6.2.3",
|
||||
"typescript": "^4.8.4",
|
||||
"vitest": "^0.23.4"
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
"cross-env": "^7.0.3",
|
||||
"downlevel-dts": "^0.10.1",
|
||||
"eslint": "^8.24.0",
|
||||
"eslint-config-neon": "^0.1.33",
|
||||
"eslint-config-neon": "^0.1.34",
|
||||
"prettier": "^2.7.1",
|
||||
"tsup": "^6.2.3",
|
||||
"typescript": "^4.8.4",
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
"@vitest/coverage-c8": "^0.23.4",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^8.24.0",
|
||||
"eslint-config-neon": "^0.1.33",
|
||||
"eslint-config-neon": "^0.1.34",
|
||||
"prettier": "^2.7.1",
|
||||
"tsup": "^6.2.3",
|
||||
"typescript": "^4.8.4",
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
"cross-env": "^7.0.3",
|
||||
"downlevel-dts": "^0.10.1",
|
||||
"eslint": "^8.24.0",
|
||||
"eslint-config-neon": "^0.1.33",
|
||||
"eslint-config-neon": "^0.1.34",
|
||||
"prettier": "^2.7.1",
|
||||
"tsd": "^0.24.1",
|
||||
"tsup": "^6.2.3",
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
"cross-env": "^7.0.3",
|
||||
"downlevel-dts": "^0.10.1",
|
||||
"eslint": "^8.24.0",
|
||||
"eslint-config-neon": "^0.1.33",
|
||||
"eslint-config-neon": "^0.1.34",
|
||||
"jest": "^29.1.2",
|
||||
"jest-websocket-mock": "^2.4.0",
|
||||
"mock-socket": "^9.1.5",
|
||||
|
||||
@@ -80,8 +80,8 @@
|
||||
"concurrently": "^7.4.0",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^8.24.0",
|
||||
"eslint-config-neon": "^0.1.33",
|
||||
"happy-dom": "^6.0.4",
|
||||
"eslint-config-neon": "^0.1.34",
|
||||
"happy-dom": "^7.0.0",
|
||||
"prettier": "^2.7.1",
|
||||
"prettier-plugin-tailwindcss": "^0.1.13",
|
||||
"typescript": "^4.8.4",
|
||||
|
||||
@@ -52,8 +52,8 @@ export function CmdKDialog({
|
||||
() =>
|
||||
searchResults?.map((item) => (
|
||||
<Command.Item
|
||||
key={item.id}
|
||||
className="dark:border-dark-100 dark:hover:bg-dark-300 dark:active:bg-dark-200 [&[aria-selected]]:ring-blurple [&[aria-selected]]:ring-width-4 [&[aria-selected]]:ring my-1 flex flex transform-gpu cursor-pointer select-none appearance-none flex-col place-content-center rounded bg-transparent px-4 py-2 text-base font-semibold leading-none text-black outline-0 hover:bg-neutral-100 active:translate-y-px active:bg-neutral-200 dark:text-white"
|
||||
key={item.id}
|
||||
onSelect={() => {
|
||||
void router.push(item.path);
|
||||
dialog!.setOpen(false);
|
||||
@@ -116,19 +116,18 @@ export function CmdKDialog({
|
||||
return (
|
||||
<Dialog className="fixed top-1/4 left-1/2 z-50 -translate-x-1/2" state={dialog!}>
|
||||
<Command
|
||||
label="Command Menu"
|
||||
className="dark:bg-dark-300 min-w-xs sm:min-w-lg max-w-xs rounded bg-white sm:max-w-lg"
|
||||
label="Command Menu"
|
||||
shouldFilter={false}
|
||||
>
|
||||
<Command.Input
|
||||
className="dark:bg-dark-300 caret-blurple placeholder:text-dark-300/75 focus:ring-width-2 focus:ring-blurple w-full rounded border-0 bg-white p-4 text-lg outline-0 outline-0 focus:ring dark:placeholder:text-white/75"
|
||||
onValueChange={setSearch}
|
||||
placeholder="Quick search..."
|
||||
value={search}
|
||||
onValueChange={setSearch}
|
||||
/>
|
||||
<Command.List className="pt-0">
|
||||
<Command.Empty className="p-4 text-center">No results found</Command.Empty>
|
||||
|
||||
{search ? searchResultItems : null}
|
||||
</Command.List>
|
||||
</Command>
|
||||
|
||||
@@ -33,11 +33,11 @@ export function CodeListing({
|
||||
typeTokens: TokenDocumentation[];
|
||||
}>) {
|
||||
return (
|
||||
<div id={name} className="scroll-mt-30 flex flex-col gap-4">
|
||||
<div className="scroll-mt-30 flex flex-col gap-4" id={name}>
|
||||
<div className="md:-ml-8.5 flex flex-col gap-0.5 md:flex-row md:place-items-center md:gap-2">
|
||||
<a
|
||||
className="focus:ring-width-2 focus:ring-blurple hidden rounded outline-0 focus:ring md:inline-block"
|
||||
aria-label="Anchor"
|
||||
className="focus:ring-width-2 focus:ring-blurple hidden rounded outline-0 focus:ring md:inline-block"
|
||||
href={`#${name}`}
|
||||
>
|
||||
<FiLink size={20} />
|
||||
|
||||
@@ -73,16 +73,12 @@ export function DocContainer({
|
||||
<span>{generateIcon(kind)}</span>
|
||||
{name}
|
||||
</h2>
|
||||
|
||||
{subHeading}
|
||||
|
||||
<Section title="Summary" icon={<VscListSelection size={20} />} padded dense={matches}>
|
||||
<Section dense={matches} icon={<VscListSelection size={20} />} padded title="Summary">
|
||||
{summary ? <TSDoc node={summary} /> : <span>No summary provided.</span>}
|
||||
<div className="border-light-900 dark:border-dark-100 -mx-8 mt-6 border-t-2" />
|
||||
</Section>
|
||||
|
||||
<SyntaxHighlighter code={excerpt} />
|
||||
|
||||
{extendsTokens?.length ? (
|
||||
<div className="flex flex-row place-items-center gap-4">
|
||||
<h3 className="text-xl font-bold">Extends</h3>
|
||||
@@ -91,7 +87,6 @@ export function DocContainer({
|
||||
</span>
|
||||
</div>
|
||||
) : null}
|
||||
|
||||
{implementsTokens?.length ? (
|
||||
<div className="flex flex-row place-items-center gap-4">
|
||||
<h3 className="text-xl font-bold">Implements</h3>
|
||||
@@ -105,15 +100,14 @@ export function DocContainer({
|
||||
</span>
|
||||
</div>
|
||||
) : null}
|
||||
|
||||
<div className="flex flex-col gap-4">
|
||||
{typeParams?.length ? (
|
||||
<Section
|
||||
title="Type Parameters"
|
||||
defaultClosed
|
||||
dense={matches}
|
||||
icon={<VscSymbolParameter size={20} />}
|
||||
padded
|
||||
dense={matches}
|
||||
defaultClosed
|
||||
title="Type Parameters"
|
||||
>
|
||||
<TypeParamTable data={typeParams} />
|
||||
</Section>
|
||||
@@ -124,15 +118,15 @@ export function DocContainer({
|
||||
{(kind === 'Class' || kind === 'Interface') && (methods?.length || properties?.length) ? (
|
||||
<aside className="h-[calc(100vh - 72px)] dark:bg-dark-600 dark:border-dark-100 border-light-800 fixed top-[72px] right-0 bottom-0 z-20 hidden w-64 border-l bg-white pr-2 xl:block">
|
||||
<Scrollbars
|
||||
universal
|
||||
autoHide
|
||||
hideTracksWhenNotNeeded
|
||||
renderThumbVertical={(props) => <div {...props} className="dark:bg-dark-100 bg-light-900 z-30 rounded" />}
|
||||
renderTrackVertical={(props) => (
|
||||
<div {...props} className="absolute top-0.5 right-0.5 bottom-0.5 z-30 w-1.5 rounded" />
|
||||
)}
|
||||
renderThumbVertical={(props) => <div {...props} className="dark:bg-dark-100 bg-light-900 z-30 rounded" />}
|
||||
universal
|
||||
>
|
||||
<TableOfContentItems properties={properties ?? []} methods={methods ?? []} />
|
||||
<TableOfContentItems methods={methods ?? []} properties={properties ?? []} />
|
||||
</Scrollbars>
|
||||
</aside>
|
||||
) : null}
|
||||
|
||||
@@ -7,7 +7,7 @@ export function HyperlinkedText({ tokens }: { tokens: TokenDocumentation[] }) {
|
||||
{tokens.map((token, idx) => {
|
||||
if (token.path) {
|
||||
return (
|
||||
<Link key={idx} href={token.path} prefetch={false}>
|
||||
<Link href={token.path} key={idx} prefetch={false}>
|
||||
<a className="text-blurple focus:ring-width-2 focus:ring-blurple rounded outline-0 focus:ring">
|
||||
{token.text}
|
||||
</a>
|
||||
|
||||
@@ -32,12 +32,12 @@ export function MethodItem({ data }: { data: ApiMethodJSON | ApiMethodSignatureJ
|
||||
);
|
||||
|
||||
return (
|
||||
<div id={key} className="scroll-mt-30 flex flex-col gap-4">
|
||||
<div className="scroll-mt-30 flex flex-col gap-4" id={key}>
|
||||
<div className="flex flex-col">
|
||||
<div className="flex flex-col gap-2 md:-ml-9 md:flex-row md:place-items-center">
|
||||
<a
|
||||
className="focus:ring-width-2 focus:ring-blurple hidden rounded outline-0 focus:ring md:inline-block"
|
||||
aria-label="Anchor"
|
||||
className="focus:ring-width-2 focus:ring-blurple hidden rounded outline-0 focus:ring md:inline-block"
|
||||
href={`#${key}`}
|
||||
>
|
||||
<FiLink size={20} />
|
||||
@@ -75,8 +75,8 @@ export function MethodItem({ data }: { data: ApiMethodJSON | ApiMethodSignatureJ
|
||||
{data.mergedSiblings.length > 1 ? (
|
||||
<div className="flex flex-row place-items-center gap-2">
|
||||
<MenuButton
|
||||
state={menu}
|
||||
className="bg-light-600 hover:bg-light-700 active:bg-light-800 dark:bg-dark-600 dark:hover:bg-dark-500 dark:active:bg-dark-400 focus:ring-width-2 focus:ring-blurple rounded p-3 outline-0 focus:ring"
|
||||
state={menu}
|
||||
>
|
||||
<div className="flex flex-row place-content-between place-items-center gap-2">
|
||||
<VscVersions size={20} />
|
||||
@@ -91,15 +91,17 @@ export function MethodItem({ data }: { data: ApiMethodJSON | ApiMethodSignatureJ
|
||||
</div>
|
||||
</MenuButton>
|
||||
<Menu
|
||||
state={menu}
|
||||
className="dark:bg-dark-600 border-light-800 dark:border-dark-100 focus:ring-width-2 focus:ring-blurple z-20 flex flex-col rounded border bg-white p-1 outline-0 focus:ring"
|
||||
state={menu}
|
||||
>
|
||||
{data.mergedSiblings.map((_, idx) => (
|
||||
<MenuItem
|
||||
key={idx}
|
||||
className="hover:bg-light-700 active:bg-light-800 dark:bg-dark-600 dark:hover:bg-dark-500 dark:active:bg-dark-400 focus:ring-width-2 focus:ring-blurple my-0.5 cursor-pointer rounded bg-white p-3 text-sm outline-0 focus:ring"
|
||||
key={idx}
|
||||
onClick={() => setOverloadIndex(idx + 1)}
|
||||
>{`Overload ${idx + 1}`}</MenuItem>
|
||||
>
|
||||
{`Overload ${idx + 1}`}
|
||||
</MenuItem>
|
||||
))}
|
||||
</Menu>
|
||||
</div>
|
||||
|
||||
@@ -23,7 +23,7 @@ export function ParameterTable({ data }: { data: ParameterDocumentation[] }) {
|
||||
|
||||
return (
|
||||
<div className="overflow-x-auto">
|
||||
<Table columns={['Name', 'Type', 'Optional', 'Description']} rows={rows} columnStyles={columnStyles} />
|
||||
<Table columnStyles={columnStyles} columns={['Name', 'Type', 'Optional', 'Description']} rows={rows} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -8,14 +8,14 @@ export function PropertyList({ data }: { data: ApiPropertyItemJSON[] }) {
|
||||
data.map((prop) => (
|
||||
<Fragment key={prop.name}>
|
||||
<CodeListing
|
||||
name={prop.name}
|
||||
typeTokens={prop.propertyTypeTokens}
|
||||
readonly={prop.readonly}
|
||||
optional={prop.optional}
|
||||
summary={prop.summary}
|
||||
comment={prop.comment}
|
||||
deprecation={prop.deprecated}
|
||||
inheritanceData={prop.inheritanceData}
|
||||
name={prop.name}
|
||||
optional={prop.optional}
|
||||
readonly={prop.readonly}
|
||||
summary={prop.summary}
|
||||
typeTokens={prop.propertyTypeTokens}
|
||||
/>
|
||||
<div className="border-light-900 dark:border-dark-100 -mx-8 border-t-2" />
|
||||
</Fragment>
|
||||
|
||||
@@ -17,7 +17,7 @@ export function PropertiesSection({ data }: { data: ApiClassJSON['properties'] |
|
||||
const matches = useMedia('(max-width: 768px)', true);
|
||||
|
||||
return data.length ? (
|
||||
<Section title="Properties" icon={<VscSymbolProperty size={20} />} padded dense={matches}>
|
||||
<Section dense={matches} icon={<VscSymbolProperty size={20} />} padded title="Properties">
|
||||
<PropertyList data={data} />
|
||||
</Section>
|
||||
) : null;
|
||||
@@ -27,7 +27,7 @@ export function MethodsSection({ data }: { data: ApiClassJSON['methods'] | ApiIn
|
||||
const matches = useMedia('(max-width: 768px)', true);
|
||||
|
||||
return data.length ? (
|
||||
<Section title="Methods" icon={<VscSymbolMethod size={20} />} padded dense={matches}>
|
||||
<Section dense={matches} icon={<VscSymbolMethod size={20} />} padded title="Methods">
|
||||
<MethodList data={data} />
|
||||
</Section>
|
||||
) : null;
|
||||
@@ -37,7 +37,7 @@ export function ParametersSection({ data }: { data: ParameterDocumentation[] })
|
||||
const matches = useMedia('(max-width: 768px)', true);
|
||||
|
||||
return data.length ? (
|
||||
<Section title="Parameters" icon={<VscSymbolConstant size={20} />} padded dense={matches}>
|
||||
<Section dense={matches} icon={<VscSymbolConstant size={20} />} padded title="Parameters">
|
||||
<ParameterTable data={data} />
|
||||
</Section>
|
||||
) : null;
|
||||
@@ -59,8 +59,8 @@ export function ConstructorSection({ data }: { data: ApiConstructorJSON }) {
|
||||
);
|
||||
|
||||
return data.parameters.length ? (
|
||||
<Section title="Constructor" icon={<VscSymbolMethod size={20} />} padded dense={matches}>
|
||||
<div id={data.name} className="scroll-mt-30 flex flex-col gap-4">
|
||||
<Section dense={matches} icon={<VscSymbolMethod size={20} />} padded title="Constructor">
|
||||
<div className="scroll-mt-30 flex flex-col gap-4" id={data.name}>
|
||||
<div className="flex flex-col">
|
||||
<div className="flex flex-col gap-2 md:flex-row md:place-items-center">
|
||||
{data.deprecated || data.protected ? (
|
||||
|
||||
@@ -85,17 +85,17 @@ export function SidebarItems({
|
||||
{(Object.keys(groupItems) as (keyof GroupedMembers)[])
|
||||
.filter((group) => groupItems[group].length)
|
||||
.map((group, idx) => (
|
||||
<Section key={idx} title={group} icon={resolveIcon(group)}>
|
||||
<Section icon={resolveIcon(group)} key={idx} title={group}>
|
||||
{groupItems[group].map((member, index) => (
|
||||
<Link key={index} href={member.path} prefetch={false}>
|
||||
<Link href={member.path} key={index} prefetch={false}>
|
||||
<a
|
||||
className={`dark:border-dark-100 border-light-800 focus:ring-width-2 focus:ring-blurple ml-5 flex flex-col border-l p-[5px] pl-6 outline-0 focus:rounded focus:border-0 focus:ring ${
|
||||
asPathWithoutQueryAndAnchor === member.path
|
||||
? 'bg-blurple text-white'
|
||||
: 'dark:hover:bg-dark-200 dark:active:bg-dark-100 hover:bg-light-700 active:bg-light-800'
|
||||
}`}
|
||||
title={member.name}
|
||||
onClick={() => setOpened(false)}
|
||||
title={member.name}
|
||||
>
|
||||
<div className="flex flex-row place-items-center gap-2 lg:text-sm">
|
||||
<span className="truncate">{member.name}</span>
|
||||
|
||||
@@ -82,22 +82,22 @@ export function SidebarLayout({
|
||||
|
||||
const packageMenuItems = useMemo(
|
||||
() => [
|
||||
<a key="discord.js" href="https://discord.js.org/#/docs/discord.js">
|
||||
<a href="https://discord.js.org/#/docs/discord.js" key="discord.js">
|
||||
<MenuItem
|
||||
className="hover:bg-light-700 active:bg-light-800 dark:bg-dark-600 dark:hover:bg-dark-500 dark:active:bg-dark-400 focus:ring-width-2 focus:ring-blurple my-0.5 rounded bg-white p-3 text-sm outline-0 focus:ring"
|
||||
state={packageMenu}
|
||||
onClick={() => packageMenu.setOpen(false)}
|
||||
state={packageMenu}
|
||||
>
|
||||
discord.js
|
||||
</MenuItem>
|
||||
</a>,
|
||||
...PACKAGES.map((pkg) => (
|
||||
<Link key={pkg} href={`/docs/packages/${pkg}/main`} passHref prefetch={false}>
|
||||
<Link href={`/docs/packages/${pkg}/main`} key={pkg} passHref prefetch={false}>
|
||||
<MenuItem
|
||||
className="hover:bg-light-700 active:bg-light-800 dark:bg-dark-600 dark:hover:bg-dark-500 dark:active:bg-dark-400 focus:ring-width-2 focus:ring-blurple my-0.5 rounded bg-white p-3 text-sm outline-0 focus:ring"
|
||||
as="a"
|
||||
state={packageMenu}
|
||||
className="hover:bg-light-700 active:bg-light-800 dark:bg-dark-600 dark:hover:bg-dark-500 dark:active:bg-dark-400 focus:ring-width-2 focus:ring-blurple my-0.5 rounded bg-white p-3 text-sm outline-0 focus:ring"
|
||||
onClick={() => packageMenu.setOpen(false)}
|
||||
state={packageMenu}
|
||||
>
|
||||
{pkg}
|
||||
</MenuItem>
|
||||
@@ -112,12 +112,12 @@ export function SidebarLayout({
|
||||
() =>
|
||||
versions
|
||||
?.map((item) => (
|
||||
<Link key={item} href={`/docs/packages/${packageName}/${item}`} passHref prefetch={false}>
|
||||
<Link href={`/docs/packages/${packageName}/${item}`} key={item} passHref prefetch={false}>
|
||||
<MenuItem
|
||||
className="hover:bg-light-700 active:bg-light-800 dark:bg-dark-600 dark:hover:bg-dark-500 dark:active:bg-dark-400 focus:ring-width-2 focus:ring-blurple my-0.5 rounded bg-white p-3 text-sm outline-0 focus:ring"
|
||||
as="a"
|
||||
state={versionMenu}
|
||||
className="hover:bg-light-700 active:bg-light-800 dark:bg-dark-600 dark:hover:bg-dark-500 dark:active:bg-dark-400 focus:ring-width-2 focus:ring-blurple my-0.5 rounded bg-white p-3 text-sm outline-0 focus:ring"
|
||||
onClick={() => versionMenu.setOpen(false)}
|
||||
state={versionMenu}
|
||||
>
|
||||
{item}
|
||||
</MenuItem>
|
||||
@@ -134,7 +134,7 @@ export function SidebarLayout({
|
||||
.split('/')
|
||||
.slice(1)
|
||||
.map((path, idx, original) => (
|
||||
<Link key={idx} href={`/${original.slice(0, idx + 1).join('/')}`} prefetch={false}>
|
||||
<Link href={`/${original.slice(0, idx + 1).join('/')}`} key={idx} prefetch={false}>
|
||||
<a className="focus:ring-width-2 focus:ring-blurple rounded outline-0 hover:underline focus:ring">{path}</a>
|
||||
</Link>
|
||||
)),
|
||||
@@ -174,8 +174,8 @@ export function SidebarLayout({
|
||||
<div className="h-18 block px-6">
|
||||
<div className="flex h-full flex-row place-content-between place-items-center">
|
||||
<Button
|
||||
className="focus:ring-width-2 focus:ring-blurple flex h-6 w-6 transform-gpu cursor-pointer select-none appearance-none place-items-center rounded border-0 bg-transparent p-0 text-sm font-semibold leading-none no-underline outline-0 focus:ring active:translate-y-px lg:hidden"
|
||||
aria-label="Menu"
|
||||
className="focus:ring-width-2 focus:ring-blurple flex h-6 w-6 transform-gpu cursor-pointer select-none appearance-none place-items-center rounded border-0 bg-transparent p-0 text-sm font-semibold leading-none no-underline outline-0 focus:ring active:translate-y-px lg:hidden"
|
||||
onClick={() => setOpened((open) => !open)}
|
||||
>
|
||||
<VscMenu size={24} />
|
||||
@@ -196,18 +196,18 @@ export function SidebarLayout({
|
||||
</div>
|
||||
</Button>
|
||||
<Button
|
||||
aria-label="GitHub"
|
||||
as="a"
|
||||
className="focus:ring-width-2 focus:ring-blurple flex h-6 w-6 transform-gpu cursor-pointer select-none appearance-none place-items-center rounded rounded-full border-0 bg-transparent p-0 text-sm font-semibold leading-none no-underline outline-0 focus:ring active:translate-y-px"
|
||||
aria-label="GitHub"
|
||||
href="https://github.com/discordjs/discord.js"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
target="_blank"
|
||||
>
|
||||
<VscGithubInverted size={24} />
|
||||
</Button>
|
||||
<Button
|
||||
className="focus:ring-width-2 focus:ring-blurple flex h-6 w-6 transform-gpu cursor-pointer select-none appearance-none place-items-center rounded-full rounded border-0 bg-transparent p-0 text-sm font-semibold leading-none no-underline outline-0 focus:ring active:translate-y-px"
|
||||
aria-label="Toggle theme"
|
||||
className="focus:ring-width-2 focus:ring-blurple flex h-6 w-6 transform-gpu cursor-pointer select-none appearance-none place-items-center rounded-full rounded border-0 bg-transparent p-0 text-sm font-semibold leading-none no-underline outline-0 focus:ring active:translate-y-px"
|
||||
onClick={() => toggleTheme()}
|
||||
>
|
||||
<VscColorMode size={24} />
|
||||
@@ -222,13 +222,13 @@ export function SidebarLayout({
|
||||
} lg:w-76 lg:max-w-76 lg:block`}
|
||||
>
|
||||
<Scrollbars
|
||||
universal
|
||||
autoHide
|
||||
hideTracksWhenNotNeeded
|
||||
renderThumbVertical={(props) => <div {...props} className="dark:bg-dark-100 bg-light-900 z-30 rounded" />}
|
||||
renderTrackVertical={(props) => (
|
||||
<div {...props} className="absolute top-0.5 right-0.5 bottom-0.5 z-30 w-1.5 rounded" />
|
||||
)}
|
||||
renderThumbVertical={(props) => <div {...props} className="dark:bg-dark-100 bg-light-900 z-30 rounded" />}
|
||||
universal
|
||||
>
|
||||
<div className="flex flex-col gap-3 px-3 pt-3">
|
||||
<MenuButton
|
||||
@@ -254,7 +254,6 @@ export function SidebarLayout({
|
||||
>
|
||||
{packageMenuItems}
|
||||
</Menu>
|
||||
|
||||
<MenuButton
|
||||
className="bg-light-600 hover:bg-light-700 active:bg-light-800 dark:bg-dark-600 dark:hover:bg-dark-500 dark:active:bg-dark-400 focus:ring-width-2 focus:ring-blurple rounded p-3 outline-0 focus:ring"
|
||||
state={versionMenu}
|
||||
@@ -279,7 +278,6 @@ export function SidebarLayout({
|
||||
{versionMenuItems}
|
||||
</Menu>
|
||||
</div>
|
||||
|
||||
<SidebarItems members={data?.members ?? []} setOpened={setOpened} />
|
||||
</Scrollbars>
|
||||
</nav>
|
||||
@@ -309,31 +307,31 @@ export function SidebarLayout({
|
||||
<div className="mx-auto flex max-w-6xl flex-col place-items-center gap-12 pt-12 lg:place-content-center">
|
||||
<div className="flex w-full flex-col place-content-between place-items-center gap-12 md:flex-row md:gap-0">
|
||||
<a
|
||||
href="https://vercel.com/?utm_source=discordjs&utm_campaign=oss"
|
||||
className="focus:ring-width-2 focus:ring-blurple rounded outline-0 focus:ring"
|
||||
target="_blank"
|
||||
href="https://vercel.com/?utm_source=discordjs&utm_campaign=oss"
|
||||
rel="noopener noreferrer"
|
||||
target="_blank"
|
||||
title="Vercel"
|
||||
>
|
||||
<Image src={vercelLogo} alt="Vercel" />
|
||||
<Image alt="Vercel" src={vercelLogo} />
|
||||
</a>
|
||||
<div className="flex flex-row gap-6 md:gap-12">
|
||||
<div className="flex flex-col gap-2">
|
||||
<div className="text-lg font-semibold">Community</div>
|
||||
<div className="flex flex-col gap-1">
|
||||
<a
|
||||
href="https://discord.gg/djs"
|
||||
className="focus:ring-width-2 focus:ring-blurple rounded outline-0 focus:ring"
|
||||
target="_blank"
|
||||
href="https://discord.gg/djs"
|
||||
rel="noopener noreferrer"
|
||||
target="_blank"
|
||||
>
|
||||
Discord
|
||||
</a>
|
||||
<a
|
||||
href="https://github.com/discordjs/discord.js/discussions"
|
||||
className="focus:ring-width-2 focus:ring-blurple rounded outline-0 focus:ring"
|
||||
target="_blank"
|
||||
href="https://github.com/discordjs/discord.js/discussions"
|
||||
rel="noopener noreferrer"
|
||||
target="_blank"
|
||||
>
|
||||
GitHub discussions
|
||||
</a>
|
||||
@@ -343,26 +341,26 @@ export function SidebarLayout({
|
||||
<div className="text-lg font-semibold">Project</div>
|
||||
<div className="flex flex-col gap-1">
|
||||
<a
|
||||
href="https://github.com/discordjs/discord.js"
|
||||
className="focus:ring-width-2 focus:ring-blurple rounded outline-0 focus:ring"
|
||||
target="_blank"
|
||||
href="https://github.com/discordjs/discord.js"
|
||||
rel="noopener noreferrer"
|
||||
target="_blank"
|
||||
>
|
||||
discord.js
|
||||
</a>
|
||||
<a
|
||||
href="https://discordjs.guide"
|
||||
className="focus:ring-width-2 focus:ring-blurple rounded outline-0 focus:ring"
|
||||
target="_blank"
|
||||
href="https://discordjs.guide"
|
||||
rel="noopener noreferrer"
|
||||
target="_blank"
|
||||
>
|
||||
discord.js guide
|
||||
</a>
|
||||
<a
|
||||
href="https://discord-api-types.dev"
|
||||
className="focus:ring-width-2 focus:ring-blurple rounded outline-0 focus:ring"
|
||||
target="_blank"
|
||||
href="https://discord-api-types.dev"
|
||||
rel="noopener noreferrer"
|
||||
target="_blank"
|
||||
>
|
||||
discord-api-types
|
||||
</a>
|
||||
|
||||
@@ -6,22 +6,22 @@ export function SyntaxHighlighter({ language = 'typescript', code }: { code: str
|
||||
<>
|
||||
<div data-theme="dark">
|
||||
<PrismAsyncLight
|
||||
wrapLines
|
||||
wrapLongLines
|
||||
codeTagProps={{ style: { fontFamily: 'JetBrains Mono' } }}
|
||||
language={language}
|
||||
style={vscDarkPlus}
|
||||
codeTagProps={{ style: { fontFamily: 'JetBrains Mono' } }}
|
||||
wrapLines
|
||||
wrapLongLines
|
||||
>
|
||||
{code}
|
||||
</PrismAsyncLight>
|
||||
</div>
|
||||
<div data-theme="light">
|
||||
<PrismAsyncLight
|
||||
wrapLines
|
||||
wrapLongLines
|
||||
codeTagProps={{ style: { fontFamily: 'JetBrains Mono' } }}
|
||||
language={language}
|
||||
style={prism}
|
||||
codeTagProps={{ style: { fontFamily: 'JetBrains Mono' } }}
|
||||
wrapLines
|
||||
wrapLongLines
|
||||
>
|
||||
{code}
|
||||
</PrismAsyncLight>
|
||||
|
||||
@@ -13,8 +13,8 @@ export function Table({
|
||||
() =>
|
||||
columns.map((column) => (
|
||||
<th
|
||||
key={column}
|
||||
className="border-light-900 dark:border-dark-100 break-normal border-b px-3 py-2 text-left text-sm"
|
||||
key={column}
|
||||
>
|
||||
{column}
|
||||
</th>
|
||||
@@ -25,13 +25,13 @@ export function Table({
|
||||
const data = useMemo(
|
||||
() =>
|
||||
rows.map((row, idx) => (
|
||||
<tr key={idx} className="[&>td]:last-of-type:border-0">
|
||||
<tr className="[&>td]:last-of-type:border-0" key={idx}>
|
||||
{Object.entries(row).map(([colName, val]) => (
|
||||
<td
|
||||
key={colName}
|
||||
className={`border-light-900 dark:border-dark-100 border-b px-3 py-2 text-left text-sm ${
|
||||
columnStyles?.[colName] ?? ''
|
||||
}`}
|
||||
key={colName}
|
||||
>
|
||||
{val}
|
||||
</td>
|
||||
|
||||
@@ -13,10 +13,10 @@ export function TableOfContentItems({
|
||||
() =>
|
||||
properties.map((prop) => (
|
||||
<a
|
||||
key={prop.name}
|
||||
href={`#${prop.name}`}
|
||||
title={prop.name}
|
||||
className="dark:border-dark-100 border-light-800 dark:hover:bg-dark-200 dark:active:bg-dark-100 hover:bg-light-700 active:bg-light-800 pl-6.5 focus:ring-width-2 focus:ring-blurple ml-[10px] border-l p-[5px] text-sm outline-0 focus:rounded focus:border-0 focus:ring"
|
||||
href={`#${prop.name}`}
|
||||
key={prop.name}
|
||||
title={prop.name}
|
||||
>
|
||||
<span className="line-clamp-1">{prop.name}</span>
|
||||
</a>
|
||||
@@ -37,10 +37,10 @@ export function TableOfContentItems({
|
||||
|
||||
return (
|
||||
<a
|
||||
key={key}
|
||||
href={`#${key}`}
|
||||
title={member.name}
|
||||
className="dark:border-dark-100 border-light-800 dark:hover:bg-dark-200 dark:active:bg-dark-100 hover:bg-light-700 active:bg-light-800 pl-6.5 focus:ring-width-2 focus:ring-blurple ml-[10px] flex flex-row place-items-center gap-2 border-l p-[5px] text-sm outline-0 focus:rounded focus:border-0 focus:ring"
|
||||
href={`#${key}`}
|
||||
key={key}
|
||||
title={member.name}
|
||||
>
|
||||
<span className="line-clamp-1">{member.name}</span>
|
||||
{member.overloadIndex && member.overloadIndex > 1 ? (
|
||||
|
||||
@@ -26,9 +26,9 @@ export function TypeParamTable({ data }: { data: TypeParameterData[] }) {
|
||||
return (
|
||||
<div className="overflow-x-auto">
|
||||
<Table
|
||||
columnStyles={rowElements}
|
||||
columns={['Name', 'Constraints', 'Optional', 'Default', 'Description']}
|
||||
rows={rows}
|
||||
columnStyles={rowElements}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -5,15 +5,15 @@ import { ConstructorSection, MethodsSection, PropertiesSection } from '../Sectio
|
||||
export function Class({ data }: { data: ApiClassJSON }) {
|
||||
return (
|
||||
<DocContainer
|
||||
name={data.name}
|
||||
kind={data.kind}
|
||||
excerpt={data.excerpt}
|
||||
summary={data.summary}
|
||||
typeParams={data.typeParameters}
|
||||
extendsTokens={data.extendsTokens}
|
||||
implementsTokens={data.implementsTokens}
|
||||
kind={data.kind}
|
||||
methods={data.methods}
|
||||
name={data.name}
|
||||
properties={data.properties}
|
||||
summary={data.summary}
|
||||
typeParams={data.typeParameters}
|
||||
>
|
||||
{data.constructor ? <ConstructorSection data={data.constructor} /> : null}
|
||||
<PropertiesSection data={data.properties} />
|
||||
|
||||
@@ -9,16 +9,16 @@ export function Enum({ data }: { data: ApiEnumJSON }) {
|
||||
const matches = useMedia('(max-width: 768px)', true);
|
||||
|
||||
return (
|
||||
<DocContainer name={data.name} kind={data.kind} excerpt={data.excerpt} summary={data.summary}>
|
||||
<Section title="Members" icon={<VscSymbolEnumMember size={20} />} padded dense={matches}>
|
||||
<DocContainer excerpt={data.excerpt} kind={data.kind} name={data.name} summary={data.summary}>
|
||||
<Section dense={matches} icon={<VscSymbolEnumMember size={20} />} padded title="Members">
|
||||
<div className="flex flex-col gap-4">
|
||||
{data.members.map((member) => (
|
||||
<CodeListing
|
||||
key={member.name}
|
||||
name={member.name}
|
||||
separator={CodeListingSeparatorType.Value}
|
||||
typeTokens={member.initializerTokens}
|
||||
summary={member.summary}
|
||||
typeTokens={member.initializerTokens}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
|
||||
@@ -12,19 +12,17 @@ export function Function({ data }: { data: ApiFunctionJSON }) {
|
||||
|
||||
return (
|
||||
<DocContainer
|
||||
excerpt={overloadedData.excerpt}
|
||||
kind={overloadedData.kind}
|
||||
name={`${overloadedData.name}${
|
||||
overloadedData.overloadIndex && overloadedData.overloadIndex > 1 ? ` (${overloadedData.overloadIndex})` : ''
|
||||
}`}
|
||||
kind={overloadedData.kind}
|
||||
excerpt={overloadedData.excerpt}
|
||||
summary={overloadedData.summary}
|
||||
typeParams={overloadedData.typeParameters}
|
||||
subHeading={
|
||||
data.mergedSiblings.length > 1 ? (
|
||||
<div className="flex flex-row place-items-center gap-2">
|
||||
<MenuButton
|
||||
state={menu}
|
||||
className="bg-light-600 hover:bg-light-700 active:bg-light-800 dark:bg-dark-600 dark:hover:bg-dark-500 dark:active:bg-dark-400 focus:ring-width-2 focus:ring-blurple rounded p-3 outline-0 focus:ring"
|
||||
state={menu}
|
||||
>
|
||||
<div className="flex flex-row place-content-between place-items-center gap-2">
|
||||
<VscVersions size={20} />
|
||||
@@ -39,20 +37,24 @@ export function Function({ data }: { data: ApiFunctionJSON }) {
|
||||
</div>
|
||||
</MenuButton>
|
||||
<Menu
|
||||
state={menu}
|
||||
className="dark:bg-dark-600 border-light-800 dark:border-dark-100 focus:ring-width-2 focus:ring-blurple z-20 flex flex-col rounded border bg-white p-1 outline-0 focus:ring"
|
||||
state={menu}
|
||||
>
|
||||
{data.mergedSiblings.map((_, idx) => (
|
||||
<MenuItem
|
||||
key={idx}
|
||||
className="hover:bg-light-700 active:bg-light-800 dark:bg-dark-600 dark:hover:bg-dark-500 dark:active:bg-dark-400 focus:ring-width-2 focus:ring-blurple my-0.5 cursor-pointer rounded bg-white p-3 text-sm outline-0 focus:ring"
|
||||
key={idx}
|
||||
onClick={() => setOverloadIndex(idx + 1)}
|
||||
>{`Overload ${idx + 1}`}</MenuItem>
|
||||
>
|
||||
{`Overload ${idx + 1}`}
|
||||
</MenuItem>
|
||||
))}
|
||||
</Menu>
|
||||
</div>
|
||||
) : null
|
||||
}
|
||||
summary={overloadedData.summary}
|
||||
typeParams={overloadedData.typeParameters}
|
||||
>
|
||||
<ParametersSection data={overloadedData.parameters} />
|
||||
</DocContainer>
|
||||
|
||||
@@ -5,13 +5,13 @@ import { MethodsSection, PropertiesSection } from '../Sections';
|
||||
export function Interface({ data }: { data: ApiInterfaceJSON }) {
|
||||
return (
|
||||
<DocContainer
|
||||
name={data.name}
|
||||
kind={data.kind}
|
||||
excerpt={data.excerpt}
|
||||
kind={data.kind}
|
||||
methods={data.methods}
|
||||
name={data.name}
|
||||
properties={data.properties}
|
||||
summary={data.summary}
|
||||
typeParams={data.typeParameters}
|
||||
methods={data.methods}
|
||||
properties={data.properties}
|
||||
>
|
||||
<PropertiesSection data={data.properties} />
|
||||
<MethodsSection data={data.methods} />
|
||||
|
||||
@@ -4,9 +4,9 @@ import { DocContainer } from '../DocContainer';
|
||||
export function TypeAlias({ data }: { data: ApiTypeAliasJSON }) {
|
||||
return (
|
||||
<DocContainer
|
||||
name={data.name}
|
||||
kind={data.kind}
|
||||
excerpt={data.excerpt}
|
||||
kind={data.kind}
|
||||
name={data.name}
|
||||
summary={data.summary}
|
||||
typeParams={data.typeParameters}
|
||||
/>
|
||||
|
||||
@@ -2,5 +2,5 @@ import type { ApiVariableJSON } from '@discordjs/api-extractor-utils';
|
||||
import { DocContainer } from '../DocContainer';
|
||||
|
||||
export function Variable({ data }: { data: ApiVariableJSON }) {
|
||||
return <DocContainer name={data.name} kind={data.kind} excerpt={data.excerpt} summary={data.summary} />;
|
||||
return <DocContainer excerpt={data.excerpt} kind={data.kind} name={data.name} summary={data.summary} />;
|
||||
}
|
||||
|
||||
@@ -21,13 +21,13 @@ export function TSDoc({ node }: { node: AnyDocNodeJSON }): JSX.Element {
|
||||
switch (node.kind) {
|
||||
case DocNodeKind.PlainText:
|
||||
return (
|
||||
<span key={idx} className="break-words">
|
||||
<span className="break-words" key={idx}>
|
||||
{(node as DocPlainTextJSON).text}
|
||||
</span>
|
||||
);
|
||||
case DocNodeKind.Paragraph:
|
||||
return (
|
||||
<span key={idx} className="break-words leading-relaxed">
|
||||
<span className="break-words leading-relaxed" key={idx}>
|
||||
{(node as DocNodeContainerJSON).nodes.map((node, idx) => createNode(node, idx))}
|
||||
</span>
|
||||
);
|
||||
@@ -38,7 +38,7 @@ export function TSDoc({ node }: { node: AnyDocNodeJSON }): JSX.Element {
|
||||
|
||||
if (codeDestination) {
|
||||
return (
|
||||
<Link key={idx} href={codeDestination.path} prefetch={false}>
|
||||
<Link href={codeDestination.path} key={idx} prefetch={false}>
|
||||
<a className="text-blurple focus:ring-width-2 focus:ring-blurple rounded font-mono outline-0 focus:ring">
|
||||
{text ?? codeDestination.name}
|
||||
</a>
|
||||
@@ -48,7 +48,7 @@ export function TSDoc({ node }: { node: AnyDocNodeJSON }): JSX.Element {
|
||||
|
||||
if (urlDestination) {
|
||||
return (
|
||||
<Link key={idx} href={urlDestination} prefetch={false}>
|
||||
<Link href={urlDestination} key={idx} prefetch={false}>
|
||||
<a className="text-blurple focus:ring-width-2 focus:ring-blurple rounded font-mono outline-0 focus:ring">
|
||||
{text ?? urlDestination}
|
||||
</a>
|
||||
@@ -62,7 +62,7 @@ export function TSDoc({ node }: { node: AnyDocNodeJSON }): JSX.Element {
|
||||
case DocNodeKind.CodeSpan: {
|
||||
const { code } = node as DocFencedCodeJSON;
|
||||
return (
|
||||
<code key={idx} className="font-mono text-sm">
|
||||
<code className="font-mono text-sm" key={idx}>
|
||||
{code}
|
||||
</code>
|
||||
);
|
||||
@@ -70,7 +70,7 @@ export function TSDoc({ node }: { node: AnyDocNodeJSON }): JSX.Element {
|
||||
|
||||
case DocNodeKind.FencedCode: {
|
||||
const { language, code } = node as DocFencedCodeJSON;
|
||||
return <SyntaxHighlighter key={idx} language={language} code={code} />;
|
||||
return <SyntaxHighlighter code={code} key={idx} language={language} />;
|
||||
}
|
||||
|
||||
case DocNodeKind.ParamBlock:
|
||||
@@ -84,7 +84,7 @@ export function TSDoc({ node }: { node: AnyDocNodeJSON }): JSX.Element {
|
||||
const index = numberOfExamples > 1 ? exampleIndex : undefined;
|
||||
|
||||
return (
|
||||
<BlockComment tagName={tag.tagName} key={idx} index={index}>
|
||||
<BlockComment index={index} key={idx} tagName={tag.tagName}>
|
||||
{(node as DocBlockJSON).content.map((node, idx) => createNode(node, idx))}
|
||||
</BlockComment>
|
||||
);
|
||||
|
||||
@@ -6,7 +6,7 @@ export default function FourOhFourPage() {
|
||||
<>
|
||||
<Head>
|
||||
<title key="title">discord.js | 404</title>
|
||||
<meta key="og_title" property="og:title" content="discord.js | 404" />
|
||||
<meta content="discord.js | 404" key="og_title" property="og:title" />
|
||||
</Head>
|
||||
<div className="mx-auto flex h-full max-w-lg flex-col place-content-center place-items-center gap-8 py-16 px-8 lg:py-0 lg:px-6">
|
||||
<h1 className="text-[9rem] font-black leading-none md:text-[12rem]">404</h1>
|
||||
|
||||
@@ -12,17 +12,17 @@ export default function MyApp({ Component, pageProps }: AppProps) {
|
||||
<>
|
||||
<Head>
|
||||
<title key="title">discord.js</title>
|
||||
<meta name="viewport" content="minimum-scale=1, initial-scale=1, width=device-width" />
|
||||
<meta name="theme-color" content="#5865f2" />
|
||||
<meta content="minimum-scale=1, initial-scale=1, width=device-width" name="viewport" />
|
||||
<meta content="#5865f2" name="theme-color" />
|
||||
</Head>
|
||||
<ThemeProvider
|
||||
attribute="class"
|
||||
defaultTheme="system"
|
||||
disableTransitionOnChange
|
||||
value={{
|
||||
light: 'light',
|
||||
dark: 'dark',
|
||||
}}
|
||||
disableTransitionOnChange
|
||||
>
|
||||
<NextProgress color="#5865f2" options={{ showSpinner: false }} />
|
||||
<Component {...pageProps} />
|
||||
|
||||
@@ -5,24 +5,23 @@ export default function Document() {
|
||||
return (
|
||||
<Html lang="en">
|
||||
<Head>
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
|
||||
<link rel="manifest" href="/site.webmanifest" />
|
||||
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#090a16" />
|
||||
|
||||
<meta name="color-scheme" content="light dark" />
|
||||
<meta name="apple-mobile-web-app-title" content="discord.js" />
|
||||
<meta name="application-name" content="discord.js" />
|
||||
<meta name="msapplication-TileColor" content="#090a16" />
|
||||
<meta key="description" name="description" content={DESCRIPTION} />
|
||||
<meta property="og:site_name" content="discord.js" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta key="og_title" property="og:title" content="discord.js" />
|
||||
<meta key="og_description" name="og:description" content={DESCRIPTION} />
|
||||
<meta property="og:image" content="https://discordjs.dev/open-graph.png" />
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:creator" content="@iCrawlToGo" />
|
||||
<link href="/apple-touch-icon.png" rel="apple-touch-icon" sizes="180x180" />
|
||||
<link href="/favicon-32x32.png" rel="icon" sizes="32x32" type="image/png" />
|
||||
<link href="/favicon-16x16.png" rel="icon" sizes="16x16" type="image/png" />
|
||||
<link href="/site.webmanifest" rel="manifest" />
|
||||
<link color="#090a16" href="/safari-pinned-tab.svg" rel="mask-icon" />
|
||||
<meta content="light dark" name="color-scheme" />
|
||||
<meta content="discord.js" name="apple-mobile-web-app-title" />
|
||||
<meta content="discord.js" name="application-name" />
|
||||
<meta content="#090a16" name="msapplication-TileColor" />
|
||||
<meta content={DESCRIPTION} key="description" name="description" />
|
||||
<meta content="discord.js" property="og:site_name" />
|
||||
<meta content="website" property="og:type" />
|
||||
<meta content="discord.js" key="og_title" property="og:title" />
|
||||
<meta content={DESCRIPTION} key="og_description" name="og:description" />
|
||||
<meta content="https://discordjs.dev/open-graph.png" property="og:image" />
|
||||
<meta content="summary_large_image" name="twitter:card" />
|
||||
<meta content="@iCrawlToGo" name="twitter:creator" />
|
||||
</Head>
|
||||
<body className="dark:bg-dark-800 bg-white">
|
||||
<Main />
|
||||
|
||||
@@ -222,7 +222,7 @@ const member = (props?: ApiItemJSON | undefined) => {
|
||||
case 'Class':
|
||||
return <Class data={props as ApiClassJSON} />;
|
||||
case 'Function':
|
||||
return <Function key={props.containerKey} data={props as ApiFunctionJSON} />;
|
||||
return <Function data={props as ApiFunctionJSON} key={props.containerKey} />;
|
||||
case 'Interface':
|
||||
return <Interface data={props as ApiInterfaceJSON} />;
|
||||
case 'TypeAlias':
|
||||
@@ -264,7 +264,7 @@ export default function SlugPage(props: Partial<SidebarLayoutProps & { error?: s
|
||||
<>
|
||||
<Head>
|
||||
<title key="title">{name}</title>
|
||||
<meta key="og_title" property="og:title" content={ogTitle} />
|
||||
<meta content={ogTitle} key="og_title" property="og:title" />
|
||||
</Head>
|
||||
{member(props.data.member)}
|
||||
</>
|
||||
|
||||
@@ -70,7 +70,7 @@ export default function VersionsRoute(props: Partial<VersionProps> & { error?: s
|
||||
<div className="flex grow flex-col place-content-center gap-4">
|
||||
<h1 className="text-2xl font-semibold">Select a version:</h1>
|
||||
{props.data?.versions.map((version) => (
|
||||
<Link key={version} href={`/docs/packages/${props.packageName}/${version}`} prefetch={false}>
|
||||
<Link href={`/docs/packages/${props.packageName}/${version}`} key={version} prefetch={false}>
|
||||
<a className="dark:bg-dark-400 dark:border-dark-100 dark:hover:bg-dark-300 dark:active:bg-dark-200 focus:ring-width-2 focus:ring-blurple flex flex h-11 transform-gpu cursor-pointer select-none appearance-none flex-col place-content-center rounded border border-neutral-300 bg-transparent p-4 text-base font-semibold leading-none text-black outline-0 hover:bg-neutral-100 focus:ring active:translate-y-px active:bg-neutral-200 dark:text-white">
|
||||
<div className="flex flex-row place-content-between place-items-center gap-4">
|
||||
<div className="flex flex-row place-content-between place-items-center gap-4">
|
||||
|
||||
@@ -78,7 +78,7 @@ export default function PackagesRoute(props: Partial<PackageProps> & { error?: s
|
||||
</div>
|
||||
</a>
|
||||
{PACKAGES.map((pkg) => (
|
||||
<Link key={pkg} href={`/docs/packages/${pkg}/${findLatestVersion(pkg)?.version ?? 'main'}`} prefetch={false}>
|
||||
<Link href={`/docs/packages/${pkg}/${findLatestVersion(pkg)?.version ?? 'main'}`} key={pkg} prefetch={false}>
|
||||
<a className="dark:bg-dark-400 dark:border-dark-100 dark:hover:bg-dark-300 dark:active:bg-dark-200 focus:ring-width-2 focus:ring-blurple flex h-11 transform-gpu cursor-pointer select-none appearance-none place-content-between rounded border border-neutral-300 bg-transparent p-4 text-base font-semibold leading-none text-black outline-0 hover:bg-neutral-100 focus:ring active:translate-y-px active:bg-neutral-200 dark:text-white">
|
||||
<div className="flex grow flex-row place-content-between place-items-center gap-4">
|
||||
<div className="flex grow flex-row place-content-between place-items-center gap-4">
|
||||
@@ -89,9 +89,9 @@ export default function PackagesRoute(props: Partial<PackageProps> & { error?: s
|
||||
<Link href={`/docs/packages/${pkg}`} prefetch={false}>
|
||||
<Button
|
||||
as="div"
|
||||
role="link"
|
||||
className="bg-blurple focus:ring-width-2 flex h-6 transform-gpu cursor-pointer select-none appearance-none place-content-center place-items-center rounded border-0 px-2 text-xs font-semibold leading-none text-white outline-0 focus:ring focus:ring-white active:translate-y-px"
|
||||
onClick={async (ev: MouseEvent<HTMLDivElement>) => handleClick(ev, pkg)}
|
||||
role="link"
|
||||
>
|
||||
Select version
|
||||
</Button>
|
||||
|
||||
@@ -28,16 +28,16 @@ export default function IndexRoute() {
|
||||
<a
|
||||
className="dark:bg-dark-400 dark:border-dark-100 dark:hover:bg-dark-300 dark:active:bg-dark-200 border-light-900 hover:bg-light-200 active:bg-light-300 focus:ring-blurple focus:ring-width-2 flex h-11 transform-gpu cursor-pointer select-none appearance-none place-items-center gap-2 rounded border bg-transparent px-4 text-base font-semibold leading-none text-black no-underline outline-0 focus:ring active:translate-y-px dark:text-white"
|
||||
href="https://discordjs.guide"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
target="_blank"
|
||||
>
|
||||
Guide <FiExternalLink />
|
||||
</a>
|
||||
<a
|
||||
className="dark:bg-dark-400 dark:border-dark-100 dark:hover:bg-dark-300 dark:active:bg-dark-200 border-light-900 hover:bg-light-200 active:bg-light-300 focus:ring-blurple focus:ring-width-2 flex h-11 transform-gpu cursor-pointer select-none appearance-none appearance-none place-items-center gap-2 rounded border bg-transparent px-4 text-base font-semibold leading-none text-black no-underline outline-0 focus:ring active:translate-y-px dark:text-white"
|
||||
href="https://github.com/discordjs/discord.js"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
target="_blank"
|
||||
>
|
||||
GitHub <FiExternalLink />
|
||||
</a>
|
||||
@@ -47,13 +47,13 @@ export default function IndexRoute() {
|
||||
</div>
|
||||
<div className="flex place-content-center">
|
||||
<a
|
||||
href="https://vercel.com/?utm_source=discordjs&utm_campaign=oss"
|
||||
className="focus:ring-width-2 focus:ring-blurple rounded outline-0 focus:ring"
|
||||
target="_blank"
|
||||
href="https://vercel.com/?utm_source=discordjs&utm_campaign=oss"
|
||||
rel="noopener noreferrer"
|
||||
target="_blank"
|
||||
title="Vercel"
|
||||
>
|
||||
<Image src={vercelLogo} alt="Vercel" />
|
||||
<Image alt="Vercel" src={vercelLogo} />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
"cross-env": "^7.0.3",
|
||||
"downlevel-dts": "^0.10.1",
|
||||
"eslint": "^8.24.0",
|
||||
"eslint-config-neon": "^0.1.33",
|
||||
"eslint-config-neon": "^0.1.34",
|
||||
"mock-socket": "^9.1.5",
|
||||
"prettier": "^2.7.1",
|
||||
"tsup": "^6.2.3",
|
||||
|
||||
237
yarn.lock
237
yarn.lock
@@ -41,7 +41,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@angular-eslint/eslint-plugin-template@npm:^14.0.3":
|
||||
"@angular-eslint/eslint-plugin-template@npm:^14.1.2":
|
||||
version: 14.1.2
|
||||
resolution: "@angular-eslint/eslint-plugin-template@npm:14.1.2"
|
||||
dependencies:
|
||||
@@ -57,7 +57,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@angular-eslint/eslint-plugin@npm:^14.0.3":
|
||||
"@angular-eslint/eslint-plugin@npm:^14.1.2":
|
||||
version: 14.1.2
|
||||
resolution: "@angular-eslint/eslint-plugin@npm:14.1.2"
|
||||
dependencies:
|
||||
@@ -70,7 +70,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@angular-eslint/template-parser@npm:^14.0.3":
|
||||
"@angular-eslint/template-parser@npm:^14.1.2":
|
||||
version: 14.1.2
|
||||
resolution: "@angular-eslint/template-parser@npm:14.1.2"
|
||||
dependencies:
|
||||
@@ -1830,7 +1830,7 @@ __metadata:
|
||||
"@vitest/coverage-c8": ^0.23.4
|
||||
cross-env: ^7.0.3
|
||||
eslint: ^8.24.0
|
||||
eslint-config-neon: ^0.1.33
|
||||
eslint-config-neon: ^0.1.34
|
||||
prettier: ^2.7.1
|
||||
tslib: ^2.4.0
|
||||
tsup: ^6.2.3
|
||||
@@ -1848,7 +1848,7 @@ __metadata:
|
||||
"@types/node": ^16.11.64
|
||||
cross-env: ^7.0.3
|
||||
eslint: ^8.24.0
|
||||
eslint-config-neon: ^0.1.33
|
||||
eslint-config-neon: ^0.1.34
|
||||
prettier: ^2.7.1
|
||||
tsup: ^6.2.3
|
||||
typescript: ^4.8.4
|
||||
@@ -1869,7 +1869,7 @@ __metadata:
|
||||
discord-api-types: ^0.37.11
|
||||
downlevel-dts: ^0.10.1
|
||||
eslint: ^8.24.0
|
||||
eslint-config-neon: ^0.1.33
|
||||
eslint-config-neon: ^0.1.34
|
||||
fast-deep-equal: ^3.1.3
|
||||
prettier: ^2.7.1
|
||||
ts-mixer: ^6.0.1
|
||||
@@ -1891,7 +1891,7 @@ __metadata:
|
||||
cross-env: ^7.0.3
|
||||
downlevel-dts: ^0.10.1
|
||||
eslint: ^8.24.0
|
||||
eslint-config-neon: ^0.1.33
|
||||
eslint-config-neon: ^0.1.34
|
||||
prettier: ^2.7.1
|
||||
tsup: ^6.2.3
|
||||
typescript: ^4.8.4
|
||||
@@ -1927,7 +1927,7 @@ __metadata:
|
||||
commander: ^9.4.1
|
||||
cross-env: ^7.0.3
|
||||
eslint: ^8.24.0
|
||||
eslint-config-neon: ^0.1.33
|
||||
eslint-config-neon: ^0.1.34
|
||||
jsdoc-to-markdown: ^7.1.1
|
||||
prettier: ^2.7.1
|
||||
tslib: ^2.4.0
|
||||
@@ -1948,7 +1948,7 @@ __metadata:
|
||||
"@types/node": ^16.11.64
|
||||
cross-env: ^7.0.3
|
||||
eslint: ^8.24.0
|
||||
eslint-config-neon: ^0.1.33
|
||||
eslint-config-neon: ^0.1.34
|
||||
prettier: ^2.7.1
|
||||
tslib: ^2.4.0
|
||||
tsup: ^6.2.3
|
||||
@@ -1970,9 +1970,9 @@ __metadata:
|
||||
cross-env: ^7.0.3
|
||||
downlevel-dts: ^0.10.1
|
||||
eslint: ^8.24.0
|
||||
eslint-config-neon: ^0.1.33
|
||||
eslint-config-neon: ^0.1.34
|
||||
prettier: ^2.7.1
|
||||
supertest: ^6.2.4
|
||||
supertest: ^6.3.0
|
||||
tslib: ^2.4.0
|
||||
tsup: ^6.2.3
|
||||
typescript: ^4.8.4
|
||||
@@ -1997,7 +1997,7 @@ __metadata:
|
||||
discord-api-types: ^0.37.11
|
||||
downlevel-dts: ^0.10.1
|
||||
eslint: ^8.24.0
|
||||
eslint-config-neon: ^0.1.33
|
||||
eslint-config-neon: ^0.1.34
|
||||
file-type: ^18.0.0
|
||||
prettier: ^2.7.1
|
||||
tslib: ^2.4.0
|
||||
@@ -2021,7 +2021,7 @@ __metadata:
|
||||
commander: ^9.4.1
|
||||
cross-env: ^7.0.3
|
||||
eslint: ^8.24.0
|
||||
eslint-config-neon: ^0.1.33
|
||||
eslint-config-neon: ^0.1.34
|
||||
prettier: ^2.7.1
|
||||
tslib: ^2.4.0
|
||||
tsup: ^6.2.3
|
||||
@@ -2042,7 +2042,7 @@ __metadata:
|
||||
cross-env: ^7.0.3
|
||||
downlevel-dts: ^0.10.1
|
||||
eslint: ^8.24.0
|
||||
eslint-config-neon: ^0.1.33
|
||||
eslint-config-neon: ^0.1.34
|
||||
prettier: ^2.7.1
|
||||
tsd: ^0.24.1
|
||||
tsup: ^6.2.3
|
||||
@@ -2067,7 +2067,7 @@ __metadata:
|
||||
discord-api-types: ^0.37.11
|
||||
downlevel-dts: ^0.10.1
|
||||
eslint: ^8.24.0
|
||||
eslint-config-neon: ^0.1.33
|
||||
eslint-config-neon: ^0.1.34
|
||||
jest: ^29.1.2
|
||||
jest-websocket-mock: ^2.4.0
|
||||
mock-socket: ^9.1.5
|
||||
@@ -2104,8 +2104,8 @@ __metadata:
|
||||
concurrently: ^7.4.0
|
||||
cross-env: ^7.0.3
|
||||
eslint: ^8.24.0
|
||||
eslint-config-neon: ^0.1.33
|
||||
happy-dom: ^6.0.4
|
||||
eslint-config-neon: ^0.1.34
|
||||
happy-dom: ^7.0.0
|
||||
meilisearch: ^0.28.0
|
||||
next: ^12.3.1
|
||||
next-mdx-remote: ^4.1.0
|
||||
@@ -2152,7 +2152,7 @@ __metadata:
|
||||
discord-api-types: ^0.37.11
|
||||
downlevel-dts: ^0.10.1
|
||||
eslint: ^8.24.0
|
||||
eslint-config-neon: ^0.1.33
|
||||
eslint-config-neon: ^0.1.34
|
||||
mock-socket: ^9.1.5
|
||||
prettier: ^2.7.1
|
||||
tslib: ^2.4.0
|
||||
@@ -2851,7 +2851,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@next/eslint-plugin-next@npm:^12.2.5":
|
||||
"@next/eslint-plugin-next@npm:^12.3.1":
|
||||
version: 12.3.1
|
||||
resolution: "@next/eslint-plugin-next@npm:12.3.1"
|
||||
dependencies:
|
||||
@@ -3248,7 +3248,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rushstack/eslint-patch@npm:^1.1.4":
|
||||
"@rushstack/eslint-patch@npm:^1.2.0":
|
||||
version: 1.2.0
|
||||
resolution: "@rushstack/eslint-patch@npm:1.2.0"
|
||||
checksum: faa749faae0e83c26ae9eb00ad36a897ac78f3cf27da8e8ff21c00bcf7973b598d823d8f2b3957ef66079288bcf577f94df831eae2d65f3f68d8ca32f18b6aff
|
||||
@@ -3991,13 +3991,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/eslint-plugin@npm:^5.36.1":
|
||||
version: 5.38.0
|
||||
resolution: "@typescript-eslint/eslint-plugin@npm:5.38.0"
|
||||
"@typescript-eslint/eslint-plugin@npm:^5.39.0":
|
||||
version: 5.39.0
|
||||
resolution: "@typescript-eslint/eslint-plugin@npm:5.39.0"
|
||||
dependencies:
|
||||
"@typescript-eslint/scope-manager": 5.38.0
|
||||
"@typescript-eslint/type-utils": 5.38.0
|
||||
"@typescript-eslint/utils": 5.38.0
|
||||
"@typescript-eslint/scope-manager": 5.39.0
|
||||
"@typescript-eslint/type-utils": 5.39.0
|
||||
"@typescript-eslint/utils": 5.39.0
|
||||
debug: ^4.3.4
|
||||
ignore: ^5.2.0
|
||||
regexpp: ^3.2.0
|
||||
@@ -4009,7 +4009,7 @@ __metadata:
|
||||
peerDependenciesMeta:
|
||||
typescript:
|
||||
optional: true
|
||||
checksum: e9cd1970c7c8a438aee912cf00aa27bdcde0a0fb57bbfe70eccda93eefa5b4fb4c7ebf5ba7a51744c1ec2b4df3a72b8dcd19dc17a9c3e4e3435f631ac6b10a6a
|
||||
checksum: 9d6835f3c2558f2287c5a45dc7d3b17b19c6777b5915b6ad737d892e5938746a3e76c3efd0e01156da0b17432a50d1e02480efc5105e8f9c75f1a3d45e18d6ee
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -4024,20 +4024,20 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/parser@npm:^5.36.1":
|
||||
version: 5.38.0
|
||||
resolution: "@typescript-eslint/parser@npm:5.38.0"
|
||||
"@typescript-eslint/parser@npm:^5.39.0":
|
||||
version: 5.39.0
|
||||
resolution: "@typescript-eslint/parser@npm:5.39.0"
|
||||
dependencies:
|
||||
"@typescript-eslint/scope-manager": 5.38.0
|
||||
"@typescript-eslint/types": 5.38.0
|
||||
"@typescript-eslint/typescript-estree": 5.38.0
|
||||
"@typescript-eslint/scope-manager": 5.39.0
|
||||
"@typescript-eslint/types": 5.39.0
|
||||
"@typescript-eslint/typescript-estree": 5.39.0
|
||||
debug: ^4.3.4
|
||||
peerDependencies:
|
||||
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
|
||||
peerDependenciesMeta:
|
||||
typescript:
|
||||
optional: true
|
||||
checksum: d5fb2d8f3a25cd6ff31326c665db4617f2d428247cad690f0404de440abbcfc7261528f54d642d2b121aae34aadecb55a24b72c8ef341cafdc7b2bbcbf7dae8d
|
||||
checksum: f55a1ef540e5c70d063e0112c0c4c950504d263ce180480973ca72c015a3e826942ebe8aa0a6bbd557def987b07d9d410784b6c96aa000679dfa3f4cb00e063c
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -4061,6 +4061,16 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/scope-manager@npm:5.39.0":
|
||||
version: 5.39.0
|
||||
resolution: "@typescript-eslint/scope-manager@npm:5.39.0"
|
||||
dependencies:
|
||||
"@typescript-eslint/types": 5.39.0
|
||||
"@typescript-eslint/visitor-keys": 5.39.0
|
||||
checksum: 8d8b55eb219a23b3de64602ea23269fb1e16120ff03c58ebb7ed571372cbc591c5f4641b91ba1cf7fd02cf13f7bb906a7bd6e3db6da3543c97fcea8c61c15c07
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/type-utils@npm:5.37.0":
|
||||
version: 5.37.0
|
||||
resolution: "@typescript-eslint/type-utils@npm:5.37.0"
|
||||
@@ -4078,12 +4088,12 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/type-utils@npm:5.38.0":
|
||||
version: 5.38.0
|
||||
resolution: "@typescript-eslint/type-utils@npm:5.38.0"
|
||||
"@typescript-eslint/type-utils@npm:5.39.0":
|
||||
version: 5.39.0
|
||||
resolution: "@typescript-eslint/type-utils@npm:5.39.0"
|
||||
dependencies:
|
||||
"@typescript-eslint/typescript-estree": 5.38.0
|
||||
"@typescript-eslint/utils": 5.38.0
|
||||
"@typescript-eslint/typescript-estree": 5.39.0
|
||||
"@typescript-eslint/utils": 5.39.0
|
||||
debug: ^4.3.4
|
||||
tsutils: ^3.21.0
|
||||
peerDependencies:
|
||||
@@ -4091,7 +4101,7 @@ __metadata:
|
||||
peerDependenciesMeta:
|
||||
typescript:
|
||||
optional: true
|
||||
checksum: 43f2f55329b2357bedf158a93a469d058a11c69f8f88ff891080b8cb5977bffe8d679923bce7048cbc076c083e0f5741c83b761355309d606cc4e217e1da4208
|
||||
checksum: 2bab5c1a8bc0956d8f9ba1fb6db56a89f8e40c4f7bb0c07b1581aa4ed4c8259a64d67bc9c6fccbdc8e62fc9330d30c3c5a84f30f28112ddb1e3995d2791a5ac2
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -4109,6 +4119,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/types@npm:5.39.0":
|
||||
version: 5.39.0
|
||||
resolution: "@typescript-eslint/types@npm:5.39.0"
|
||||
checksum: 5f67fe02adc87d594b6cc8ec5387d64419d4bbff701f4da51bf9929cdc50bc613df865e5a2457f13e4a637e8dfdb1fdf15fe8138f8968462de9e54ea056cc1a7
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/typescript-estree@npm:5.37.0":
|
||||
version: 5.37.0
|
||||
resolution: "@typescript-eslint/typescript-estree@npm:5.37.0"
|
||||
@@ -4145,6 +4162,24 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/typescript-estree@npm:5.39.0":
|
||||
version: 5.39.0
|
||||
resolution: "@typescript-eslint/typescript-estree@npm:5.39.0"
|
||||
dependencies:
|
||||
"@typescript-eslint/types": 5.39.0
|
||||
"@typescript-eslint/visitor-keys": 5.39.0
|
||||
debug: ^4.3.4
|
||||
globby: ^11.1.0
|
||||
is-glob: ^4.0.3
|
||||
semver: ^7.3.7
|
||||
tsutils: ^3.21.0
|
||||
peerDependenciesMeta:
|
||||
typescript:
|
||||
optional: true
|
||||
checksum: 86143dd9dd33ce65a20badbce5509ae4e77e9dfe202a6966dd416a8ce8147e5b05d12ce0b8f593ed7924797f6420d0bcd558c773042466e24386cdda24f24eb8
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/utils@npm:5.37.0":
|
||||
version: 5.37.0
|
||||
resolution: "@typescript-eslint/utils@npm:5.37.0"
|
||||
@@ -4177,6 +4212,22 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/utils@npm:5.39.0":
|
||||
version: 5.39.0
|
||||
resolution: "@typescript-eslint/utils@npm:5.39.0"
|
||||
dependencies:
|
||||
"@types/json-schema": ^7.0.9
|
||||
"@typescript-eslint/scope-manager": 5.39.0
|
||||
"@typescript-eslint/types": 5.39.0
|
||||
"@typescript-eslint/typescript-estree": 5.39.0
|
||||
eslint-scope: ^5.1.1
|
||||
eslint-utils: ^3.0.0
|
||||
peerDependencies:
|
||||
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
|
||||
checksum: 460a883775c24ed1a328db15101d58e1207797c97d2347a6e1adb2e26ef56ac0b525a326d2dd74333daf00e2b2e3dd28d51e0d4c4c38cdade2d132d8b08917cb
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/visitor-keys@npm:5.37.0":
|
||||
version: 5.37.0
|
||||
resolution: "@typescript-eslint/visitor-keys@npm:5.37.0"
|
||||
@@ -4197,6 +4248,16 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/visitor-keys@npm:5.39.0":
|
||||
version: 5.39.0
|
||||
resolution: "@typescript-eslint/visitor-keys@npm:5.39.0"
|
||||
dependencies:
|
||||
"@typescript-eslint/types": 5.39.0
|
||||
eslint-visitor-keys: ^3.3.0
|
||||
checksum: 941e49fd1f4d2e42cd15a52a50f6f1102e2a83b173d182b5dd43ba3d7b7f0f1457d74fcaac710da4a19c28f804c78bc265d900802f4e2c7c46a608fff3204e7c
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@unocss/astro@npm:0.45.26":
|
||||
version: 0.45.26
|
||||
resolution: "@unocss/astro@npm:0.45.26"
|
||||
@@ -5837,7 +5898,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"ci-info@npm:^3.2.0, ci-info@npm:^3.3.2":
|
||||
"ci-info@npm:^3.2.0, ci-info@npm:^3.4.0":
|
||||
version: 3.4.0
|
||||
resolution: "ci-info@npm:3.4.0"
|
||||
checksum: 7f660730170a6ce248e173b670587a0c583e31526d21afcd21f77c811c1aaeb8926999081542d1f30e12cce1df582d4c88709fa45f44c00498b46bdf21d4d21a
|
||||
@@ -7806,39 +7867,39 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"eslint-config-neon@npm:^0.1.33":
|
||||
version: 0.1.33
|
||||
resolution: "eslint-config-neon@npm:0.1.33"
|
||||
"eslint-config-neon@npm:^0.1.34":
|
||||
version: 0.1.34
|
||||
resolution: "eslint-config-neon@npm:0.1.34"
|
||||
dependencies:
|
||||
"@angular-eslint/eslint-plugin": ^14.0.3
|
||||
"@angular-eslint/eslint-plugin-template": ^14.0.3
|
||||
"@angular-eslint/template-parser": ^14.0.3
|
||||
"@next/eslint-plugin-next": ^12.2.5
|
||||
"@rushstack/eslint-patch": ^1.1.4
|
||||
"@typescript-eslint/eslint-plugin": ^5.36.1
|
||||
"@typescript-eslint/parser": ^5.36.1
|
||||
"@angular-eslint/eslint-plugin": ^14.1.2
|
||||
"@angular-eslint/eslint-plugin-template": ^14.1.2
|
||||
"@angular-eslint/template-parser": ^14.1.2
|
||||
"@next/eslint-plugin-next": ^12.3.1
|
||||
"@rushstack/eslint-patch": ^1.2.0
|
||||
"@typescript-eslint/eslint-plugin": ^5.39.0
|
||||
"@typescript-eslint/parser": ^5.39.0
|
||||
eslint-config-prettier: ^8.5.0
|
||||
eslint-plugin-cypress: ^2.12.1
|
||||
eslint-plugin-deprecation: ^1.3.2
|
||||
eslint-plugin-import: "npm:eslint-plugin-i@latest"
|
||||
eslint-plugin-jest: ^27.0.1
|
||||
eslint-plugin-jest: ^27.1.1
|
||||
eslint-plugin-jsdoc: ^39.3.6
|
||||
eslint-plugin-jsx-a11y: ^6.6.1
|
||||
eslint-plugin-lodash: ^7.4.0
|
||||
eslint-plugin-n: ^15.2.5
|
||||
eslint-plugin-n: ^15.3.0
|
||||
eslint-plugin-promise: ^6.0.1
|
||||
eslint-plugin-react: ^7.31.1
|
||||
eslint-plugin-react: ^7.31.8
|
||||
eslint-plugin-react-hooks: ^4.6.0
|
||||
eslint-plugin-rxjs: ^5.0.2
|
||||
eslint-plugin-rxjs-angular: ^2.0.0
|
||||
eslint-plugin-sonarjs: ^0.15.0
|
||||
eslint-plugin-svelte3: ^4.0.0
|
||||
eslint-plugin-tsdoc: ^0.2.16
|
||||
eslint-plugin-tsdoc: ^0.2.17
|
||||
eslint-plugin-typescript-sort-keys: ^2.1.0
|
||||
eslint-plugin-unicorn: ^43.0.2
|
||||
eslint-plugin-vue: ^9.4.0
|
||||
vue-eslint-parser: ^9.0.3
|
||||
checksum: 304a6fcf7dbb052cb5bc8e461f948baf05a1a67075fc7c52d85fb8830ec267b2d8391de0755b157306ba7dd8bbd111ef8b64e77a3aa2638655a1b0d88ecb5cea
|
||||
eslint-plugin-unicorn: ^44.0.1
|
||||
eslint-plugin-vue: ^9.6.0
|
||||
vue-eslint-parser: ^9.1.0
|
||||
checksum: effc2817df1ed7f106a150a9e669197d4cd9a8ca8afabc7b8d8a7f9c421b5fc2b841a26acf467e6c50be714f4d9bc54d5ffeb9075f68ff1e6e7dd4e99974c4bc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -7967,9 +8028,9 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"eslint-plugin-jest@npm:^27.0.1":
|
||||
version: 27.0.4
|
||||
resolution: "eslint-plugin-jest@npm:27.0.4"
|
||||
"eslint-plugin-jest@npm:^27.1.1":
|
||||
version: 27.1.1
|
||||
resolution: "eslint-plugin-jest@npm:27.1.1"
|
||||
dependencies:
|
||||
"@typescript-eslint/utils": ^5.10.0
|
||||
peerDependencies:
|
||||
@@ -7980,7 +8041,7 @@ __metadata:
|
||||
optional: true
|
||||
jest:
|
||||
optional: true
|
||||
checksum: 8408d8a53bae946527ac4120865c29b3468cf58d8e5ff3b9c75c5303bb5aa451ac7e04329fc004cf6302f84431e6c6c1f2ba9009b0150d1718df58ea490ed3f5
|
||||
checksum: 215a60d0c9ca641f3c1c7c5e4ff78093ad80c5f0ee22f44c50b9c8625ec0624ec4f47bf281684157f6231a4c480a4ca40bafad4ac6438a2105bb8527920e341f
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -8035,7 +8096,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"eslint-plugin-n@npm:^15.2.5":
|
||||
"eslint-plugin-n@npm:^15.3.0":
|
||||
version: 15.3.0
|
||||
resolution: "eslint-plugin-n@npm:15.3.0"
|
||||
dependencies:
|
||||
@@ -8071,7 +8132,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"eslint-plugin-react@npm:^7.31.1":
|
||||
"eslint-plugin-react@npm:^7.31.8":
|
||||
version: 7.31.8
|
||||
resolution: "eslint-plugin-react@npm:7.31.8"
|
||||
dependencies:
|
||||
@@ -8150,7 +8211,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"eslint-plugin-tsdoc@npm:^0.2.16":
|
||||
"eslint-plugin-tsdoc@npm:^0.2.17":
|
||||
version: 0.2.17
|
||||
resolution: "eslint-plugin-tsdoc@npm:0.2.17"
|
||||
dependencies:
|
||||
@@ -8175,17 +8236,17 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"eslint-plugin-unicorn@npm:^43.0.2":
|
||||
version: 43.0.2
|
||||
resolution: "eslint-plugin-unicorn@npm:43.0.2"
|
||||
"eslint-plugin-unicorn@npm:^44.0.1":
|
||||
version: 44.0.1
|
||||
resolution: "eslint-plugin-unicorn@npm:44.0.1"
|
||||
dependencies:
|
||||
"@babel/helper-validator-identifier": ^7.18.6
|
||||
ci-info: ^3.3.2
|
||||
"@babel/helper-validator-identifier": ^7.19.1
|
||||
ci-info: ^3.4.0
|
||||
clean-regexp: ^1.0.0
|
||||
eslint-utils: ^3.0.0
|
||||
esquery: ^1.4.0
|
||||
indent-string: ^4.0.0
|
||||
is-builtin-module: ^3.1.0
|
||||
is-builtin-module: ^3.2.0
|
||||
lodash: ^4.17.21
|
||||
pluralize: ^8.0.0
|
||||
read-pkg-up: ^7.0.1
|
||||
@@ -8194,14 +8255,14 @@ __metadata:
|
||||
semver: ^7.3.7
|
||||
strip-indent: ^3.0.0
|
||||
peerDependencies:
|
||||
eslint: ">=8.18.0"
|
||||
checksum: 1b63eb013cbc0b3c9ef131a1e049b4b53d8e208393675d5f97d3fa83c050ebcb695a7fd210f4de1460f42f89c2ecca261280488834591d5c21e146d297a9ee2e
|
||||
eslint: ">=8.23.1"
|
||||
checksum: 5a237aa257195984e4d9dff89e5966ce86c2012694b725bff305b40949b02fc3777984ca9a9f707c561b8c1d32406eab94cd377903f969c804903bb455cf931c
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"eslint-plugin-vue@npm:^9.4.0":
|
||||
version: 9.5.1
|
||||
resolution: "eslint-plugin-vue@npm:9.5.1"
|
||||
"eslint-plugin-vue@npm:^9.6.0":
|
||||
version: 9.6.0
|
||||
resolution: "eslint-plugin-vue@npm:9.6.0"
|
||||
dependencies:
|
||||
eslint-utils: ^3.0.0
|
||||
natural-compare: ^1.4.0
|
||||
@@ -8212,7 +8273,7 @@ __metadata:
|
||||
xml-name-validator: ^4.0.0
|
||||
peerDependencies:
|
||||
eslint: ^6.2.0 || ^7.0.0 || ^8.0.0
|
||||
checksum: 36433328710c241bf363291859b6caf1c74dd18d75b1b1fe5bac9706e4d612e3dea79eef5acccf06b2df9d9b3faf9343c1b3e1d9edbf6465fd9752f3c0a87ee4
|
||||
checksum: fcfb333b09af4d1db027f8a52b7ffdf0ebaa649f5738b7a6124bd02aaa1e075daaaa97e490a863667dda16c79e1d37688a8311d7685b9a63d3c4c0dd5f1d9622
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -9362,9 +9423,9 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"happy-dom@npm:^6.0.4":
|
||||
version: 6.0.4
|
||||
resolution: "happy-dom@npm:6.0.4"
|
||||
"happy-dom@npm:^7.0.0":
|
||||
version: 7.0.0
|
||||
resolution: "happy-dom@npm:7.0.0"
|
||||
dependencies:
|
||||
css.escape: ^1.5.1
|
||||
he: ^1.2.0
|
||||
@@ -9373,7 +9434,7 @@ __metadata:
|
||||
webidl-conversions: ^7.0.0
|
||||
whatwg-encoding: ^2.0.0
|
||||
whatwg-mimetype: ^3.0.0
|
||||
checksum: 4bfd97f07ab459fd48fe93f597deb903527f0ffffbc98f2ab1cacc1362ae09d11dfc21d8b166d8e0d19fc49d7c1dcc4b250c1da131d6f70e3cf2e82b39d60657
|
||||
checksum: d5108fd9d7d4c7d00d897a15a1a1fe6e6210f22bebd815e31b5412c58f6221d1e77e6f6e77e8e029088176f96fac49ef342d1fda1fea88651a105e528734d698
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -10093,7 +10154,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"is-builtin-module@npm:^3.1.0":
|
||||
"is-builtin-module@npm:^3.2.0":
|
||||
version: 3.2.0
|
||||
resolution: "is-builtin-module@npm:3.2.0"
|
||||
dependencies:
|
||||
@@ -15992,13 +16053,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"supertest@npm:^6.2.4":
|
||||
version: 6.2.4
|
||||
resolution: "supertest@npm:6.2.4"
|
||||
"supertest@npm:^6.3.0":
|
||||
version: 6.3.0
|
||||
resolution: "supertest@npm:6.3.0"
|
||||
dependencies:
|
||||
methods: ^1.1.2
|
||||
superagent: ^8.0.0
|
||||
checksum: f2ddc4f3ba467a5c4036dd4aad41351e4b60eb13c39ecf5233ccd2ebb425504073b2b7036c973a70c7047f5c6bc1b9fef096b7bbff114d357cbe80654441db23
|
||||
checksum: 95062161af3a16669231dcde0375f89a8c57339ca8e5820b483959dd77c88a89c9d63241cad000f6178822666ae818fd2e158b44a10d865366809e173737720e
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -17622,7 +17683,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"vue-eslint-parser@npm:^9.0.1, vue-eslint-parser@npm:^9.0.3":
|
||||
"vue-eslint-parser@npm:^9.0.1, vue-eslint-parser@npm:^9.1.0":
|
||||
version: 9.1.0
|
||||
resolution: "vue-eslint-parser@npm:9.1.0"
|
||||
dependencies:
|
||||
|
||||
Reference in New Issue
Block a user