@@ -49,7 +49,7 @@ class Rekor {
4949 headers : { 'Content-Type' : 'application/json' } ,
5050 body : JSON . stringify ( propsedEntry ) ,
5151 } ) ;
52- ( 0 , error_1 . checkStatus ) ( response ) ;
52+ await ( 0 , error_1 . checkStatus ) ( response ) ;
5353 const data = await response . json ( ) ;
5454 return entryFromResponse ( data ) ;
5555 }
@@ -61,7 +61,7 @@ class Rekor {
6161 async getEntry ( uuid ) {
6262 const url = `${ this . baseUrl } /api/v1/log/entries/${ uuid } ` ;
6363 const response = await this . fetch ( url ) ;
64- ( 0 , error_1 . checkStatus ) ( response ) ;
64+ await ( 0 , error_1 . checkStatus ) ( response ) ;
6565 const data = await response . json ( ) ;
6666 return entryFromResponse ( data ) ;
6767 }
@@ -77,7 +77,7 @@ class Rekor {
7777 body : JSON . stringify ( opts ) ,
7878 headers : { 'Content-Type' : 'application/json' } ,
7979 } ) ;
80- ( 0 , error_1 . checkStatus ) ( response ) ;
80+ await ( 0 , error_1 . checkStatus ) ( response ) ;
8181 const data = await response . json ( ) ;
8282 return data ;
8383 }
@@ -93,7 +93,7 @@ class Rekor {
9393 body : JSON . stringify ( opts ) ,
9494 headers : { 'Content-Type' : 'application/json' } ,
9595 } ) ;
96- ( 0 , error_1 . checkStatus ) ( response ) ;
96+ await ( 0 , error_1 . checkStatus ) ( response ) ;
9797 const rawData = await response . json ( ) ;
9898 const data = rawData . map ( ( d ) => entryFromResponse ( d ) ) ;
9999 return data ;
0 commit comments