Fix an issue with S3-Node

This commit is contained in:
Jan Oberhauser
2020-04-20 20:44:22 +02:00
parent aa949dd11f
commit fa8c7787a0
4 changed files with 40 additions and 33 deletions

View File

@@ -1,14 +1,18 @@
import {
sign,
} from 'aws4';
} from 'aws4';
import {
get,
} from 'lodash';
import {
OptionsWithUri,
} from 'request';
} from 'request';
import {
parseString,
} from 'xml2js';
} from 'xml2js';
import {
IExecuteFunctions,
@@ -21,10 +25,6 @@ import {
IDataObject,
} from 'n8n-workflow';
import {
get,
} from 'lodash';
export async function awsApiRequest(this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions | IWebhookFunctions, service: string, method: string, path: string, body?: string | Buffer, query: IDataObject = {}, headers?: object, option: IDataObject = {}): Promise<any> { // tslint:disable-line:no-any
const credentials = this.getCredentials('aws');
if (credentials === undefined) {