@yolo-croket-dev/core 1.7.25-slowquery.29 → 1.7.25-slowquery.30

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.
@@ -11,20 +11,10 @@ function AbortEvent() {
11
11
  const originalMethod = descriptor.value;
12
12
  // eslint-disable-next-line no-param-reassign
13
13
  descriptor.value = async function (...args) {
14
- const abortSignal = (0, abort_1.getCurrentAbortSignal)();
15
- if (!abortSignal) {
16
- return originalMethod.apply(this, args);
17
- }
18
- if (abortSignal.aborted) {
19
- throw new Error('REQUEST_ABORTED: 작업이 이미 중단되었습니다');
20
- }
21
14
  // 중단 확인을 위한 인터벌
22
15
  const intervalId = setInterval(() => {
23
- if (abortSignal.aborted) {
24
- clearInterval(intervalId);
25
- throw new Error('REQUEST_ABORTED: 작업이 중단되었습니다');
26
- }
27
- }, 1000);
16
+ (0, abort_1.throwIfAborted)();
17
+ }, 100);
28
18
  try {
29
19
  const result = await originalMethod.apply(this, args);
30
20
  clearInterval(intervalId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/core",
3
- "version": "1.7.25-slowquery.29",
3
+ "version": "1.7.25-slowquery.30",
4
4
  "author": "Yolo Co., Ltd.",
5
5
  "description": "Yolo commonization module",
6
6
  "main": "index.js",