@@ -49,9 +49,9 @@ abstract class FetchConnection<T extends ConnectionType>
4949 async send (
5050 url : string ,
5151 method : string ,
52+ isUsingEmulator : boolean ,
5253 body ?: NodeJS . ArrayBufferView | Blob | string ,
53- headers ?: Record < string , string > ,
54- isUsingEmulator ?: boolean
54+ headers ?: Record < string , string >
5555 ) : Promise < void > {
5656 if ( this . sent_ ) {
5757 throw internalError ( 'cannot .send() more than once' ) ;
@@ -62,9 +62,9 @@ abstract class FetchConnection<T extends ConnectionType>
6262 const response = await newFetch (
6363 url ,
6464 method ,
65+ isUsingEmulator ,
6566 headers ,
66- body ,
67- isUsingEmulator
67+ body
6868 ) ;
6969 this . headers_ = response . headers ;
7070 this . statusCode_ = response . status ;
@@ -156,9 +156,9 @@ export class FetchStreamConnection extends FetchConnection<
156156 async send (
157157 url : string ,
158158 method : string ,
159+ isUsingEmulator : boolean ,
159160 body ?: NodeJS . ArrayBufferView | Blob | string ,
160- headers ?: Record < string , string > ,
161- isUsingEmulator ?: boolean
161+ headers ?: Record < string , string >
162162 ) : Promise < void > {
163163 if ( this . sent_ ) {
164164 throw internalError ( 'cannot .send() more than once' ) ;
@@ -169,9 +169,9 @@ export class FetchStreamConnection extends FetchConnection<
169169 const response = await newFetch (
170170 url ,
171171 method ,
172+ isUsingEmulator ,
172173 headers ,
173- body ,
174- isUsingEmulator
174+ body
175175 ) ;
176176 this . headers_ = response . headers ;
177177 this . statusCode_ = response . status ;
@@ -196,9 +196,9 @@ export class FetchStreamConnection extends FetchConnection<
196196function newFetch (
197197 url : string ,
198198 method : string ,
199+ isUsingEmulator : boolean ,
199200 headers ?: Record < string , string > ,
200- body ?: NodeJS . ArrayBufferView | Blob | string ,
201- isUsingEmulator ?: boolean
201+ body ?: NodeJS . ArrayBufferView | Blob | string
202202) : Promise < Response > {
203203 const fetchArgs : RequestInit = {
204204 method,
0 commit comments