@yolo-croket-dev/core 1.9.2 → 1.9.3-jun.0

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.
@@ -17,7 +17,6 @@ class HttpExceptionCustom extends common_1.HttpException {
17
17
  }
18
18
  }
19
19
  exports.HttpExceptionCustom = HttpExceptionCustom;
20
- // eslint-disable-next-line max-len
21
20
  async function AmqpHandler(client, messagePattern, payload) {
22
21
  var _a, _b, _c, _d;
23
22
  let data;
@@ -31,6 +30,7 @@ async function AmqpHandler(client, messagePattern, payload) {
31
30
  * 다른 서비스에서 이미 처리가 될 수 있음
32
31
  * */
33
32
  (0, _1.reWriteFileValue)((_a = data === null || data === void 0 ? void 0 : data.arg) === null || _a === void 0 ? void 0 : _a.file);
33
+ console.log('data@@@@@@@', data);
34
34
  const errInfo = data.errInfo ? data.errInfo : {
35
35
  message: data.errMessage,
36
36
  type: data.errType,
@@ -40,6 +40,7 @@ async function AmqpHandler(client, messagePattern, payload) {
40
40
  delete data.errType;
41
41
  delete data.errMessage;
42
42
  delete data.errAction;
43
+ delete data.errOption;
43
44
  delete data.isError;
44
45
  delete data.status;
45
46
  delete data.arg;
@@ -213,6 +213,7 @@ let RPCInterceptor = class RPCInterceptor {
213
213
  const errMessage = err.errMessage;
214
214
  const errAction = err.errAction;
215
215
  const errInfo = err.errInfo;
216
+ const errOption = err.errOption;
216
217
  const duration = Date.now() - now;
217
218
  let isAck = false;
218
219
  const isTimeoutError = err instanceof Error
@@ -227,11 +228,13 @@ let RPCInterceptor = class RPCInterceptor {
227
228
  duration,
228
229
  arg,
229
230
  timestamp: new Date(),
230
- // new
231
+ // === Service-to-Service Error Data ===
231
232
  errInfo,
233
+ // === Service-to-Gateway Error Data ===
232
234
  errType,
233
235
  errMessage,
234
236
  errAction,
237
+ errOption,
235
238
  };
236
239
  if (!Number.isNaN(staticRetryCount)
237
240
  && staticRetryCount
@@ -1,4 +1,4 @@
1
- import { MsaExceptionOption } from './msa-exception';
1
+ import type { MsaExceptionOption } from './msa-exception';
2
2
  export declare enum ErrActionTypeEnum {
3
3
  SERVER_PAUSE = "SERVER_PAUSE",
4
4
  OPEN_WEBVIEW = "OPEN_WEBVIEW",
@@ -1,6 +1,6 @@
1
1
  import { HttpException } from '@nestjs/common';
2
2
  import { LogLevelEnum } from './log-level.enum';
3
- import { ErrAction } from './exception';
3
+ import type { ErrAction } from './exception';
4
4
  export interface MsaExceptionOption {
5
5
  /**
6
6
  * 로그 레벨
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/core",
3
- "version": "1.9.2",
3
+ "version": "1.9.3-jun.0",
4
4
  "author": "Yolo Co., Ltd.",
5
5
  "description": "Yolo commonization module",
6
6
  "main": "index.js",