Skip to content

Commit

Permalink
chore: deps
Browse files Browse the repository at this point in the history
  • Loading branch information
iCrawl committed Jul 31, 2023
1 parent 0c99894 commit 33bef1b
Show file tree
Hide file tree
Showing 49 changed files with 4,602 additions and 7,686 deletions.
222 changes: 111 additions & 111 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Large diffs are not rendered by default.

559 changes: 280 additions & 279 deletions .yarn/releases/yarn-3.5.0.cjs → .yarn/releases/yarn-3.6.1.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ plugins:
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"

yarnPath: .yarn/releases/yarn-3.5.0.cjs
yarnPath: .yarn/releases/yarn-3.6.1.cjs
45 changes: 22 additions & 23 deletions apps/report/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,47 +26,46 @@
"dependencies": {
"ansi-to-html": "^0.7.2",
"hast-util-has-property": "^2.0.1",
"hast-util-is-element": "^2.1.3",
"hast-util-is-element": "^3.0.0",
"hast-util-select": "^5.0.5",
"hast-util-to-string": "^2.0.0",
"hastscript": "^7.2.0",
"next": "^13.2.4",
"next": "^13.4.12",
"next-mdx-remote": "^4.4.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rehype-highlight": "^6.0.0",
"rehype-ignore": "^1.0.4",
"rehype-ignore": "^1.0.5",
"rehype-parse": "^8.0.4",
"rehype-raw": "^6.1.1",
"rehype-slug": "^5.1.0",
"remark-gfm": "^3.0.1",
"sharp": "^0.31.3",
"undici": "^5.21.0",
"sharp": "^0.32.4",
"undici": "^5.22.1",
"unified": "^10.1.2",
"unist-util-visit": "^4.1.2"
"unist-util-visit": "^5.0.0"
},
"devDependencies": {
"@next/bundle-analyzer": "^13.2.4",
"@next/bundle-analyzer": "^13.4.12",
"@testing-library/react": "^14.0.0",
"@types/node": "^18.15.5",
"@types/react-dom": "^18.0.11",
"@unocss/cli": "^0.50.6",
"@unocss/reset": "^0.50.6",
"@vercel/node": "^2.9.13",
"@vitejs/plugin-react": "^3.1.0",
"@vitest/coverage-c8": "^0.29.7",
"c8": "^7.13.0",
"concurrently": "^7.6.0",
"@types/node": "^18.17.1",
"@types/react-dom": "^18.2.7",
"@unocss/cli": "^0.54.1",
"@unocss/reset": "^0.54.1",
"@vercel/node": "^2.15.6",
"@vitejs/plugin-react": "^4.0.4",
"@vitest/coverage-v8": "^0.33.0",
"concurrently": "^8.2.0",
"cross-env": "^7.0.3",
"eslint": "^8.36.0",
"eslint-config-neon": "^0.1.41",
"eslint": "^8.46.0",
"eslint-config-neon": "^0.1.47",
"eslint-formatter-pretty": "^5.0.0",
"happy-dom": "^8.9.0",
"happy-dom": "^10.5.2",
"mdast": "^3.0.0",
"prettier": "^2.8.5",
"typescript": "^5.0.2",
"unocss": "^0.50.6",
"vitest": "^0.29.7"
"prettier": "^2.8.8",
"typescript": "^5.1.6",
"unocss": "^0.54.1",
"vitest": "^0.33.0"
},
"engines": {
"node": ">=16.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export default function rehypeGithubBlockquoteAdmonitions() {
return SKIP;
}

// @ts-expect-error: We already check with: hasProperty above
const iconClasses = strong.properties.className;
if (!Array.isArray(iconClasses)) {
return SKIP;
Expand Down
3 changes: 1 addition & 2 deletions apps/report/src/pages/util/rehype-highlight-ansi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export default function rehypeHighlightANSI() {
return SKIP;
}

// @ts-expect-error: We already check with: hasProperty above
const classes = code.properties.className;
if (!Array.isArray(classes)) {
return SKIP;
Expand Down Expand Up @@ -67,7 +66,7 @@ export default function rehypeHighlightANSI() {
// }

parent.children.splice(
index,
index!,
1,
h(
"div",
Expand Down
45 changes: 22 additions & 23 deletions apps/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,38 +24,37 @@
"license": "AGPL-3.0",
"private": true,
"dependencies": {
"ariakit": "^2.0.0-next.43",
"ariakit": "^2.0.0-next.44",
"cmdk": "^0.2.0",
"next": "^13.2.4",
"next-themes": "npm:@wits/next-themes@latest",
"pocketbase": "^0.12.1",
"next": "^13.4.12",
"next-themes": "^0.2.1",
"pocketbase": "^0.16.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-use": "^17.4.0",
"sharp": "^0.31.3"
"sharp": "^0.32.4"
},
"devDependencies": {
"@next/bundle-analyzer": "^13.2.4",
"@next/bundle-analyzer": "^13.4.12",
"@testing-library/react": "^14.0.0",
"@types/node": "^18.15.5",
"@types/react-dom": "^18.0.11",
"@unocss/cli": "^0.50.6",
"@unocss/reset": "^0.50.6",
"@vercel/node": "^2.9.13",
"@vitejs/plugin-react": "^3.1.0",
"@vitest/coverage-c8": "^0.29.7",
"c8": "^7.13.0",
"concurrently": "^7.6.0",
"@types/node": "^18.17.1",
"@types/react-dom": "^18.2.7",
"@unocss/cli": "^0.54.1",
"@unocss/reset": "^0.54.1",
"@vercel/node": "^2.15.6",
"@vitejs/plugin-react": "^4.0.4",
"@vitest/coverage-v8": "^0.33.0",
"concurrently": "^8.2.0",
"cross-env": "^7.0.3",
"eslint": "^8.36.0",
"eslint-config-neon": "^0.1.41",
"eslint": "^8.46.0",
"eslint-config-neon": "^0.1.47",
"eslint-formatter-pretty": "^5.0.0",
"happy-dom": "^8.9.0",
"prettier": "^2.8.5",
"prettier-plugin-tailwindcss": "^0.2.5",
"typescript": "^5.0.2",
"unocss": "^0.50.6",
"vitest": "^0.29.7"
"happy-dom": "^10.5.2",
"prettier": "^2.8.8",
"prettier-plugin-tailwindcss": "^0.4.1",
"typescript": "^5.1.6",
"unocss": "^0.54.1",
"vitest": "^0.33.0"
},
"engines": {
"node": ">=16.0.0"
Expand Down
2 changes: 1 addition & 1 deletion apps/website/src/app/auth/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { redirect } from "next/navigation";
import type { PropsWithChildren } from "react";
import { getUserFromCookie } from "~/util/getUserFromCookie";

export default async function AuthLayout({ children }: PropsWithChildren) {
export default function AuthLayout({ children }: PropsWithChildren) {
const user = getUserFromCookie(cookies());

if (user) {
Expand Down
6 changes: 5 additions & 1 deletion apps/website/src/app/auth/redirect/discord/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ import type { RecordAuthResponse, Record } from "pocketbase";
import { useEffect, useState } from "react";
import { pocketbase } from "~/util/pocketbase";

export default function Page({ searchParams }: { searchParams?: { [key: string]: string[] | string | undefined } }) {
export default function Page({
searchParams,
}: {
readonly searchParams?: { [key: string]: string[] | string | undefined };
}) {
if (!pocketbase) {
redirect("/");
}
Expand Down
23 changes: 7 additions & 16 deletions apps/website/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { ServerThemeProvider } from "next-themes";
import type { PropsWithChildren } from "react";
// import { Providers } from "./providers";
import { Providers } from "./providers";

import "@unocss/reset/tailwind.css";
import "../styles/unocss.css";
Expand All @@ -9,19 +8,11 @@ import "../styles/main.css";

export default function RootLayout({ children }: PropsWithChildren) {
return (
<ServerThemeProvider
attribute="class"
defaultTheme="system"
disableTransitionOnChange
value={{
light: "light",
dark: "dark",
}}
>
<html lang="en">
<head />
<body className="dark:bg-dark-800 bg-white">{children}</body>
</html>
</ServerThemeProvider>
<html lang="en" suppressHydrationWarning>
<head />
<body className="dark:bg-dark-800 bg-white">
<Providers>{children}</Providers>
</body>
</html>
);
}
12 changes: 12 additions & 0 deletions apps/website/src/app/providers.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"use client";

import { ThemeProvider } from "next-themes";
import type { PropsWithChildren } from "react";

export function Providers({ children }: PropsWithChildren) {
return (
<ThemeProvider attribute="class" enableSystem>
{children}
</ThemeProvider>
);
}
2 changes: 1 addition & 1 deletion apps/website/src/components/LoginButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function LoginButton({
href,
provider,
children,
}: PropsWithChildren<{ href?: string | undefined; provider?: AuthProviderInfo | undefined }>) {
}: PropsWithChildren<{ readonly href?: string | undefined; readonly provider?: AuthProviderInfo | undefined }>) {
const [_, setValue] = useLocalStorage<AuthProviderInfo>("provider");

return (
Expand Down
2 changes: 1 addition & 1 deletion apps/website/src/util/getUserFromCookie.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ReadonlyRequestCookies } from "next/dist/server/app-render";
import type { ReadonlyRequestCookies } from "next/dist/server/web/spec-extension/adapters/request-cookies";
import type { RequestCookies } from "next/dist/server/web/spec-extension/cookies";
import type { Record, Admin } from "pocketbase";
import { pocketbase } from "./pocketbase";
Expand Down
53 changes: 26 additions & 27 deletions apps/yuudachi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,54 +26,53 @@
"license": "AGPL-3.0",
"private": true,
"dependencies": {
"@aero/sanitizer": "^1.2.0",
"@discordjs/rest": "^1.6.0",
"@aero/sanitizer": "^1.3.2",
"@discordjs/rest": "^1.7.1",
"@naval-base/ms": "^3.1.0",
"@skyra/i18next-backend": "^2.0.1",
"@swc/helpers": "^0.4.14",
"@skyra/i18next-backend": "^2.0.3",
"@swc/helpers": "^0.5.1",
"@yuudachi/framework": "workspace:^",
"bufferutil": "^4.0.7",
"bullmq": "^3.10.1",
"bullmq": "^3.15.8",
"common-tags": "^1.8.2",
"dayjs": "^1.11.7",
"dayjs": "^1.11.9",
"diff": "^5.1.0",
"discord-api-types": "^0.37.36",
"discord.js": "^14.8.0",
"discord-api-types": "^0.37.51",
"discord.js": "^14.11.0",
"env-cmd": "^10.1.0",
"fastest-levenshtein": "^1.0.16",
"i18next": "^22.4.12",
"ioredis": "^5.3.1",
"i18next": "^23.4.1",
"ioredis": "^5.3.2",
"kleur": "^4.1.5",
"nanoid": "^4.0.1",
"postgres": "^3.3.4",
"nanoid": "^4.0.2",
"postgres": "^3.3.5",
"prom-client": "^14.2.0",
"re2": "^1.18.0",
"re2": "^1.20.1",
"readdirp": "^3.6.0",
"redis": "^4.6.5",
"redis": "^4.6.7",
"reflect-metadata": "^0.1.13",
"tsyringe": "^4.7.0",
"undici": "^5.21.0",
"tsyringe": "^4.8.0",
"undici": "^5.22.1",
"utf-8-validate": "^6.0.3",
"ws": "^8.13.0"
},
"devDependencies": {
"@swc/cli": "^0.1.62",
"@swc/core": "^1.3.41",
"@types/aero__sanitizer": "^1.2.0",
"@swc/core": "^1.3.72",
"@types/common-tags": "^1.8.1",
"@types/diff": "^5.0.2",
"@types/node": "^18.15.5",
"@types/ws": "^8.5.4",
"cpy-cli": "^4.2.0",
"@types/diff": "^5.0.3",
"@types/node": "^18.17.1",
"@types/ws": "^8.5.5",
"cpy-cli": "^5.0.0",
"cross-env": "^7.0.3",
"del-cli": "^5.0.0",
"eslint": "^8.36.0",
"eslint-config-neon": "^0.1.41",
"eslint": "^8.46.0",
"eslint-config-neon": "^0.1.47",
"eslint-formatter-pretty": "^5.0.0",
"ley": "^0.8.1",
"prettier": "^2.8.5",
"type-fest": "^3.6.1",
"typescript": "^5.0.2"
"prettier": "^2.8.8",
"type-fest": "^4.1.0",
"typescript": "^5.1.6"
},
"engines": {
"node": ">=16.0.0"
Expand Down
6 changes: 3 additions & 3 deletions apps/yuudachi/src/commands/moderation/anti-raid-nuke.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ export default class extends Command<typeof AntiRaidNukeCommand> {
switch (Object.keys(args)[0]) {
case "file": {
await file(interaction, args.file, locale);
return;
break;
}

case "modal": {
await modal(interaction, args.modal, locale);
return;
break;
}

case "filter": {
await filter(interaction, args.filter, locale);
return;
break;
}

default:
Expand Down
5 changes: 1 addition & 4 deletions apps/yuudachi/src/commands/moderation/ban.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ import { generateHistory } from "../../util/generateHistory.js";

@injectable()
export default class extends Command<typeof BanCommand> {
public constructor(
// @ts-expect-error: Needs tsyringe update
@inject(kRedis) public readonly redis: Redis,
) {
public constructor(@inject(kRedis) public readonly redis: Redis) {
super();
}

Expand Down
5 changes: 1 addition & 4 deletions apps/yuudachi/src/commands/moderation/clear.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@ async function resolveSnowflakeOrLink(

@injectable()
export default class extends Command<typeof ClearCommand | typeof ClearContextCommand> {
public constructor(
// @ts-expect-error: Needs tsyringe update
@inject(kWebhooks) public readonly webhooks: Map<string, Webhook>,
) {
public constructor(@inject(kWebhooks) public readonly webhooks: Map<string, Webhook>) {
super(["clear", "Clear messages to"]);
}

Expand Down
7 changes: 2 additions & 5 deletions apps/yuudachi/src/commands/moderation/duration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ import type { DurationCommand } from "../../interactions/index.js";

@injectable()
export default class extends Command<typeof DurationCommand> {
public constructor(
// @ts-expect-error: Needs tsyringe update
@inject(kRedis) public readonly redis: Redis,
) {
public constructor(@inject(kRedis) public readonly redis: Redis) {
super();
}

Expand Down Expand Up @@ -65,7 +62,7 @@ export default class extends Command<typeof DurationCommand> {
throw new Error(i18next.t("command.common.errors.duration_format", { lng: locale }));
}

const actionExpiration = Date.now() + parsedDuration;
const actionExpiration = Date.now() + Number(parsedDuration);

if (originalCase.action === CaseAction.Timeout) {
try {
Expand Down
Loading

2 comments on commit 33bef1b

@vercel
Copy link

@vercel vercel bot commented on 33bef1b Jul 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

yuudachi-report – ./apps/report

yuudachi-report-git-main-discordjs.vercel.app
yuudachi-report-discordjs.vercel.app
yuudachi-report.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 33bef1b Jul 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

yuudachi – ./apps/website

yuudachi-git-main-discordjs.vercel.app
yuudachi-discordjs.vercel.app
yuudachi.vercel.app
yuudachi.dev
www.yuudachi.dev

Please sign in to comment.