@seidor-cloud-produtos/orbit-backend-lib 2.0.51 → 2.0.52

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.
@@ -32,9 +32,9 @@ export interface Logger {
32
32
  }
33
33
  export default abstract class LoggerGateway implements Logger {
34
34
  protected cache: Cache;
35
- protected params?: LogParams | undefined;
36
35
  protected options?: LogOptions | undefined;
37
- constructor(cache: Cache, params?: LogParams | undefined, options?: LogOptions | undefined);
36
+ protected params?: LogParams | undefined;
37
+ constructor(cache: Cache, options?: LogOptions | undefined, params?: LogParams | undefined);
38
38
  private static cacheKey;
39
39
  info(...input: any[]): Promise<void>;
40
40
  warn(...input: any[]): Promise<void>;
@@ -14,12 +14,12 @@ var CategoryEnum;
14
14
  })(CategoryEnum || (exports.CategoryEnum = CategoryEnum = {}));
15
15
  class LoggerGateway {
16
16
  cache;
17
- params;
18
17
  options;
19
- constructor(cache, params, options) {
18
+ params;
19
+ constructor(cache, options, params) {
20
20
  this.cache = cache;
21
- this.params = params;
22
21
  this.options = options;
22
+ this.params = params;
23
23
  }
24
24
  static cacheKey = 'LOG_LEVEL';
25
25
  async info(...input) {
@@ -5,7 +5,7 @@ export interface LoggerInMemoryOptions extends LogOptions {
5
5
  }
6
6
  export declare class LoggerInMemory extends LoggerGateway {
7
7
  protected options: LoggerInMemoryOptions;
8
- constructor(cache: Cache, params: LogParams, options?: LoggerInMemoryOptions);
8
+ constructor(cache: Cache, options?: LoggerInMemoryOptions, params?: LogParams);
9
9
  log(props: LogPropertiesInput, dataToLog: any): Promise<void>;
10
10
  protected register(props: LogPropertiesInput, dataToLog: any): void;
11
11
  }
@@ -5,8 +5,8 @@ const tslib_1 = require("tslib");
5
5
  const logger_1 = tslib_1.__importDefault(require("../../application/logger"));
6
6
  const types_1 = require("../environment/types");
7
7
  class LoggerInMemory extends logger_1.default {
8
- constructor(cache, params, options) {
9
- super(cache, params, options);
8
+ constructor(cache, options, params) {
9
+ super(cache, options, params);
10
10
  }
11
11
  async log(props, dataToLog) {
12
12
  return await super.log(props, dataToLog);
@@ -46,7 +46,7 @@ export declare class LoggerOrbit extends LoggerGateway {
46
46
  private queue;
47
47
  protected options: LoggerOrbitOptions;
48
48
  protected params?: LogOrbitParams;
49
- constructor(queue: Queue, cache: Cache, params?: LogOrbitParams, options?: LoggerOrbitOptions);
49
+ constructor(queue: Queue, cache: Cache, options?: LoggerOrbitOptions, params?: LogOrbitParams);
50
50
  log(props: LogOrbitPropertiesInput, dataToLog: any): Promise<void>;
51
51
  protected isToLog(props: LogOrbitProperties, dataToLog: any): Promise<boolean>;
52
52
  register(props: LogOrbitProperties, data: any): Promise<void>;
@@ -15,8 +15,8 @@ class LogEvent {
15
15
  exports.default = LogEvent;
16
16
  class LoggerOrbit extends logger_1.default {
17
17
  queue;
18
- constructor(queue, cache, params, options) {
19
- super(cache, params, options);
18
+ constructor(queue, cache, options, params) {
19
+ super(cache, options, params);
20
20
  this.queue = queue;
21
21
  }
22
22
  async log(props, dataToLog) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seidor-cloud-produtos/orbit-backend-lib",
3
- "version": "2.0.51",
3
+ "version": "2.0.52",
4
4
  "description": "Internal lib for backend components",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",