@yolo-croket-dev/core 1.7.25-slowquery.26 → 1.7.25-slowquery.28
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.
|
@@ -15,22 +15,25 @@ function AbortEvent() {
|
|
|
15
15
|
if (!abortSignal) {
|
|
16
16
|
return originalMethod.apply(this, args);
|
|
17
17
|
}
|
|
18
|
-
// 이미 중단된 경우
|
|
19
18
|
if (abortSignal.aborted) {
|
|
20
19
|
throw new Error('REQUEST_ABORTED: 작업이 이미 중단되었습니다');
|
|
21
20
|
}
|
|
22
|
-
//
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
21
|
+
// 중단 확인을 위한 인터벌
|
|
22
|
+
const intervalId = setInterval(() => {
|
|
23
|
+
if (abortSignal.aborted) {
|
|
24
|
+
clearInterval(intervalId);
|
|
25
|
+
throw new Error('REQUEST_ABORTED: 작업이 중단되었습니다');
|
|
26
|
+
}
|
|
27
|
+
}, 1000);
|
|
28
|
+
try {
|
|
29
|
+
const result = await originalMethod.apply(this, args);
|
|
30
|
+
clearInterval(intervalId);
|
|
31
|
+
return result;
|
|
32
|
+
}
|
|
33
|
+
catch (error) {
|
|
34
|
+
clearInterval(intervalId);
|
|
35
|
+
throw error;
|
|
36
|
+
}
|
|
34
37
|
};
|
|
35
38
|
return descriptor;
|
|
36
39
|
};
|