@yolo-croket-dev/core 1.9.2-jun.1 → 1.9.2

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.
@@ -1,12 +1,11 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { HttpException } from '@nestjs/common';
3
3
  import { AbstractRequest } from '..';
4
- import { ErrInfo, MsaExceptionOption } from '../interfaces';
4
+ import { ErrInfo } from '../interfaces';
5
5
  export declare class HttpExceptionCustom extends HttpException {
6
6
  errInfo?: ErrInfo | null;
7
7
  subMessage: string | null;
8
- errOption?: MsaExceptionOption | null;
9
- constructor(response: string | Record<string, any>, status: number, subMessage?: string | null, errInfo?: ErrInfo | null, errOption?: MsaExceptionOption | null);
8
+ constructor(response: string | Record<string, any>, status: number, subMessage?: string | null, errInfo?: ErrInfo | null);
10
9
  }
11
10
  export interface AbstractAmqpHandlerResponse<T> {
12
11
  message: string;
@@ -10,11 +10,10 @@ const DEFAULT_TIMEOUT = 1000 * 60 * 29; // 29분 타임아웃
10
10
  const DEFAULT_TIMEOUT_MESSAGE = '요청이 타임아웃되었습니다.';
11
11
  const msaLogger = new msa_logger_1.MsaLogger(msa_logger_1.ServerTypeEnum.SERVICE);
12
12
  class HttpExceptionCustom extends common_1.HttpException {
13
- constructor(response, status, subMessage, errInfo, errOption) {
13
+ constructor(response, status, subMessage, errInfo) {
14
14
  super(response, status);
15
15
  this.subMessage = subMessage || null;
16
16
  this.errInfo = errInfo || null;
17
- this.errOption = errOption || null;
18
17
  }
19
18
  }
20
19
  exports.HttpExceptionCustom = HttpExceptionCustom;
@@ -32,23 +31,20 @@ async function AmqpHandler(client, messagePattern, payload) {
32
31
  * 다른 서비스에서 이미 처리가 될 수 있음
33
32
  * */
34
33
  (0, _1.reWriteFileValue)((_a = data === null || data === void 0 ? void 0 : data.arg) === null || _a === void 0 ? void 0 : _a.file);
35
- console.log('data@@@@@@@', data);
36
34
  const errInfo = data.errInfo ? data.errInfo : {
37
35
  message: data.errMessage,
38
36
  type: data.errType,
39
37
  action: data.errAction,
40
38
  errOption: data.errOption,
41
39
  };
42
- const errOption = data.errOption;
43
40
  delete data.errType;
44
41
  delete data.errMessage;
45
42
  delete data.errAction;
46
- delete data.errOption;
47
43
  delete data.isError;
48
44
  delete data.status;
49
45
  delete data.arg;
50
46
  delete data.subMessage;
51
- throw new HttpExceptionCustom(data, status, subMessage, errInfo, errOption);
47
+ throw new HttpExceptionCustom(data, status, subMessage, errInfo);
52
48
  }
53
49
  }
54
50
  catch (err) {
@@ -213,7 +213,6 @@ 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;
217
216
  const duration = Date.now() - now;
218
217
  let isAck = false;
219
218
  const isTimeoutError = err instanceof Error
@@ -233,7 +232,6 @@ let RPCInterceptor = class RPCInterceptor {
233
232
  errType,
234
233
  errMessage,
235
234
  errAction,
236
- errOption,
237
235
  };
238
236
  if (!Number.isNaN(staticRetryCount)
239
237
  && staticRetryCount
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/core",
3
- "version": "1.9.2-jun.1",
3
+ "version": "1.9.2",
4
4
  "author": "Yolo Co., Ltd.",
5
5
  "description": "Yolo commonization module",
6
6
  "main": "index.js",