Skip to content

Commit

Permalink
build(deps-dev): bump typescript from 4.9.5 to 5.2.2 (#199)
Browse files Browse the repository at this point in the history
* build(deps-dev): bump typescript from 4.9.5 to 5.2.2

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.9.5 to 5.2.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v4.9.5...v5.2.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix: run lint-fix

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kar Rui Lau <[email protected]>
  • Loading branch information
dependabot[bot] and karrui authored Nov 2, 2023
1 parent 7533a6f commit 20ebeb5
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 85 deletions.
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 @@ -105,7 +105,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 @@ -114,7 +114,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()
})
},
}

0 comments on commit 20ebeb5

Please sign in to comment.