@yolo-croket-dev/core 1.7.45-slowquery.0 → 1.7.45-slowquery.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.
@@ -16,7 +16,7 @@ export declare class AbortContext {
16
16
  requestId: string;
17
17
  } | null;
18
18
  static disable(): void;
19
- static endContext(context?: RequestContext): void;
19
+ static endContext(_context?: RequestContext): void;
20
20
  static updateContext(updatedData: Partial<RequestContext>): void;
21
21
  /**
22
22
  * 컨텍스트가 유효한지 확인
@@ -36,16 +36,12 @@ class AbortContext {
36
36
  this.asyncLocalStorage.disable();
37
37
  }
38
38
  // 컨텍스트 종료
39
- // eslint-disable-next-line consistent-return
40
- static endContext(context) {
41
- const selectContext = context || this.asyncLocalStorage.getStore();
42
- if (selectContext) {
43
- this.asyncLocalStorage.disable();
44
- // parent context가 있으면 전부 종료
45
- if (selectContext.parentContext) {
46
- return this.endContext(selectContext.parentContext);
47
- }
48
- }
39
+ // AsyncLocalStorage는 각 async 작업의 컨텍스트를 자동으로 관리하므로
40
+ // 명시적으로 disable()을 호출할 필요가 없습니다.
41
+ // disable()을 호출하면 전체 인스턴스가 비활성화되어 이후 요청에 문제가 생깁니다.
42
+ static endContext(_context) {
43
+ // 컨텍스트는 async 작업이 완료되면 자동으로 정리됩니다.
44
+ // 명시적인 cleanup은 필요하지 않습니다.
49
45
  }
50
46
  // 현재 컨텍스트를 업데이트하는 방법
51
47
  static updateContext(updatedData) {
@@ -364,8 +364,6 @@ let RPCInterceptor = class RPCInterceptor {
364
364
  if (isAborted) {
365
365
  msaLogger.debug('RPCInterceptor context end', { traceId: execInterceptor.traceId }, { context: context.requestId });
366
366
  }
367
- functions_1.AbortContext.endContext();
368
- functions_1.AbortContext.disable();
369
367
  }
370
368
  return rxjs_1.EMPTY;
371
369
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/core",
3
- "version": "1.7.45-slowquery.0",
3
+ "version": "1.7.45-slowquery.2",
4
4
  "author": "Yolo Co., Ltd.",
5
5
  "description": "Yolo commonization module",
6
6
  "main": "index.js",