@vvlad1973/simple-logger 2.0.2 → 2.1.1

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.1.0](https://github.com/vvlad1973/vvlad1973-simple-logger/compare/v2.0.2...v2.1.0)
4
+
5
+ ### Features
6
+
7
+ - **feat**(LoggerOptions interface): LoggerOptions interface has been improved (2025-05-04) [`4b3e8df640947af243058ca6a75939708dfba015`](https://github.com/vvlad1973/vvlad1973-simple-logger/commit/4b3e8df640947af243058ca6a75939708dfba015)
8
+
3
9
  ## [2.0.2](https://github.com/vvlad1973/vvlad1973-simple-logger/compare/v2.0.1...v2.0.2)
4
10
 
5
11
  ### Fixes
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import SimpleLogger from './classes/simple-logger';
2
2
  export default SimpleLogger;
3
3
  export { SimpleLogger };
4
- export * from './types/simple-logger.types.js';
4
+ export * from './types/simple-logger.types';
5
5
  export * from './constants/constants.js';
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import SimpleLogger from './classes/simple-logger';
2
2
  export default SimpleLogger;
3
3
  export { SimpleLogger };
4
- export * from './types/simple-logger.types.js';
4
+ export * from './types/simple-logger.types';
5
5
  export * from './constants/constants.js';
6
6
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,yBAAyB,CAAC;AAEnD,eAAe,YAAY,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,CAAC;AAExB,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,yBAAyB,CAAC;AAEnD,eAAe,YAAY,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,CAAC;AAExB,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC"}
@@ -22,6 +22,12 @@ export interface LoggerOptions {
22
22
  bindings?: Record<string, unknown>;
23
23
  msgPrefix?: string;
24
24
  transport?: unknown;
25
+ transports?: {
26
+ targets: Array<{
27
+ tag?: string;
28
+ [key: string]: unknown;
29
+ }>;
30
+ };
25
31
  [key: string]: unknown;
26
32
  }
27
33
  export type PreparedLogCall = [string, ...unknown[]] | [object, string?, ...unknown[]] | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vvlad1973/simple-logger",
3
- "version": "2.0.2",
3
+ "version": "2.1.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -16,7 +16,7 @@ export interface ExternalLogger {
16
16
  error?: LogFn;
17
17
  fatal?: LogFn;
18
18
  silent?: LogFn;
19
-
19
+
20
20
  level?: string;
21
21
 
22
22
  child?(bindings: Record<string, unknown>): ExternalLogger;
@@ -31,6 +31,12 @@ export interface LoggerOptions {
31
31
  bindings?: Record<string, unknown>;
32
32
  msgPrefix?: string;
33
33
  transport?: unknown;
34
+ transports?: {
35
+ targets: Array<{
36
+ tag?: string;
37
+ [key: string]: unknown;
38
+ }>;
39
+ };
34
40
  [key: string]: unknown;
35
41
  }
36
42