Skip to content

Commit

Permalink
bump dev deps
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-run committed Oct 28, 2023
1 parent cbe0d10 commit 39310fe
Show file tree
Hide file tree
Showing 3 changed files with 1,410 additions and 242 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"pino": "8"
},
"devDependencies": {
"@navikt/eslint-config-teamsykmelding": "^2.0.0",
"@types/node": "^18.16.19",
"next": "^13.4.9",
"pino": "^8.14.1",
"prettier": "^2.8.8",
"typescript": "^5.1.6"
"@navikt/eslint-config-teamsykmelding": "^4.5.0",
"@types/node": "^20.8.9",
"next": "^14.0.0",
"pino": "^8.16.1",
"prettier": "^3.0.3",
"typescript": "^5.2.2"
},
"eslintConfig": {
"extends": [
Expand Down
2 changes: 0 additions & 2 deletions src/loggingRouteHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export const POSTLoggingRouteHandler = async (request: Request): Promise<Respons
const { level, ts }: pino.LogEvent = body
const label: unknown = level.label
if (!isValidLoggingLabel(label)) {
// @ts-expect-error TypeScript types are lagging behind a bit
return Response.json(
{
error: `Invalid label ${label}`,
Expand All @@ -43,6 +42,5 @@ export const POSTLoggingRouteHandler = async (request: Request): Promise<Respons
})
[label](...messages)

// @ts-expect-error TypeScript types are lagging behind a bit
return Response.json({ ok: `ok` })
}
Loading

0 comments on commit 39310fe

Please sign in to comment.