Fix build issue

This commit is contained in:
Jan Oberhauser
2021-10-12 22:20:51 -05:00
parent 8618415772
commit 1e34aca8bd
9 changed files with 19 additions and 13 deletions

View File

@@ -3,6 +3,7 @@ import {
} from 'url';
import {
Request,
sign,
} from 'aws4';
@@ -50,7 +51,7 @@ export async function awsApiRequest(this: IHookFunctions | IExecuteFunctions | I
const endpoint = new URL(getEndpointForService(service, credentials) + path);
// Sign AWS API request with the user credentials
const signOpts = { headers: headers || {}, host: endpoint.host, method, path, body };
const signOpts = { headers: headers || {}, host: endpoint.host, method, path, body } as Request;
sign(signOpts, { accessKeyId: `${credentials.accessKeyId}`.trim(), secretAccessKey: `${credentials.secretAccessKey}`.trim() });
@@ -104,4 +105,3 @@ export async function awsApiRequestRESTAllItems(this: IHookFunctions | IExecuteF
return returnData;
}