Skip to content

Commit

Permalink
chore(deps): update all non-major dev-dependencies (#424)
Browse files Browse the repository at this point in the history
* fix: incorrect types

* chore(deps): update all non-major dev-dependencies

* chore: things

---------

Co-authored-by: Daan Klarenbeek <github@ijskoud.dev>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] and ijsKoud committed Oct 12, 2023
1 parent f6260b5 commit ff492a6
Show file tree
Hide file tree
Showing 14 changed files with 230 additions and 243 deletions.
10 changes: 5 additions & 5 deletions apps/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,18 @@
"@types/cookie-parser": "^1.4.4",
"@types/cors": "2.8.14",
"@types/cron": "^2.0.1",
"@types/express": "^4.17.18",
"@types/express": "^4.17.19",
"@types/express-rate-limit": "^6.0.0",
"@types/formidable": "^3.4.3",
"@types/jsonwebtoken": "^9.0.3",
"@types/lodash": "^4.14.199",
"@types/mime-types": "^2.1.1",
"@types/ms": "^0.7.31",
"@types/node": "^18.17.19",
"@types/mime-types": "^2.1.2",
"@types/ms": "^0.7.32",
"@types/node": "^18.18.4",
"@types/node-os-utils": "^1.3.2",
"@types/pidusage": "^2.0.3",
"@types/ua-parser-js": "^0.7.37",
"eslint": "8.50.0",
"eslint": "8.51.0",
"typescript": "^5.2.2"
}
}
12 changes: 6 additions & 6 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
},
"devDependencies": {
"@types/file-saver": "^2.0.5",
"@types/ms": "^0.7.31",
"@types/node": "^18.17.19",
"@types/react": "^18.2.22",
"@types/react-dom": "^18.2.7",
"@types/react-syntax-highlighter": "^15.5.7",
"eslint": "8.50.0",
"@types/ms": "^0.7.32",
"@types/node": "^18.18.4",
"@types/react": "^18.2.28",
"@types/react-dom": "^18.2.13",
"@types/react-syntax-highlighter": "^15.5.8",
"eslint": "8.51.0",
"tailwindcss": "^3.3.3",
"typescript": "^5.2.2"
}
Expand Down
8 changes: 5 additions & 3 deletions apps/web/src/app/bins/[id]/PasteBin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
import Markdown from "@paperplane/markdown";
import { useTheme } from "next-themes";
import React from "react";
import SyntaxHighlighter from "react-syntax-highlighter/dist/cjs/default-highlight";
import SyntaxHighlighter from "react-syntax-highlighter";
import { atomOneDark, atomOneLight } from "react-syntax-highlighter/dist/esm/styles/hljs";

const Highlighter = SyntaxHighlighter as unknown as React.FC<any>;

export interface PasteBinProps {
data: string;
highlight: string;
Expand All @@ -17,9 +19,9 @@ const PasteBin: React.FC<PasteBinProps> = ({ data, highlight }) => {
return highlight === "markdown" ? (
<Markdown>{data}</Markdown>
) : (
<SyntaxHighlighter style={theme === "light" ? atomOneLight : atomOneDark} language={highlight} showLineNumbers>
<Highlighter style={theme === "light" ? atomOneLight : atomOneDark} language={highlight} showLineNumbers>
{data}
</SyntaxHighlighter>
</Highlighter>
);
};

Expand Down
6 changes: 4 additions & 2 deletions apps/web/src/app/dashboard/pastebin/CreateDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@
import { api } from "#trpc/server";
import { HandleTRPCFormError } from "#trpc/shared";

const Highlighter = SyntaxHighlighter as unknown as React.FC<any>;

export const CreateDialog: React.FC = () => {
const { toast } = useToast();
const { theme } = useTheme();
Expand Down Expand Up @@ -134,13 +136,13 @@ export const CreateDialog: React.FC = () => {
<Textarea {...field} placeholder="Your inspiring qoutes here..." />
</TabsContent>
<TabsContent value="preview">
<SyntaxHighlighter
<Highlighter
language={form.getValues().highlight}
style={theme === "light" ? atomOneLight : atomOneDark}
showLineNumbers
>
{field.value}
</SyntaxHighlighter>
</Highlighter>
</TabsContent>
</Tabs>

Expand Down
6 changes: 4 additions & 2 deletions apps/web/src/app/dashboard/pastebin/UpdateDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import { Textarea } from "@paperplane/ui/textarea";
import { api } from "#trpc/server";
import { getTRPCError } from "@paperplane/utils";

const Highlighter = SyntaxHighlighter as unknown as React.FC<any>;

export interface UpdateDialogProps {
/** The name (id) of the url */
name: string;
Expand Down Expand Up @@ -174,13 +176,13 @@ export const UpdateDialog: React.FC<UpdateDialogProps> = ({ name, visible, data,
<Textarea {...field} placeholder="Your inspiring qoutes here..." />
</TabsContent>
<TabsContent value="preview">
<SyntaxHighlighter
<Highlighter
language={form.getValues().highlight}
style={theme === "light" ? atomOneLight : atomOneDark}
showLineNumbers
>
{field.value}
</SyntaxHighlighter>
</Highlighter>
</TabsContent>
</Tabs>

Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"postinstall": "is-ci || husky install"
},
"resolutions": {
"@typescript-eslint/eslint-plugin": "^6.7.4"
"@typescript-eslint/eslint-plugin": "^6.7.5"
},
"dependencies": {
"@hookform/resolvers": "^3.3.2",
Expand Down Expand Up @@ -46,20 +46,20 @@
"@sapphire/eslint-config": "^5.0.2",
"@sapphire/ts-config": "5.0.0",
"@snowcrystals/prettier-config": "^1.0.0",
"@types/node": "18.17.19",
"@typescript-eslint/eslint-plugin": "^6.7.2",
"@typescript-eslint/parser": "^6.7.2",
"eslint": "^8.50.0",
"eslint-config-next": "13.5.2",
"@types/node": "18.18.4",
"@typescript-eslint/eslint-plugin": "^6.7.5",
"@typescript-eslint/parser": "^6.7.5",
"eslint": "^8.51.0",
"eslint-config-next": "13.5.4",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-prettier": "^5.0.1",
"husky": "^8.0.3",
"is-ci": "^3.0.1",
"lint-staged": "^14.0.1",
"pinst": "^3.0.0",
"prettier": "^3.0.3",
"tailwindcss": "^3.3.3",
"turbo": "^1.10.14",
"turbo": "^1.10.15",
"typescript": "5.2.2"
},
"engines": {
Expand Down
6 changes: 3 additions & 3 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
"rc-progress": "^3.5.1"
},
"devDependencies": {
"@types/react": "^18.2.22",
"@types/react-dom": "^18.2.7",
"eslint": "8.50.0",
"@types/react": "^18.2.28",
"@types/react-dom": "^18.2.13",
"eslint": "8.51.0",
"typescript": "^5.2.2"
}
}
6 changes: 3 additions & 3 deletions packages/logo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"react-dom": "18.2.0"
},
"devDependencies": {
"@types/react": "^18.2.22",
"@types/react-dom": "^18.2.7",
"eslint": "8.50.0",
"@types/react": "^18.2.28",
"@types/react-dom": "^18.2.13",
"eslint": "8.51.0",
"typescript": "^5.2.2"
}
}
6 changes: 3 additions & 3 deletions packages/markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"remark-gfm": "^4.0.0"
},
"devDependencies": {
"@types/react": "^18.2.22",
"@types/react-dom": "^18.2.7",
"eslint": "8.50.0",
"@types/react": "^18.2.28",
"@types/react-dom": "^18.2.13",
"eslint": "8.51.0",
"typescript": "^5.2.2"
}
}
6 changes: 3 additions & 3 deletions packages/swr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"swr": "^2.2.4"
},
"devDependencies": {
"@types/react": "^18.2.22",
"@types/react-dom": "^18.2.7",
"eslint": "8.50.0",
"@types/react": "^18.2.28",
"@types/react-dom": "^18.2.13",
"eslint": "8.51.0",
"typescript": "^5.2.2"
}
}
6 changes: 3 additions & 3 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
"@radix-ui/react-tooltip": "^1.0.7"
},
"devDependencies": {
"@types/react": "^18.2.22",
"@types/react-dom": "^18.2.7",
"eslint": "8.50.0",
"@types/react": "^18.2.28",
"@types/react-dom": "^18.2.13",
"eslint": "8.51.0",
"typescript": "^5.2.2"
}
}
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint": "TIMING=1 eslint"
},
"devDependencies": {
"eslint": "8.50.0",
"eslint": "8.51.0",
"typescript": "^5.2.2"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/src/NotFound.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class NotFoundError {
public readonly titleBack = "PLANE";
public readonly titleBackAlt = "P\\4N3";

private interval: NodeJS.Timer | null = null;
private interval: NodeJS.Timeout | null = null;

/**
* Starts the interval which updates the error messages ever 2 seconds
Expand Down
Loading

0 comments on commit ff492a6

Please sign in to comment.