From cc3d14098bbb9673bb472dc1f9d5200837dcc146 Mon Sep 17 00:00:00 2001 From: jlenon7 Date: Sun, 15 Mar 2026 14:48:53 -0300 Subject: [PATCH 1/2] fix(handler): make a super call to handle method --- package-lock.json | 112 +++++++++++++++++++-------- package.json | 2 +- src/handlers/HttpExceptionHandler.ts | 3 + 3 files changed, 85 insertions(+), 32 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4d58914..644621e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@athenna/http", - "version": "5.43.0", + "version": "5.44.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@athenna/http", - "version": "5.43.0", + "version": "5.44.0", "license": "MIT", "devDependencies": { "@athenna/artisan": "^5.11.0", @@ -3553,31 +3553,6 @@ "readable-stream": "^3.4.0" } }, - "node_modules/bl/node_modules/buffer": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", - "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.2.1" - } - }, "node_modules/bl/node_modules/readable-stream": { "version": "3.6.2", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", @@ -3630,9 +3605,9 @@ } }, "node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", "dev": true, "funding": [ { @@ -3651,7 +3626,7 @@ "license": "MIT", "dependencies": { "base64-js": "^1.3.1", - "ieee754": "^1.1.13" + "ieee754": "^1.2.1" } }, "node_modules/buffer-alloc": { @@ -4540,6 +4515,31 @@ "concat-map": "0.0.1" } }, + "node_modules/commitizen/node_modules/buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, "node_modules/commitizen/node_modules/chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", @@ -8425,6 +8425,31 @@ "uuid-parse": "^1.1.0" } }, + "node_modules/hyperid/node_modules/buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, "node_modules/iconv-lite": { "version": "0.7.2", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.2.tgz", @@ -8637,6 +8662,31 @@ "readable-stream": "^3.4.0" } }, + "node_modules/inquirer/node_modules/buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, "node_modules/inquirer/node_modules/chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", diff --git a/package.json b/package.json index 796e8a6..a5ffcac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@athenna/http", - "version": "5.43.0", + "version": "5.44.0", "description": "The Athenna Http server. Built on top of fastify.", "license": "MIT", "author": "João Lenon ", diff --git a/src/handlers/HttpExceptionHandler.ts b/src/handlers/HttpExceptionHandler.ts index ed4d9f4..1a19e91 100644 --- a/src/handlers/HttpExceptionHandler.ts +++ b/src/handlers/HttpExceptionHandler.ts @@ -67,6 +67,9 @@ export class HttpExceptionHandler extends ExceptionHandler { response.status(body.statusCode).send(body) + // @ts-ignore + await super.handle({ error, response }) + if (!this.canBeLogged(error)) { return } From afc3fb5b6d2e3f2889089e86b0e3cf7d4ae8e1d8 Mon Sep 17 00:00:00 2001 From: jlenon7 Date: Sun, 15 Mar 2026 14:49:12 -0300 Subject: [PATCH 2/2] fix(handler): make a super call to handle method --- src/handlers/HttpExceptionHandler.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/handlers/HttpExceptionHandler.ts b/src/handlers/HttpExceptionHandler.ts index 1a19e91..35e9c1e 100644 --- a/src/handlers/HttpExceptionHandler.ts +++ b/src/handlers/HttpExceptionHandler.ts @@ -67,6 +67,7 @@ export class HttpExceptionHandler extends ExceptionHandler { response.status(body.statusCode).send(body) + // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore await super.handle({ error, response })