diff --git a/package-lock.json b/package-lock.json index a05ea65..01e9a83 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,22 +1,22 @@ { "name": "@athenna/http", - "version": "4.16.0", + "version": "4.17.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@athenna/http", - "version": "4.16.0", + "version": "4.17.0", "license": "MIT", "devDependencies": { - "@athenna/artisan": "^4.27.0", - "@athenna/common": "^4.26.0", - "@athenna/config": "^4.11.0", - "@athenna/ioc": "^4.12.0", - "@athenna/logger": "^4.13.0", - "@athenna/test": "^4.17.0", + "@athenna/artisan": "^4.28.0", + "@athenna/common": "^4.27.0", + "@athenna/config": "^4.12.0", + "@athenna/ioc": "^4.13.0", + "@athenna/logger": "^4.14.0", + "@athenna/test": "^4.18.0", "@athenna/tsconfig": "^4.12.0", - "@athenna/view": "^4.10.0", + "@athenna/view": "^4.11.0", "@fastify/cors": "^8.4.2", "@fastify/helmet": "^11.1.1", "@fastify/rate-limit": "^8.1.1", @@ -70,9 +70,9 @@ "dev": true }, "node_modules/@athenna/artisan": { - "version": "4.27.0", - "resolved": "https://registry.npmjs.org/@athenna/artisan/-/artisan-4.27.0.tgz", - "integrity": "sha512-5WWAinUVo7A0UrW0yGvNCZlpW3ovdmDOTeHxFEN2f8Fgtut63bG9zjDt6iWUlHzK/Xq2rdNgGPKJ+z4CCONsSQ==", + "version": "4.28.0", + "resolved": "https://registry.npmjs.org/@athenna/artisan/-/artisan-4.28.0.tgz", + "integrity": "sha512-TnmFTSs+JbKIvPe0+NVSlQ+LgnDCiOE8mR6b7GwR8GPq5QRTKwCVDprfufHfhmUd4TzDTOUFVTFT8KdFvK/lJA==", "dev": true, "dependencies": { "chalk-rainbow": "^1.0.0", @@ -557,9 +557,9 @@ } }, "node_modules/@athenna/common": { - "version": "4.26.0", - "resolved": "https://registry.npmjs.org/@athenna/common/-/common-4.26.0.tgz", - "integrity": "sha512-iU8lXqoiFJS6Iyh+oL8DL+72sZx6CS9PibZ/Bw+cKogaUULdF+wdWGFlaWrap61HzS1vFd3u1EZi3Y/49SsBGg==", + "version": "4.27.0", + "resolved": "https://registry.npmjs.org/@athenna/common/-/common-4.27.0.tgz", + "integrity": "sha512-/3nmLppFUj9qZiWgC2m60ctV677cSr1w1qsJDP7i8uMsaDUgobCa90+5odP7FUryIXGqgvriI1fUQMSaEcDuUw==", "dev": true, "dependencies": { "@fastify/formbody": "^7.4.0", @@ -569,7 +569,7 @@ "change-case": "^4.1.2", "collect.js": "^4.36.1", "execa": "^8.0.1", - "fastify": "^4.25.0", + "fastify": "^4.25.1", "got": "^12.6.1", "http-status-codes": "^2.2.0", "is-wsl": "^2.2.0", @@ -726,9 +726,9 @@ } }, "node_modules/@athenna/config": { - "version": "4.11.0", - "resolved": "https://registry.npmjs.org/@athenna/config/-/config-4.11.0.tgz", - "integrity": "sha512-n98HrUJ8/8bK6L4jLS924Z35zAUZyzNbDo7V1wOXNGXF4yEWVZ15M/lSrfsrczXGlKvwC40BR9JPmSPNosl//Q==", + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/@athenna/config/-/config-4.12.0.tgz", + "integrity": "sha512-55eLPAIi3eoNsih5gRqqnR0Wr5WlYCEchOd9U8UZYe0LbbhVl1+sWuGqmhBI29KHrZ4g32KhwqAzXiB0dwkHsg==", "dev": true, "dependencies": { "dotenv": "^16.3.1", @@ -740,9 +740,9 @@ } }, "node_modules/@athenna/ioc": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/@athenna/ioc/-/ioc-4.12.0.tgz", - "integrity": "sha512-Avg785spk2qG9pBr/jZv+jqExV2cKESECWTQOAzeCFGljsRsWjMB4K8tGiVyUejEIlc8aAcqSFXZDUGOdCz6zg==", + "version": "4.13.0", + "resolved": "https://registry.npmjs.org/@athenna/ioc/-/ioc-4.13.0.tgz", + "integrity": "sha512-bLv8ZKXRdi7POFK9Ui1GqsA/AQsKuP2BSww1g7YUjfpunsSSKQXP/iRGWTBuDidWapaTNScwb5jTeFCPMh31pQ==", "dev": true, "dependencies": { "awilix": "^7.0.3" @@ -752,9 +752,9 @@ } }, "node_modules/@athenna/logger": { - "version": "4.13.0", - "resolved": "https://registry.npmjs.org/@athenna/logger/-/logger-4.13.0.tgz", - "integrity": "sha512-7QVvaGnyReXKQcbuaojkHzbshTGAAsFCP2wGawSaD8ErADD2kkBSolsCtw+3/FYyyf/x0vDo/+y8bJP56L0y5A==", + "version": "4.14.0", + "resolved": "https://registry.npmjs.org/@athenna/logger/-/logger-4.14.0.tgz", + "integrity": "sha512-yXCd2nmDtLbXxHC6bhPduKwYnBwxE+s6zt0sWYTw11oY9ZL8QByv01f6Z+EVRjpSJDXqlYVzFs8195Og2GPfeQ==", "dev": true, "dependencies": { "cls-rtracer": "^2.6.3", @@ -765,9 +765,9 @@ } }, "node_modules/@athenna/test": { - "version": "4.17.0", - "resolved": "https://registry.npmjs.org/@athenna/test/-/test-4.17.0.tgz", - "integrity": "sha512-NRYXxjDf8+owgUZmrp217L68E4oVI7lnHEAohsAtKuwjPvqXtTxDKLYO8AviB+QOPo0zUFr6X0mMkNVGLH5MCA==", + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@athenna/test/-/test-4.18.0.tgz", + "integrity": "sha512-HpW6XFZ5GqAd31mj2FB9H7eiBe+Wx/3DAEbiFcaf9JhGoi20GstbS2Bno4YAKv84NxsaLJgJxMZExjonu/uSuw==", "dev": true, "dependencies": { "@japa/assert": "^2.1.0", @@ -796,9 +796,9 @@ } }, "node_modules/@athenna/view": { - "version": "4.10.0", - "resolved": "https://registry.npmjs.org/@athenna/view/-/view-4.10.0.tgz", - "integrity": "sha512-QZRbJaH2d+D8SOsm5RUMhw+BtAX1l02j309s7nowruDcUK5tBoqYVFECRPa4cKeIb87X8IFSquz1jNM26HW3KA==", + "version": "4.11.0", + "resolved": "https://registry.npmjs.org/@athenna/view/-/view-4.11.0.tgz", + "integrity": "sha512-RC1pz2KitX1Ig99zcHlu3DxVT6LTZ94K1zL6TubRbwi7DM/WPUwyG7UiLefAaG3rM4mWozt/vE/lBj8yaRkiuA==", "dev": true, "dependencies": { "edge.js": "^5.5.1" diff --git a/package.json b/package.json index 7aba369..c6ae9ef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@athenna/http", - "version": "4.16.0", + "version": "4.17.0", "description": "The Athenna Http server. Built on top of fastify.", "license": "MIT", "author": "João Lenon ", @@ -72,14 +72,14 @@ "#tests": "./tests/index.js" }, "devDependencies": { - "@athenna/artisan": "^4.27.0", - "@athenna/common": "^4.26.0", - "@athenna/config": "^4.11.0", - "@athenna/ioc": "^4.12.0", - "@athenna/logger": "^4.13.0", - "@athenna/test": "^4.17.0", + "@athenna/artisan": "^4.28.0", + "@athenna/common": "^4.27.0", + "@athenna/config": "^4.12.0", + "@athenna/ioc": "^4.13.0", + "@athenna/logger": "^4.14.0", + "@athenna/test": "^4.18.0", "@athenna/tsconfig": "^4.12.0", - "@athenna/view": "^4.10.0", + "@athenna/view": "^4.11.0", "@fastify/cors": "^8.4.2", "@fastify/helmet": "^11.1.1", "@fastify/rate-limit": "^8.1.1", diff --git a/tests/unit/kernels/HttpKernelTest.ts b/tests/unit/kernels/HttpKernelTest.ts index 5fc2dc1..68ed1bf 100644 --- a/tests/unit/kernels/HttpKernelTest.ts +++ b/tests/unit/kernels/HttpKernelTest.ts @@ -105,12 +105,12 @@ export default class HttpKernelTest { public async shouldBeAbleToRegisterTheLoggerTerminatorInTheHttpServer({ assert }: Context) { const kernel = new HttpKernel() await kernel.registerLoggerTerminator() - const mock = Log.when('channelOrVanilla').return(undefined) + Log.when('channelOrVanilla').return(undefined) Server.get({ url: '/hello', handler: ctx => ctx.response.send({ hello: true }) }) const response = await Server.request().get('hello') - assert.called(mock) + assert.called(Log.channelOrVanilla) assert.deepEqual(response.json(), { hello: true }) } @@ -249,12 +249,12 @@ export default class HttpKernelTest { const kernel = new HttpKernel() await kernel.registerLoggerTerminator() - const mock = Log.when('channelOrVanilla').return(undefined) + Log.when('channelOrVanilla').return(undefined) Server.get({ url: '/hello', handler: ctx => ctx.response.send({ hello: true }) }) const response = await Server.request().get('hello') - assert.isTrue(mock.notCalled) + assert.notCalled(Log.channelOrVanilla) assert.deepEqual(response.json(), { hello: true }) } diff --git a/tests/unit/server/ServerTest.ts b/tests/unit/server/ServerTest.ts index d7b0661..7911483 100644 --- a/tests/unit/server/ServerTest.ts +++ b/tests/unit/server/ServerTest.ts @@ -57,7 +57,7 @@ export default class ServerTest { @Test() public async shouldBeAbleToGetTheFastifyVersionFromTheHttpServer({ assert }: Context) { - assert.equal(Server.getFastifyVersion(), '4.24.3') + assert.equal(Server.getFastifyVersion(), '4.25.2') } @Test()