Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps-dev): bump typescript from 4.9.5 to 5.2.2 #199

Merged
merged 2 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
122 changes: 48 additions & 74 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-storybook": "0.6.13",
"mockdate": "^3.0.5",
"msw": "^1.2.2",
"msw": "^1.3.1",
"msw-storybook-addon": "^1.8.0",
"msw-trpc": "^1.3.3",
"npm-run-all": "^4.1.5",
Expand All @@ -115,7 +115,7 @@
"start-server-and-test": "^2.0.0",
"storybook": "7.4.2",
"tsx": "^3.12.7",
"typescript": "^4.8.3",
"typescript": "^5.2.2",
"vite": "^4.1.5",
"vitest": "^0.30.1",
"vitest-environment-vprisma": "^1.2.0"
Expand Down
2 changes: 1 addition & 1 deletion public/mockServiceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* tslint:disable */

/**
* Mock Service Worker (1.2.2).
* Mock Service Worker (1.3.1).
* @see https://github.com/mswjs/msw
* - Please do NOT modify this file.
* - Please do NOT serve this file on production.
Expand Down
1 change: 0 additions & 1 deletion src/hooks/useLocalStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export const useLocalStorage = <T>(
setStoredValue(newValue)
// We dispatch a custom event so every useLocalStorage hook are notified
window.dispatchEvent(new Event(LOCAL_STORAGE_EVENT))
// eslint-disable-next-line no-empty
} catch {
// TODO (#2640) Pass in some sort of logger here.
}
Expand Down
2 changes: 2 additions & 0 deletions src/server/modules/auth/auth.error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ class AuthError extends Error {
constructor(message: string | Error | ErrorCause, cause?: ErrorCause) {
if (message instanceof Error) {
super(undefined, {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
cause: { err: message, ...(message.cause as any), ...cause },
})
} else if (typeof message === 'string') {
if (cause instanceof Error) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
cause = { err: cause, ...(cause.cause as any) }
}
super(message, cause)
Expand Down
6 changes: 0 additions & 6 deletions src/server/modules/post/post.router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export const postRouter = router({
if (posts.length > limit) {
// Remove the last item and use it as next cursor

// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const nextItem = posts.pop()!
nextCursor = nextItem.id
}
Expand Down Expand Up @@ -120,7 +119,6 @@ export const postRouter = router({
if (posts.length > limit) {
// Remove the last item and use it as next cursor

// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const nextItem = posts.pop()!
nextCursor = nextItem.id
}
Expand Down Expand Up @@ -179,8 +177,6 @@ export const postRouter = router({
let nextCursor: typeof cursor | undefined = undefined
if (posts.length > limit) {
// Remove the last item and use it as next cursor

// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const nextItem = posts.pop()!
nextCursor = nextItem.id
}
Expand Down Expand Up @@ -284,8 +280,6 @@ export const postRouter = router({
let nextCursor: typeof cursor | null = null
if (items.length > limit) {
// Remove the last item and use it as next cursor

// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const nextItem = items.pop()!
nextCursor = nextItem.id
}
Expand Down
2 changes: 1 addition & 1 deletion src/stories/Page/SignInPage.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const InputValidation: Story = {

await step('Attempt log in', async () => {
await userEvent.click(await canvas.findByText(/get otp/i))
expect(await canvas.findByText(/email address/i)).toBeInTheDocument()
await expect(canvas.findByText(/email address/i)).toBeInTheDocument()
})
},
}
Loading