mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
feat(core): Give access to getBinaryDataBuffer in preSend method (#3588)
This commit is contained in:
parent
8db44057f2
commit
522b31a47b
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue