@yolo-croket-dev/core 1.7.39 → 1.7.41
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.
|
@@ -7,7 +7,6 @@ export declare class RPCInterceptor implements NestInterceptor {
|
|
|
7
7
|
private readonly gracefulShutdownService;
|
|
8
8
|
protected readonly DEFAULT_TIMEOUT: number;
|
|
9
9
|
protected readonly DEFAULT_TIMEOUT_MESSAGE = "\uC694\uCCAD\uC774 \uD0C0\uC784\uC544\uC6C3\uB418\uC5C8\uC2B5\uB2C8\uB2E4.";
|
|
10
|
-
private static isPatched;
|
|
11
10
|
constructor(reflector: Reflector, gracefulShutdownService: GracefulShutdownService);
|
|
12
11
|
private maxLengthOverShorten;
|
|
13
12
|
/** 메시지가 재전송되었을때에, 재시도 Count가 명시되어 있지 않을때에 처리 할지 여부를 결정하는 함수 */
|
|
@@ -34,7 +34,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
34
34
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
35
35
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
36
|
};
|
|
37
|
-
var RPCInterceptor_1;
|
|
38
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
38
|
exports.RPCInterceptor = void 0;
|
|
40
39
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
@@ -52,16 +51,12 @@ const graceful_shutdown_service_1 = require("../modules/graceful-shutdown/gracef
|
|
|
52
51
|
const msaLogger = new msa_logger_1.default(msa_logger_1.ServerTypeEnum.SERVICE);
|
|
53
52
|
// const MAX_CUT_LENGTH = 500;
|
|
54
53
|
const MAX_LENGTH = 300;
|
|
55
|
-
let RPCInterceptor =
|
|
54
|
+
let RPCInterceptor = class RPCInterceptor {
|
|
56
55
|
constructor(reflector, gracefulShutdownService) {
|
|
57
56
|
this.reflector = reflector;
|
|
58
57
|
this.gracefulShutdownService = gracefulShutdownService;
|
|
59
58
|
this.DEFAULT_TIMEOUT = 1000 * 60 * 29; // 29분 타임아웃
|
|
60
59
|
this.DEFAULT_TIMEOUT_MESSAGE = '요청이 타임아웃되었습니다.';
|
|
61
|
-
if (!RPCInterceptor_1.isPatched) {
|
|
62
|
-
context_promise_patch_1.ContextPromisePatch.patch();
|
|
63
|
-
RPCInterceptor_1.isPatched = true;
|
|
64
|
-
}
|
|
65
60
|
}
|
|
66
61
|
maxLengthOverShorten(data) {
|
|
67
62
|
if (typeof data !== 'string') {
|
|
@@ -174,6 +169,7 @@ let RPCInterceptor = RPCInterceptor_1 = class RPCInterceptor {
|
|
|
174
169
|
correlationId,
|
|
175
170
|
isMessageAck: false,
|
|
176
171
|
};
|
|
172
|
+
context_promise_patch_1.ContextPromisePatch.patch();
|
|
177
173
|
let abortController = new AbortController();
|
|
178
174
|
/** consume 메시지 전부 cancel */
|
|
179
175
|
if (this.gracefulShutdownService.isApplicationExit) {
|
|
@@ -368,8 +364,7 @@ let RPCInterceptor = RPCInterceptor_1 = class RPCInterceptor {
|
|
|
368
364
|
}
|
|
369
365
|
};
|
|
370
366
|
exports.RPCInterceptor = RPCInterceptor;
|
|
371
|
-
RPCInterceptor
|
|
372
|
-
exports.RPCInterceptor = RPCInterceptor = RPCInterceptor_1 = __decorate([
|
|
367
|
+
exports.RPCInterceptor = RPCInterceptor = __decorate([
|
|
373
368
|
(0, common_1.Injectable)(),
|
|
374
369
|
__metadata("design:paramtypes", [core_1.Reflector,
|
|
375
370
|
graceful_shutdown_service_1.GracefulShutdownService])
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/core",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.41",
|
|
4
4
|
"author": "Yolo Co., Ltd.",
|
|
5
5
|
"description": "Yolo commonization module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"license": "UNLICENSED",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@nestjs/common": "^8.2.3",
|
|
18
|
+
"@nestjs/core": "^11.1.7",
|
|
18
19
|
"@nestjs/swagger": "^11.2.1",
|
|
19
20
|
"@yolo-croket-dev/logger": "^1.0.15",
|
|
20
21
|
"@yolo-croket-dev/msa-logger": "^3.1.1",
|