@tmlmobilidade/utils 20250901.2037.53 → 20250901.2038.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@ interface LogColumn {
10
10
  /**
11
11
  * Column text.
12
12
  */
13
- txt: string;
13
+ txt: number | string;
14
14
  }
15
15
  declare class LogsClass {
16
16
  /**
@@ -131,10 +131,10 @@ class LogsClass {
131
131
  if (typeof item === 'string')
132
132
  return item;
133
133
  if (!item.cols)
134
- return item.txt;
134
+ return String(item.txt);
135
135
  if (item.align === 'right')
136
- return item.txt.padStart(item.cols);
137
- return item.txt.padEnd(item.cols);
136
+ return String(item.txt).padStart(item.cols);
137
+ return String(item.txt).padEnd(item.cols);
138
138
  })
139
139
  .join(' ');
140
140
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/utils",
3
- "version": "20250901.2037.53",
3
+ "version": "20250901.2038.51",
4
4
  "author": "João de Vasconcelos & Jusi Monteiro",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "homepage": "https://github.com/tmlmobilidade/services#readme",