mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat(core): Give access to getBinaryDataBuffer in preSend method (#3588)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user