@@ -847,11 +847,11 @@ export const mapEarlyResponse = (
847
847
// @ts -expect-error
848
848
if ( typeof response ?. then === 'function' )
849
849
// @ts -expect-error
850
- return response . then ( ( x ) => mapResponse ( x , set ) ) as any
850
+ return response . then ( ( x ) => mapEarlyResponse ( x , set ) ) as any
851
851
852
852
// @ts -expect-error
853
853
if ( typeof response ?. toResponse === 'function' )
854
- return mapResponse ( ( response as any ) . toResponse ( ) , set )
854
+ return mapEarlyResponse ( ( response as any ) . toResponse ( ) , set )
855
855
856
856
if ( 'charCodeAt' in ( response as any ) ) {
857
857
const code = ( response as any ) . charCodeAt ( 0 )
@@ -987,11 +987,11 @@ export const mapEarlyResponse = (
987
987
// @ts -expect-error
988
988
if ( typeof response ?. then === 'function' )
989
989
// @ts -expect-error
990
- return response . then ( ( x ) => mapResponse ( x , set ) ) as any
990
+ return response . then ( ( x ) => mapEarlyResponse ( x , set ) ) as any
991
991
992
992
// @ts -expect-error
993
993
if ( typeof response ?. toResponse === 'function' )
994
- return mapResponse ( ( response as any ) . toResponse ( ) , set )
994
+ return mapEarlyResponse ( ( response as any ) . toResponse ( ) , set )
995
995
996
996
if ( 'charCodeAt' in ( response as any ) ) {
997
997
const code = ( response as any ) . charCodeAt ( 0 )
@@ -1128,7 +1128,7 @@ export const mapCompactResponse = (
1128
1128
1129
1129
// @ts -expect-error
1130
1130
if ( typeof response ?. toResponse === 'function' )
1131
- return mapResponse ( ( response as any ) . toResponse ( ) , set )
1131
+ return mapCompactResponse ( ( response as any ) . toResponse ( ) )
1132
1132
1133
1133
if ( 'charCodeAt' in ( response as any ) ) {
1134
1134
const code = ( response as any ) . charCodeAt ( 0 )
0 commit comments