@yolo-croket-dev/core 1.7.33-slowquery.0 → 1.7.33-slowquery.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,7 @@ export declare class AbortContext {
9
9
  abortSignal: AbortSignal;
10
10
  requestId: string;
11
11
  } | null;
12
+ static endContext(): void;
12
13
  /**
13
14
  * 컨텍스트가 유효한지 확인
14
15
  */
@@ -32,6 +32,13 @@ class AbortContext {
32
32
  }
33
33
  return null;
34
34
  }
35
+ // 컨텍스트 종료
36
+ static endContext() {
37
+ const context = this.asyncLocalStorage.getStore();
38
+ if (context) {
39
+ this.asyncLocalStorage.disable();
40
+ }
41
+ }
35
42
  /**
36
43
  * 컨텍스트가 유효한지 확인
37
44
  */
@@ -361,7 +361,7 @@ let RPCInterceptor = RPCInterceptor_1 = class RPCInterceptor {
361
361
  error: localErrorProcessor,
362
362
  }), (0, operators_1.finalize)(() => {
363
363
  this.gracefulShutdownService.popActiveInterceptors(execInterceptor);
364
- abortController.abort();
364
+ functions_1.AbortContext.endContext();
365
365
  return new rxjs_1.Observable();
366
366
  })));
367
367
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/core",
3
- "version": "1.7.33-slowquery.0",
3
+ "version": "1.7.33-slowquery.1",
4
4
  "author": "Yolo Co., Ltd.",
5
5
  "description": "Yolo commonization module",
6
6
  "main": "index.js",