@yolo-croket-dev/core 1.7.25-slowquery.32 → 1.7.25-slowquery.33

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.
@@ -12,14 +12,19 @@ function AbortEvent() {
12
12
  const originalMethod = descriptor.value;
13
13
  // eslint-disable-next-line no-param-reassign
14
14
  // descriptor.value = async function (...args: unknown[]) {
15
+ // const abortablePromise = AbortablePromise.newWithSignal()
15
16
  // try {
16
- // const result = await new AbortablePromise(originalMethod.apply(this, args), getCurrentAbortSignal() || undefined);
17
+ // // const result = await new AbortablePromise(originalMethod.apply(this, args), getCurrentAbortSignal() || undefined);
18
+ // const result = await new AbortablePromise(() => originalMethod.apply(this, args), getCurrentAbortSignal() || undefined);
17
19
  // return result;
18
20
  // } catch (error) {
19
21
  // throw error;
20
22
  // }
21
23
  // };
22
- descriptor.value = new abortable_promise_1.AbortablePromise(originalMethod, (0, abort_1.getCurrentAbortSignal)() || undefined);
24
+ descriptor.value = async function (...args) {
25
+ return originalMethod.apply(this, args);
26
+ };
27
+ new abortable_promise_1.AbortablePromise(() => descriptor.value, (0, abort_1.getCurrentAbortSignal)() || undefined);
23
28
  return descriptor;
24
29
  };
25
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/core",
3
- "version": "1.7.25-slowquery.32",
3
+ "version": "1.7.25-slowquery.33",
4
4
  "author": "Yolo Co., Ltd.",
5
5
  "description": "Yolo commonization module",
6
6
  "main": "index.js",