@opencode/util 0.0.0-dev-21217 → 0.0.0-dev-21221
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const noTimeoutFetch: typeof fetch;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// Bun's fetch aborts requests after its default idle deadline (about five minutes). Clients that
|
|
2
|
+
// hold requests open for long-running work (session waits, event streams, plugin commands,
|
|
3
|
+
// shell calls) opt out while keeping every other init option, including `signal`.
|
|
4
|
+
export const noTimeoutFetch = ((request, init) => fetch(request, { ...init, timeout: false }));
|