Skip to content

Commit 5308b94

Browse files
committed
thjs-64: * server deps
1 parent 2bdf21d commit 5308b94

File tree

3 files changed

+25
-30
lines changed

3 files changed

+25
-30
lines changed

server/package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -37,41 +37,41 @@
3737
"test:reset-set-password": "npm run test -- --verbose --rootDir=tests/api/13-reset-set-password/"
3838
},
3939
"dependencies": {
40-
"@fastify/cors": "8.3.0",
41-
"@fastify/static": "6.10.2",
42-
"axios": "1.4.0",
43-
"bcrypt": "5.1.0",
40+
"@fastify/cors": "8.4.2",
41+
"@fastify/static": "6.12.0",
42+
"axios": "1.6.2",
43+
"bcrypt": "5.1.1",
4444
"convict": "6.2.4",
45-
"dotenv": "16.3.0",
46-
"fastify": "4.18.0",
45+
"dotenv": "16.3.1",
46+
"fastify": "4.25.1",
4747
"fastify-multer": "2.0.3",
48-
"fastify-plugin": "4.5.0",
48+
"fastify-plugin": "4.5.1",
4949
"form-data": "4.0.0",
50-
"jsonwebtoken": "9.0.0",
51-
"knex": "2.4.2",
52-
"objection": "3.0.1",
53-
"pg": "8.11.0",
50+
"jsonwebtoken": "9.0.2",
51+
"knex": "3.1.0",
52+
"objection": "3.1.3",
53+
"pg": "8.11.3",
5454
"pg-hstore": "2.3.4",
5555
"qs": "6.11.2",
56-
"socket.io": "4.6.2"
56+
"socket.io": "4.7.2"
5757
},
5858
"devDependencies": {
59-
"@faker-js/faker": "8.0.2",
60-
"@jest/globals": "29.5.0",
59+
"@faker-js/faker": "8.3.1",
60+
"@jest/globals": "29.7.0",
6161
"@types/bcrypt": "5.0.2",
6262
"@types/convict": "6.1.6",
63-
"@types/jest": "29.5.2",
63+
"@types/jest": "29.5.11",
6464
"@types/jsonwebtoken": "9.0.5",
6565
"@types/pg": "8.10.9",
6666
"@types/qs": "6.9.10",
6767
"@typescript-eslint/eslint-plugin": "6.14.0",
6868
"@typescript-eslint/parser": "6.14.0",
6969
"cross-env": "7.0.3",
7070
"eslint-config-airbnb-base": "15.0.0",
71-
"jest": "29.5.0",
71+
"jest": "29.7.0",
7272
"nodemon": "3.0.2",
73-
"npm": "9.7.1",
74-
"pino-pretty": "10.0.0",
73+
"npm": "10.2.5",
74+
"pino-pretty": "10.3.0",
7575
"ts-jest": "29.1.1",
7676
"ts-paths-esm-loader": "1.4.3"
7777
}

server/src/libs/plugins/authorization/authorization.plugin.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/* eslint-disable @typescript-eslint/require-await */
2-
import { type FastifyPluginAsync } from 'fastify';
32
import fp from 'fastify-plugin';
43

54
import { ExceptionMessage } from '~/libs/enums/enums.js';
@@ -17,7 +16,7 @@ type Options = {
1716
};
1817
};
1918

20-
const authorization: FastifyPluginAsync<Options> = fp<Options>(
19+
const authorization = fp<Options>(
2120
async (fastify, { routesWhiteList, services }): Promise<void> => {
2221
fastify.decorateRequest('user', null);
2322

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/* eslint-disable @typescript-eslint/require-await */
2-
import { type FastifyPluginAsync } from 'fastify';
32
import fp from 'fastify-plugin';
43
import { type Server as SocketServer } from 'socket.io';
54

@@ -9,15 +8,12 @@ type Options = {
98
io: SocketServer;
109
};
1110

12-
const socketInjector: FastifyPluginAsync<Options> = fp<Options>(
13-
async (fastify, { io }): Promise<void> => {
14-
fastify.decorateRequest('io', null);
11+
const socketInjector = fp<Options>(async (fastify, { io }): Promise<void> => {
12+
fastify.decorateRequest('io', null);
1513

16-
fastify.addHook(ControllerHook.PRE_HANDLER, (request, _reply, hookDone) => {
17-
request.io = io;
18-
hookDone();
19-
});
20-
}
21-
);
14+
fastify.addHook(ControllerHook.PRE_HANDLER, async (request, _reply) => {
15+
request.io = io;
16+
});
17+
});
2218

2319
export { socketInjector };

0 commit comments

Comments
 (0)