@yolo-croket-dev/core 1.7.25-slowquery.31 → 1.7.25-slowquery.32
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,15 +11,15 @@ function AbortEvent() {
|
|
|
11
11
|
return function (target, propertyKey, descriptor) {
|
|
12
12
|
const originalMethod = descriptor.value;
|
|
13
13
|
// eslint-disable-next-line no-param-reassign
|
|
14
|
-
descriptor.value = async function (...args) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
// descriptor.value = async function (...args: unknown[]) {
|
|
15
|
+
// try {
|
|
16
|
+
// const result = await new AbortablePromise(originalMethod.apply(this, args), getCurrentAbortSignal() || undefined);
|
|
17
|
+
// return result;
|
|
18
|
+
// } catch (error) {
|
|
19
|
+
// throw error;
|
|
20
|
+
// }
|
|
21
|
+
// };
|
|
22
|
+
descriptor.value = new abortable_promise_1.AbortablePromise(originalMethod, (0, abort_1.getCurrentAbortSignal)() || undefined);
|
|
23
23
|
return descriptor;
|
|
24
24
|
};
|
|
25
25
|
}
|