File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @sv443-network/coreutils " : patch
3+ ---
4+
5+ Fixed underlying ` fetch() ` props in ` fetchAdvanced() ` in stricter environments
Original file line number Diff line number Diff line change @@ -56,11 +56,9 @@ export type FetchAdvancedOpts = Prettify<
5656
5757/** Calls the fetch API with special options like a timeout */
5858export async function fetchAdvanced ( input : string | RequestInfo | URL , options : FetchAdvancedOpts = { } ) : Promise < Response > {
59- const { timeout = 10000 } = options ;
59+ const { timeout = 10000 , signal , ... restOpts } = options ;
6060 const ctl = new AbortController ( ) ;
6161
62- const { signal, ...restOpts } = options ;
63-
6462 signal ?. addEventListener ( "abort" , ( ) => ctl . abort ( ) ) ;
6563
6664 let sigOpts : Partial < RequestInit > = { } ,
You can’t perform that action at this time.
0 commit comments