Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.

Commit fc66492

Browse files
committed
fix: Uncaught (in promise)
1 parent e023e34 commit fc66492

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/go/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dineug/go",
3-
"version": "0.1.7",
3+
"version": "0.1.8",
44
"description": "Promise Extension Library",
55
"type": "module",
66
"main": "./dist/go.min.js",

packages/go/src/go.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ export function go<F extends AnyCallback>(
9595
}
9696
}) as Promise<GoReturnType<F>>;
9797

98+
// fix: Uncaught (in promise)
99+
promise.catch(() => {});
100+
98101
attachCancel(promise, () => {
99102
canceled = true;
100103
cancelAndReject?.();

0 commit comments

Comments
 (0)