@yolo-croket-dev/core 1.7.7-jun.0 → 1.7.7-jun.1

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.
@@ -9,6 +9,6 @@ export declare class AmqpManagement {
9
9
  private client;
10
10
  constructor(client: ClientProxy);
11
11
  private paramProcessor;
12
- call(funcName: string, messagePattern: string, payload: unknown, argParam?: AbstractParam, options?: AmqpManagementOptions): Promise<any>;
12
+ call(funcName: string, messagePattern: string, payload: unknown, argParam?: AbstractParam, options?: AmqpManagementOptions, file?: any): Promise<any>;
13
13
  onlyPublish(funcName: string, messagePattern: string, payload: unknown, argParam?: AbstractParam, options?: AmqpManagementOptions): boolean;
14
14
  }
@@ -44,7 +44,7 @@ class AmqpManagement {
44
44
  }
45
45
  return param;
46
46
  }
47
- async call(funcName, messagePattern, payload, argParam, options) {
47
+ async call(funcName, messagePattern, payload, argParam, options, file) {
48
48
  const param = this.paramProcessor(argParam || {
49
49
  traceId: (0, _1.generateTraceId)(),
50
50
  isInternal: true,
@@ -53,17 +53,12 @@ class AmqpManagement {
53
53
  const result = await (0, _1.AmqpHandler)(this.client, messagePattern, {
54
54
  payload,
55
55
  param,
56
+ file,
56
57
  });
57
58
  return result.data;
58
59
  }
59
60
  catch (err) {
60
- msaLogger.error(`ThrowWrapppingCall[${funcName}] error: traceId=${param.traceId}`, { traceId: param.traceId }, {
61
- param: {
62
- ...param,
63
- // 파일 있을 경우 100자까지 노출
64
- file: param.file ? JSON.stringify(param.file).slice(0, 100) : undefined,
65
- },
66
- });
61
+ msaLogger.error(`ThrowWrapppingCall[${funcName}] error: traceId=${param.traceId}`, { traceId: param.traceId }, { param });
67
62
  if (options && options.isErrorThrowing) {
68
63
  throw err;
69
64
  }
@@ -34,8 +34,6 @@ export interface AbstractParam {
34
34
  /** 이전 호출자 */
35
35
  from?: string;
36
36
  froms?: string[];
37
- /** 파일 정보 */
38
- file?: any;
39
37
  }
40
38
  export interface File {
41
39
  [key: string]: FileValue | FileValue[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/core",
3
- "version": "1.7.7-jun.0",
3
+ "version": "1.7.7-jun.1",
4
4
  "author": "Yolo Co., Ltd.",
5
5
  "description": "Yolo commonization module",
6
6
  "main": "index.js",