Skip to content

Commit 1db616b

Browse files
authored
fix: fixes vulnerabilities CVE-2024-45813 (find-my-way) and CVE-2024-47764 (cookie) (#24)
1 parent cd2b861 commit 1db616b

5 files changed

Lines changed: 806 additions & 564 deletions

File tree

apps/node-fastify/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
"author": "Supabase",
1818
"license": "MIT",
1919
"dependencies": {
20-
"@fastify/autoload": "^5.10.0",
21-
"@fastify/type-provider-typebox": "^4.1.0",
20+
"@fastify/autoload": "^6.0.2",
21+
"@fastify/type-provider-typebox": "^5.0.1",
2222
"dotenv": "^16.4.5",
23-
"fastify": "^4.28.1",
23+
"fastify": "^5.1.0",
2424
"orb-sync-lib": "*",
25-
"pino": "^9.3.2"
25+
"pino": "^9.5.0"
2626
},
2727
"devDependencies": {
28-
"pino-pretty": "^11.2.2",
29-
"tsx": "^4.19.0"
28+
"pino-pretty": "^11.3.0",
29+
"tsx": "^4.19.2"
3030
}
3131
}

apps/node-fastify/src/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'dotenv/config';
22
import type { FastifyInstance } from 'fastify';
3-
import type { Server, IncomingMessage, ServerResponse } from 'node:http';
3+
import type { IncomingMessage, Server, ServerResponse } from 'node:http';
44
import { createApp } from './app';
55
import pino from 'pino';
66
import { TypeBoxTypeProvider } from '@fastify/type-provider-typebox';
@@ -17,7 +17,7 @@ const logger = pino({
1717

1818
const main = async () => {
1919
const app: FastifyInstance<Server, IncomingMessage, ServerResponse> = await createApp({
20-
logger,
20+
loggerInstance: logger,
2121
disableRequestLogging: true,
2222
requestIdHeader: 'Request-Id',
2323
});

0 commit comments

Comments
 (0)