@yolo-croket-dev/core 1.7.17-jun.3 → 1.7.17

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.
@@ -12,7 +12,6 @@ class BadRequest extends common_1.HttpException {
12
12
  this.errMessage = null;
13
13
  this.errAction = null;
14
14
  this.subMessage = errMessage || null;
15
- console.log('errAction 데이터를 확인합니다.', errAction);
16
15
  // new
17
16
  this.errType = errType || null;
18
17
  this.errMessage = errMessage || null;
@@ -20,7 +20,6 @@ async function AmqpHandler(client, messagePattern, payload) {
20
20
  let data;
21
21
  try {
22
22
  data = await (0, rxjs_1.lastValueFrom)(client.send(messagePattern, payload).pipe());
23
- console.log('data 데이터를 확인합니다.', data);
24
23
  if (data.isError) {
25
24
  const status = data.status || 500;
26
25
  const subMessage = data.subMessage;
@@ -29,7 +28,6 @@ async function AmqpHandler(client, messagePattern, payload) {
29
28
  * 다른 서비스에서 이미 처리가 될 수 있음
30
29
  * */
31
30
  (0, _1.reWriteFileValue)((_a = data === null || data === void 0 ? void 0 : data.arg) === null || _a === void 0 ? void 0 : _a.file);
32
- console.log('data 데이터를 확인합니다. 2', data);
33
31
  const errInfo = data.errInfo ? data.errInfo : {
34
32
  message: data.errMessage,
35
33
  type: data.errType,
@@ -46,7 +44,6 @@ async function AmqpHandler(client, messagePattern, payload) {
46
44
  }
47
45
  }
48
46
  catch (err) {
49
- console.log('err 데이터를 확인합니다.', err);
50
47
  if (typeof err === 'string' && err.includes('There is no matching message handler defined in the remote service.')) {
51
48
  msaLogger.error('NOT_EXISTS_MESSAGE_PATTERN', { traceId: ((_b = payload === null || payload === void 0 ? void 0 : payload.param) === null || _b === void 0 ? void 0 : _b.traceId) || '-' }, { err });
52
49
  throw new HttpExceptionCustom('해당 메시지 패턴은 존재하지 않습니다.', 404, 'There is no matching message handler defined in the remote service.', {
@@ -59,7 +56,6 @@ async function AmqpHandler(client, messagePattern, payload) {
59
56
  throw err;
60
57
  }
61
58
  }
62
- console.log('data를 응답합니다.', data);
63
59
  delete data.isError;
64
60
  return data;
65
61
  }
@@ -42,7 +42,6 @@ async function AmqpPublish(client, messagePattern, payload, message) {
42
42
  clearInterval(unsubscribeInterval);
43
43
  subscribeValue.unsubscribe();
44
44
  const { isError } = value;
45
- console.log('value 데이터를 확인합니다.', value);
46
45
  if (isError) {
47
46
  const result = { ...value };
48
47
  const status = result.status || 500;
@@ -188,7 +188,7 @@ let LoggingServiceInterceptor = class LoggingServiceInterceptor {
188
188
  }));
189
189
  }
190
190
  };
191
- exports.LoggingServiceInterceptor = LoggingServiceInterceptor;
192
- exports.LoggingServiceInterceptor = LoggingServiceInterceptor = __decorate([
191
+ LoggingServiceInterceptor = __decorate([
193
192
  (0, common_1.Injectable)()
194
193
  ], LoggingServiceInterceptor);
194
+ exports.LoggingServiceInterceptor = LoggingServiceInterceptor;
@@ -202,7 +202,6 @@ let RPCInterceptor = class RPCInterceptor {
202
202
  errMessage,
203
203
  errAction,
204
204
  };
205
- console.log('abstractAmqpHandlerData 데이터를 확인합니다.', abstractAmqpHandlerData);
206
205
  if (!Number.isNaN(staticRetryCount)
207
206
  && staticRetryCount
208
207
  && err.isRetry !== false) {
@@ -303,9 +302,9 @@ let RPCInterceptor = class RPCInterceptor {
303
302
  }));
304
303
  }
305
304
  };
306
- exports.RPCInterceptor = RPCInterceptor;
307
- exports.RPCInterceptor = RPCInterceptor = __decorate([
305
+ RPCInterceptor = __decorate([
308
306
  (0, common_1.Injectable)(),
309
307
  __metadata("design:paramtypes", [core_1.Reflector,
310
308
  graceful_shutdown_service_1.GracefulShutdownService])
311
309
  ], RPCInterceptor);
310
+ exports.RPCInterceptor = RPCInterceptor;
@@ -18,10 +18,9 @@ var ErrActionTypeEnum;
18
18
  ErrActionTypeEnum["LEGACY_SHOW_TOAST"] = "LEGACY_SHOW_TOAST";
19
19
  ErrActionTypeEnum["FORCE_UPDATE"] = "FORCE_UPDATE";
20
20
  ErrActionTypeEnum["UPDATE_ACCESS_TOKEN"] = "UPDATE_ACCESS_TOKEN";
21
- })(ErrActionTypeEnum || (exports.ErrActionTypeEnum = ErrActionTypeEnum = {}));
21
+ })(ErrActionTypeEnum = exports.ErrActionTypeEnum || (exports.ErrActionTypeEnum = {}));
22
22
  class ErrAction {
23
23
  }
24
- exports.ErrAction = ErrAction;
25
24
  __decorate([
26
25
  (0, swagger_1.ApiProperty)({
27
26
  description: '액션 타입',
@@ -58,9 +57,9 @@ __decorate([
58
57
  }),
59
58
  __metadata("design:type", String)
60
59
  ], ErrAction.prototype, "webViewUrl", void 0);
60
+ exports.ErrAction = ErrAction;
61
61
  class ErrInfo {
62
62
  }
63
- exports.ErrInfo = ErrInfo;
64
63
  __decorate([
65
64
  (0, swagger_1.ApiProperty)({
66
65
  description: '에러 종류 식별자',
@@ -82,3 +81,4 @@ __decorate([
82
81
  }),
83
82
  __metadata("design:type", ErrAction)
84
83
  ], ErrInfo.prototype, "action", void 0);
84
+ exports.ErrInfo = ErrInfo;
@@ -11,11 +11,11 @@ const common_1 = require("@nestjs/common");
11
11
  const graceful_shutdown_service_1 = require("./graceful-shutdown.service");
12
12
  let GracefulShutdownModule = class GracefulShutdownModule {
13
13
  };
14
- exports.GracefulShutdownModule = GracefulShutdownModule;
15
- exports.GracefulShutdownModule = GracefulShutdownModule = __decorate([
14
+ GracefulShutdownModule = __decorate([
16
15
  (0, common_1.Global)(),
17
16
  (0, common_1.Module)({
18
17
  providers: [graceful_shutdown_service_1.GracefulShutdownService],
19
18
  exports: [graceful_shutdown_service_1.GracefulShutdownService],
20
19
  })
21
20
  ], GracefulShutdownModule);
21
+ exports.GracefulShutdownModule = GracefulShutdownModule;
@@ -1,7 +1,7 @@
1
1
  import { RmqOptions, ServerRMQ } from '@nestjs/microservices';
2
2
  import { Channel } from 'amqp-connection-manager';
3
3
  import { ConsumeMessage } from 'amqplib';
4
- export type GracefulRmqOptions = RmqOptions['options'] & {
4
+ export declare type GracefulRmqOptions = RmqOptions['options'] & {
5
5
  waitingEndingHandlersTimeoutMs?: number;
6
6
  waitingEndingHandlersIntervalMs?: number;
7
7
  };
@@ -94,7 +94,7 @@ let GracefulShutdownService = class GracefulShutdownService {
94
94
  }
95
95
  }
96
96
  };
97
- exports.GracefulShutdownService = GracefulShutdownService;
98
- exports.GracefulShutdownService = GracefulShutdownService = __decorate([
97
+ GracefulShutdownService = __decorate([
99
98
  (0, common_1.Injectable)()
100
99
  ], GracefulShutdownService);
100
+ exports.GracefulShutdownService = GracefulShutdownService;
@@ -15,10 +15,10 @@ const redisProvider = {
15
15
  };
16
16
  let RedisModule = class RedisModule {
17
17
  };
18
- exports.RedisModule = RedisModule;
19
- exports.RedisModule = RedisModule = __decorate([
18
+ RedisModule = __decorate([
20
19
  (0, common_1.Module)({
21
20
  providers: [redisProvider],
22
21
  exports: [redisProvider],
23
22
  })
24
23
  ], RedisModule);
24
+ exports.RedisModule = RedisModule;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/core",
3
- "version": "1.7.17-jun.3",
3
+ "version": "1.7.17",
4
4
  "author": "Yolo Co., Ltd.",
5
5
  "description": "Yolo commonization module",
6
6
  "main": "index.js",
@@ -31,8 +31,8 @@ let ValidationPipe = class ValidationPipe {
31
31
  return value;
32
32
  }
33
33
  };
34
- exports.ValidationPipe = ValidationPipe;
35
- exports.ValidationPipe = ValidationPipe = __decorate([
34
+ ValidationPipe = __decorate([
36
35
  (0, common_1.Injectable)(),
37
36
  __metadata("design:paramtypes", [Object])
38
37
  ], ValidationPipe);
38
+ exports.ValidationPipe = ValidationPipe;