@seidor-cloud-produtos/orbit-backend-lib 2.0.93 → 2.0.95

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.
@@ -76,7 +76,7 @@ export default abstract class LoggerGateway implements Logger {
76
76
  protected cache?: Cache;
77
77
  protected options?: LogOptions;
78
78
  protected params?: LogParamsInput;
79
- constructor(props: LoggerGatewayProps);
79
+ constructor(props?: LoggerGatewayProps);
80
80
  private static cacheKey;
81
81
  /**
82
82
  * Loga com nível `info`.
@@ -31,9 +31,9 @@ class LoggerGateway {
31
31
  options;
32
32
  params;
33
33
  constructor(props) {
34
- this.cache = props.cache;
35
- this.options = props.options;
36
- this.params = props.params;
34
+ this.cache = props?.cache;
35
+ this.options = props?.options;
36
+ this.params = props?.params;
37
37
  }
38
38
  static cacheKey = 'LOG_LEVEL';
39
39
  /**
@@ -26,7 +26,7 @@ export declare class LoggerInMemory extends LoggerGateway {
26
26
  * @param options Opções de comportamento do logger.
27
27
  * @param params Parâmetros padrão de log (actor/type).
28
28
  */
29
- constructor(props: LoggerInMemoryProps);
29
+ constructor(props?: LoggerInMemoryProps);
30
30
  /**
31
31
  * Delegado para o fluxo comum de LoggerGateway.
32
32
  * Mantido como atalho para compatibilidade com outros loggers.
@@ -85,7 +85,7 @@ export declare class LoggerOrbit extends LoggerGateway {
85
85
  private queue;
86
86
  protected options: LoggerOrbitOptions;
87
87
  protected params?: LogOrbitParamsInput;
88
- constructor(queue: Queue, props: LoggerOrbitProps);
88
+ constructor(queue: Queue, props?: LoggerOrbitProps);
89
89
  /**
90
90
  * Loga um evento (atalho para `super.log`).
91
91
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seidor-cloud-produtos/orbit-backend-lib",
3
- "version": "2.0.93",
3
+ "version": "2.0.95",
4
4
  "description": "Internal lib for backend components",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",