feat(core): Give access to getBinaryDataBuffer in preSend method (#3588)

This commit is contained in:
Jan Oberhauser 2022-06-28 09:32:09 -07:00 committed by GitHub
parent 8db44057f2
commit 522b31a47b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -73,6 +73,7 @@ export interface IExecuteFunctions extends IExecuteFunctionsBase {
export interface IExecuteSingleFunctions extends IExecuteSingleFunctionsBase {
helpers: {
getBinaryDataBuffer(propertyName: string, inputIndex?: number): Promise<Buffer>;
httpRequest(requestOptions: IHttpRequestOptions): Promise<any>; // tslint:disable-line:no-any
prepareBinaryData(
binaryData: Buffer,

View file

@ -2385,6 +2385,9 @@ export function getExecuteSingleFunctions(
return workflow.getStaticData(type, node);
},
helpers: {
async getBinaryDataBuffer(propertyName: string, inputIndex = 0): Promise<Buffer> {
return getBinaryDataBuffer.call(this, inputData, itemIndex, propertyName, inputIndex);
},
httpRequest,
async requestWithAuthentication(
this: IAllExecuteFunctions,