From b022bd3645a8fa229ac7f718555b3668c2732cf8 Mon Sep 17 00:00:00 2001 From: Juliano Sill Date: Thu, 21 May 2026 15:41:01 -0300 Subject: [PATCH 1/3] chore(package): bump app version to `0.0.3` --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ca6dbac..091ec76 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "abnmo-backend", - "version": "0.0.1", + "version": "0.0.3", "description": "", "author": "", "private": true, From 443213ae43392ee6eca169bf43c280652636bad6 Mon Sep 17 00:00:00 2001 From: Juliano Sill Date: Thu, 21 May 2026 15:43:00 -0300 Subject: [PATCH 2/3] chore(logs): skip constructor and not functions in decorator --- src/common/log/log.decorator.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/log/log.decorator.ts b/src/common/log/log.decorator.ts index 7e62bf3..2b777e1 100644 --- a/src/common/log/log.decorator.ts +++ b/src/common/log/log.decorator.ts @@ -29,8 +29,12 @@ export function Log(eventName?: ContextEvent) { const methods = Object.getOwnPropertyNames(prototype); for (const name of methods) { + if (name === 'constructor') continue; + const originalMethod = prototype[name] as (...args: any[]) => any; + if (typeof originalMethod !== 'function') continue; + prototype[name] = function (this: WithLogger, ...args: unknown[]) { if (this.logger instanceof LogService) { const context = name === 'execute' ? cls.name : `${cls.name}.${name}`; From 34b101b356bd04629f7fe92b6bf05a6ce59d0d03 Mon Sep 17 00:00:00 2001 From: Juliano Sill Date: Thu, 21 May 2026 15:43:48 -0300 Subject: [PATCH 3/3] build(scripts): enable `keepNames` to preserve classes name --- infra/database/seed-dev.ts | 2 +- infra/scripts/build-lambda.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/infra/database/seed-dev.ts b/infra/database/seed-dev.ts index 59dc758..58c3d12 100644 --- a/infra/database/seed-dev.ts +++ b/infra/database/seed-dev.ts @@ -46,7 +46,7 @@ function getRandomCity(state: string): string { } async function main() { - const password = await hash('12345678', 10); + const password = await hash('12345678', 14); try { await dataSource.initialize(); diff --git a/infra/scripts/build-lambda.ts b/infra/scripts/build-lambda.ts index f7e34ca..b9e46d8 100644 --- a/infra/scripts/build-lambda.ts +++ b/infra/scripts/build-lambda.ts @@ -26,6 +26,7 @@ async function buildLambda() { target: 'node22', outfile: path.join(outDir, 'index.js'), minify: true, + keepNames: true, treeShaking: true, sourcemap: false, external: [