@callidescope/output 0.0.72 → 0.0.73
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.
- package/CHANGELOG.md +8 -0
- package/README.md +7 -7
- package/dist/src/index.d.ts +19 -1
- package/dist/src/index.js +1 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -385,7 +385,7 @@ graph LR
|
|
|
385
385
|
### Project
|
|
386
386
|
|
|
387
387
|

|
|
388
|
-

|
|
389
389
|

|
|
390
390
|

|
|
391
391
|
|
|
@@ -573,16 +573,16 @@ graph LR
|
|
|
573
573
|
### Markdown
|
|
574
574
|
|
|
575
575
|

|
|
576
|
-

|
|
577
577
|

|
|
578
|
-

|
|
579
|
+

|
|
580
580
|

|
|
581
581
|

|
|
582
582
|

|
|
583
|
-

|
|
584
|
+

|
|
585
|
+

|
|
586
586
|

|
|
587
587
|

|
|
588
588
|

|
package/dist/src/index.d.ts
CHANGED
|
@@ -230,7 +230,10 @@ declare interface LogData {
|
|
|
230
230
|
* ```
|
|
231
231
|
*/
|
|
232
232
|
declare @Injectable({ scope: Scope.TRANSIENT })
|
|
233
|
-
class LoggerService
|
|
233
|
+
class LoggerService
|
|
234
|
+
extends ConsoleLogger
|
|
235
|
+
implements LoggerServiceContract
|
|
236
|
+
{
|
|
234
237
|
// 🏗 Dependency Injection
|
|
235
238
|
|
|
236
239
|
constructor() {
|
|
@@ -529,6 +532,21 @@ class LoggerService extends ConsoleLogger {
|
|
|
529
532
|
}
|
|
530
533
|
}
|
|
531
534
|
|
|
535
|
+
/** The public logger shape used to type test doubles without importing its service. */
|
|
536
|
+
declare interface LoggerServiceContract extends ConsoleLogger {
|
|
537
|
+
/** Normalizes unknown errors into a stable message and timestamped log line. */
|
|
538
|
+
buildErrorLogEntry(
|
|
539
|
+
context: string,
|
|
540
|
+
error: unknown,
|
|
541
|
+
): { errorMessage: string; logLine: string };
|
|
542
|
+
|
|
543
|
+
/** Builds a timestamped output log file path and ensures the output directory exists. */
|
|
544
|
+
createTimestampedOutputLogFilePath(filePrefix: string): string;
|
|
545
|
+
|
|
546
|
+
/** Logs an informational message at the `info` level. */
|
|
547
|
+
info(message: unknown, context?: string, data?: LogData): void;
|
|
548
|
+
}
|
|
549
|
+
|
|
532
550
|
/**
|
|
533
551
|
* Heading over the call stacks that ran deeper than their project allows.
|
|
534
552
|
*
|
package/dist/src/index.js
CHANGED
package/package.json
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
"url": "https://github.com/organizzolini/codebase/issues"
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@callidescope/configuration": "0.0.
|
|
8
|
-
"@callidescope/core": "0.0.
|
|
9
|
-
"@callidescope/graph": "0.0.
|
|
7
|
+
"@callidescope/configuration": "0.0.74",
|
|
8
|
+
"@callidescope/core": "0.0.73",
|
|
9
|
+
"@callidescope/graph": "0.0.73",
|
|
10
10
|
"@nestjs/common": "^11.1.21 || ^12.0.1",
|
|
11
11
|
"pino": "^10.3.1",
|
|
12
12
|
"pino-pretty": "^13.1.3",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"strict": true
|
|
63
63
|
},
|
|
64
64
|
"types": "./dist/src/index.d.ts",
|
|
65
|
-
"version": "0.0.
|
|
65
|
+
"version": "0.0.73"
|
|
66
66
|
}
|