Skip to content

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

+1-1
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

+3
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)