diff --git a/changelog.md b/changelog.md index 6ea29f9..0698a3f 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2025-03-26 - 2.6.17 - fix(logger) +Preserve logbox width after logBoxEnd so that subsequent logBoxLine calls continue using the set width. + +- Removed the reset of currentBoxWidth in logBoxEnd to allow persistent width across logbox calls. +- Ensures that logBoxLine uses the previously set width when no new width is provided. + ## 2025-03-26 - 2.6.16 - fix(cli) Improve CLI logging consistency by replacing direct console output with unified logger calls. diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 50c05ac..297f5de 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@serve.zone/nupst', - version: '2.6.16', + version: '2.6.17', description: 'Node.js UPS Shutdown Tool for SNMP-enabled UPS devices' } diff --git a/ts/logger.ts b/ts/logger.ts index a171e3f..75ab154 100644 --- a/ts/logger.ts +++ b/ts/logger.ts @@ -112,9 +112,6 @@ export class Logger { // Create the bottom border: └────────┘ console.log(`└${'─'.repeat(boxWidth - 2)}┘`); - - // Reset the current box width - this.currentBoxWidth = null; } /**