Skip to content

Commit e92cd73

Browse files
committed
fix: ensure to wrap fetch in setFetch
1 parent dfce0ab commit e92cd73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/fetch.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ let _fetch: WrappedFetch = wrappedFetch(fetchImpl);
4141
* Allows customizing the fetch implementation used by the generator.
4242
*/
4343
export function setFetch(fetch: typeof globalThis.fetch | WrappedFetch) {
44-
_fetch = fetch as WrappedFetch;
44+
_fetch = wrappedFetch(fetch as WrappedFetch);
4545
}
4646

4747
export { clearCache, _fetch as fetch }

0 commit comments

Comments
 (0)