@yolo-croket-dev/core 1.7.44-slowquery.0 → 1.7.44-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.
@@ -16,6 +16,7 @@ export declare class AbortContext {
16
16
  requestId: string;
17
17
  } | null;
18
18
  static disable(): void;
19
+ static disableDeferred(): void;
19
20
  static endContext(context?: RequestContext): void;
20
21
  static updateContext(updatedData: Partial<RequestContext>): void;
21
22
  /**
@@ -35,6 +35,11 @@ class AbortContext {
35
35
  static disable() {
36
36
  this.asyncLocalStorage.disable();
37
37
  }
38
+ static disableDeferred() {
39
+ setTimeout(() => {
40
+ this.asyncLocalStorage.disable();
41
+ }, 0);
42
+ }
38
43
  // 컨텍스트 종료
39
44
  // eslint-disable-next-line consistent-return
40
45
  static endContext(context) {
@@ -357,7 +357,7 @@ let RPCInterceptor = class RPCInterceptor {
357
357
  error: localErrorProcessor,
358
358
  }), (0, operators_1.finalize)(() => {
359
359
  this.gracefulShutdownService.popActiveInterceptors(execInterceptor);
360
- functions_1.AbortContext.disable();
360
+ functions_1.AbortContext.disableDeferred();
361
361
  abortController = null;
362
362
  return rxjs_1.EMPTY;
363
363
  })));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/core",
3
- "version": "1.7.44-slowquery.0",
3
+ "version": "1.7.44-slowquery.1",
4
4
  "author": "Yolo Co., Ltd.",
5
5
  "description": "Yolo commonization module",
6
6
  "main": "index.js",