@yolo-croket-dev/core 1.4.50 → 1.4.51

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.
@@ -117,7 +117,7 @@ let LoggingServiceInterceptor = class LoggingServiceInterceptor {
117
117
  }));
118
118
  }
119
119
  };
120
- exports.LoggingServiceInterceptor = LoggingServiceInterceptor;
121
- exports.LoggingServiceInterceptor = LoggingServiceInterceptor = __decorate([
120
+ LoggingServiceInterceptor = __decorate([
122
121
  (0, common_1.Injectable)()
123
122
  ], LoggingServiceInterceptor);
123
+ exports.LoggingServiceInterceptor = LoggingServiceInterceptor;
@@ -126,6 +126,14 @@ let RPCInterceptor = class RPCInterceptor {
126
126
  // method,
127
127
  // };
128
128
  if (!staticRetryCount && reDeliveryCount > 0) {
129
+ channel.sendToQueue(message.properties.replyTo, Buffer.from(JSON.stringify({
130
+ isError: true,
131
+ message: 'RETRY_COUNT_ZERO_OR_NO_RETRY',
132
+ status: 500,
133
+ duration: Date.now() - now,
134
+ arg,
135
+ timestamp: new Date(),
136
+ })), { correlationId: message.properties.correlationId });
129
137
  channel.nack(message, false, false); /** 아마도 기본 30분 타임아웃이 지나고 새로 들어오면 발생할 예정, DLQ로 이동 */
130
138
  message.properties.replyTo = undefined; /** replyTo가 존재하면 sendToQueue가 호출되므로, 삭제해주기 */
131
139
  return new rxjs_1.Observable();
@@ -248,8 +256,8 @@ let RPCInterceptor = class RPCInterceptor {
248
256
  }));
249
257
  }
250
258
  };
251
- exports.RPCInterceptor = RPCInterceptor;
252
- exports.RPCInterceptor = RPCInterceptor = __decorate([
259
+ RPCInterceptor = __decorate([
253
260
  (0, common_1.Injectable)(),
254
261
  __metadata("design:paramtypes", [core_1.Reflector])
255
262
  ], RPCInterceptor);
263
+ 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;
@@ -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.4.50",
3
+ "version": "1.4.51",
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;