@@ -25,7 +25,7 @@ function withClient(f: (c: hrana.Client) => Promise<void>): () => Promise<void>
2525 if ( isWs ) {
2626 client = hrana . openWs ( url , jwt , 3 ) ;
2727 } else if ( isHttp ) {
28- client = hrana . openHttp ( url , jwt , undefined , 3 ) ;
28+ client = hrana . openHttp ( url , jwt , undefined , undefined , 3 ) ;
2929 } else {
3030 throw new Error ( "expected either ws or http URL" ) ;
3131 }
@@ -50,7 +50,7 @@ function withWsClient(f: (c: hrana.WsClient) => Promise<void>): () => Promise<vo
5050
5151function withHttpClient ( f : ( c : hrana . HttpClient ) => Promise < void > ) : ( ) => Promise < void > {
5252 return async ( ) => {
53- const client = hrana . openHttp ( url , jwt , undefined , 3 ) ;
53+ const client = hrana . openHttp ( url , jwt , undefined , undefined , 3 ) ;
5454 try {
5555 await f ( client ) ;
5656 } finally {
@@ -878,7 +878,7 @@ for (const useCursor of [false, true]) {
878878 client . close ( ) ;
879879 }
880880 } else if ( isHttp ) {
881- const client = hrana . openHttp ( url , jwt , undefined , 3 ) ;
881+ const client = hrana . openHttp ( url , jwt , undefined , undefined , 3 ) ;
882882 try {
883883 const stream = client . openStream ( ) ;
884884 await f ( stream , stream ) ;
@@ -981,7 +981,7 @@ test("getVersion()", withClient(async (c) => {
981981 return fetch ( request ) ;
982982 }
983983
984- const c = hrana . openHttp ( url , jwt , customFetch , 3 ) ;
984+ const c = hrana . openHttp ( url , jwt , customFetch , undefined , 3 ) ;
985985 try {
986986 const s = c . openStream ( ) ;
987987 const res = await s . queryValue ( "SELECT 1" ) ;
@@ -998,7 +998,7 @@ test("getVersion()", withClient(async (c) => {
998998 throw new Error ( "testing exception thrown from customFetch()" ) ;
999999 }
10001000
1001- const c = hrana . openHttp ( url , jwt , customFetch , 3 ) ;
1001+ const c = hrana . openHttp ( url , jwt , customFetch , undefined , 3 ) ;
10021002 try {
10031003 const s = c . openStream ( ) ;
10041004 await expect ( s . queryValue ( "SELECT 1" ) ) . rejects
@@ -1013,7 +1013,7 @@ test("getVersion()", withClient(async (c) => {
10131013 return Promise . reject ( new Error ( "testing rejection returned from customFetch()" ) ) ;
10141014 }
10151015
1016- const c = hrana . openHttp ( url , jwt , customFetch , 3 ) ;
1016+ const c = hrana . openHttp ( url , jwt , customFetch , undefined , 3 ) ;
10171017 try {
10181018 const s = c . openStream ( ) ;
10191019 await expect ( s . queryValue ( "SELECT 1" ) ) . rejects
0 commit comments