Update deps

This commit is contained in:
Darren Clarke 2024-03-03 18:13:26 +01:00
parent 6663e8ed1e
commit 486f989494
33 changed files with 776 additions and 695 deletions

View file

@ -30,7 +30,7 @@
"hapi-auth-bearer-token": "^8.0.0",
"hapi-auth-jwt2": "^10.5.1",
"hapi-swagger": "^17.2.1",
"joi": "^17.12.1",
"joi": "^17.12.2",
"jsonwebtoken": "^9.0.2",
"jwks-rsa": "^3.1.0",
"long": "^5.2.3",
@ -40,8 +40,8 @@
"pg-promise": "^11.5.4",
"postgraphile": "4.12.3",
"postgraphile-plugin-connection-filter": "^2.3.0",
"remeda": "^1.40.2",
"twilio": "^4.22.0",
"remeda": "^1.44.1",
"twilio": "^4.23.0",
"typeorm": "^0.3.20",
"@whiskeysockets/baileys": "^6.6.0"
},
@ -52,13 +52,13 @@
"camelcase-keys": "^9.1.3",
"eslint-config-link": "*",
"jest-config-link": "*",
"nodemon": "^3.0.3",
"nodemon": "^3.1.0",
"pg-monitor": "^2.0.0",
"pino-pretty": "^10.3.1",
"ts-node": "^10.9.2",
"tsc-watch": "^6.0.4",
"tsconfig-link": "*",
"typedoc": "^0.25.8",
"typedoc": "^0.25.9",
"typescript": "^5.3.3"
},
"nodemonConfig": {

View file

@ -9,14 +9,14 @@ const AppPlugin = {
name: "App",
async register(
server: Hapi.Server,
options: { config: IAppConfig }
options: { config: IAppConfig },
): Promise<void> {
// declare our **run-time** plugin dependencies
// these are runtime only deps, not registration time
// ref: https://hapipal.com/best-practices/handling-plugin-dependencies
server.dependency(["config", "hapi-pino"]);
server.validator(Joi);
server.validator(Joi as any);
await Plugins.register(server, options.config);
await Services.register(server);
await Routes.register(server);