@lark-apaas/nestjs-logger 1.0.2-alpha.25 → 1.0.2-alpha.26

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/dist/index.d.cts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { LoggerService, LogLevel, NestMiddleware } from '@nestjs/common';
2
2
  import { Logger } from 'pino';
3
3
  import { RequestContextService, ObservableService } from '@lark-apaas/nestjs-common';
4
- export { RequestContextService } from '@lark-apaas/nestjs-common';
5
4
  import { Request, Response, NextFunction } from 'express';
6
5
 
7
6
  declare abstract class BasePinoLogger implements LoggerService {
package/dist/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { LoggerService, LogLevel, NestMiddleware } from '@nestjs/common';
2
2
  import { Logger } from 'pino';
3
3
  import { RequestContextService, ObservableService } from '@lark-apaas/nestjs-common';
4
- export { RequestContextService } from '@lark-apaas/nestjs-common';
5
4
  import { Request, Response, NextFunction } from 'express';
6
5
 
7
6
  declare abstract class BasePinoLogger implements LoggerService {
package/dist/index.js CHANGED
@@ -14378,7 +14378,7 @@ var TRACE_LOGGER = Symbol("TRACE_LOGGER");
14378
14378
  var METRICS_LOGGER = Symbol("METRICS_LOGGER");
14379
14379
 
14380
14380
  // src/service/app-logger.service.ts
14381
- import { RequestContextService, OBSERVABLE_SERVICE_TOKEN, ObservableService } from "@lark-apaas/nestjs-common";
14381
+ import { RequestContextService, OBSERVABLE_SERVICE, ObservableService } from "@lark-apaas/nestjs-common";
14382
14382
  function _ts_decorate(decorators, target, key, desc) {
14383
14383
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14384
14384
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -14682,7 +14682,7 @@ var AppLogger = class extends BasePinoLogger {
14682
14682
  AppLogger = _ts_decorate([
14683
14683
  Injectable(),
14684
14684
  _ts_param(0, Inject(PINO_ROOT_LOGGER)),
14685
- _ts_param(1, Inject(OBSERVABLE_SERVICE_TOKEN)),
14685
+ _ts_param(1, Inject(OBSERVABLE_SERVICE)),
14686
14686
  _ts_metadata("design:type", Function),
14687
14687
  _ts_metadata("design:paramtypes", [
14688
14688
  typeof PinoLogger === "undefined" ? Object : PinoLogger,
@@ -14738,7 +14738,7 @@ __name(sanitizeValue, "sanitizeValue");
14738
14738
  var import_config3 = __toESM(require_config2(), 1);
14739
14739
  import { Global, Module } from "@nestjs/common";
14740
14740
  import { APP_INTERCEPTOR } from "@nestjs/core";
14741
- import { CommonModule, OBSERVABLE_SERVICE_TOKEN as OBSERVABLE_SERVICE_TOKEN2, RequestContextService as RequestContextService4 } from "@lark-apaas/nestjs-common";
14741
+ import { OBSERVABLE_SERVICE as OBSERVABLE_SERVICE2, RequestContextService as RequestContextService4 } from "@lark-apaas/nestjs-common";
14742
14742
 
14743
14743
  // src/config/logger.config.ts
14744
14744
  var import_config = __toESM(require_config2(), 1);
@@ -15062,8 +15062,7 @@ LoggerModule = _ts_decorate4([
15062
15062
  Global(),
15063
15063
  Module({
15064
15064
  imports: [
15065
- import_config3.ConfigModule.forFeature(logger_config_default),
15066
- CommonModule
15065
+ import_config3.ConfigModule.forFeature(logger_config_default)
15067
15066
  ],
15068
15067
  providers: [
15069
15068
  LoggerContextMiddleware,
@@ -15088,7 +15087,7 @@ LoggerModule = _ts_decorate4([
15088
15087
  inject: [
15089
15088
  RequestContextService4,
15090
15089
  logger_config_default.KEY,
15091
- OBSERVABLE_SERVICE_TOKEN2
15090
+ OBSERVABLE_SERVICE2
15092
15091
  ]
15093
15092
  },
15094
15093
  AppLogger,
@@ -15105,15 +15104,11 @@ LoggerModule = _ts_decorate4([
15105
15104
  ]
15106
15105
  })
15107
15106
  ], LoggerModule);
15108
-
15109
- // src/index.ts
15110
- import { RequestContextService as RequestContextService5 } from "@lark-apaas/nestjs-common";
15111
15107
  export {
15112
15108
  AppLogger,
15113
15109
  LoggerContextMiddleware,
15114
15110
  LoggerModule,
15115
15111
  PinoLoggerService,
15116
- RequestContextService5 as RequestContextService,
15117
15112
  TRACE_LOGGER
15118
15113
  };
15119
15114
  //# sourceMappingURL=index.js.map