@@ -742,12 +742,11 @@ export abstract class BaseClient {
742742 * console.log(app);
743743 * ```
744744 */
745- public async getApp ( idOrNameSlug : string ) {
745+ public getApp ( idOrNameSlug : string ) {
746746 const url = `/apps/${ idOrNameSlug } ` ;
747- const resp = await this . makeAuthorizedRequest < GetAppResponse > ( url , {
747+ return this . makeAuthorizedRequest < GetAppResponse > ( url , {
748748 method : "GET" ,
749749 } ) ;
750- return resp ;
751750 }
752751
753752 /**
@@ -772,7 +771,7 @@ export abstract class BaseClient {
772771 * console.log(components);
773772 * ```
774773 */
775- public async getComponents ( opts ?: GetComponentsOpts ) {
774+ public getComponents ( opts ?: GetComponentsOpts ) {
776775 const params : Record < string , string > = { } ;
777776 if ( opts ?. app ) {
778777 params . app = opts . app ;
@@ -789,11 +788,10 @@ export abstract class BaseClient {
789788 path = "/actions" ;
790789 }
791790 // XXX Is V1Component the correct type for triggers and actions?
792- const resp = await this . makeConnectRequest < ComponentsRequestResponse > ( path , {
791+ return this . makeConnectRequest < ComponentsRequestResponse > ( path , {
793792 method : "GET" ,
794793 params,
795794 } ) ;
796- return resp ;
797795 }
798796
799797 /**
@@ -816,13 +814,12 @@ export abstract class BaseClient {
816814 * console.log(component);
817815 * ```
818816 */
819- public async getComponent ( id : ComponentId ) {
817+ public getComponent ( id : ComponentId ) {
820818 const { key } = id ;
821819 const path = `/components/${ key } ` ;
822- const resp = await this . makeConnectRequest < GetComponentResponse > ( path , {
820+ return this . makeConnectRequest < GetComponentResponse > ( path , {
823821 method : "GET" ,
824822 } ) ;
825- return resp ;
826823 }
827824
828825 /**
0 commit comments