fix(Extract from File Node): Detect file encoding (#12081)

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
Dana
2024-12-18 16:59:12 +01:00
committed by GitHub
parent bf8142b474
commit 92af245d1a
11 changed files with 129 additions and 2 deletions

View File

@@ -947,6 +947,7 @@ export type IExecuteFunctions = ExecuteFunctions.GetNodeParameterFn &
): NodeExecutionWithMetadata[];
assertBinaryData(itemIndex: number, propertyName: string): IBinaryData;
getBinaryDataBuffer(itemIndex: number, propertyName: string): Promise<Buffer>;
detectBinaryEncoding(buffer: Buffer): string;
copyInputItems(items: INodeExecutionData[], properties: string[]): IDataObject[];
};
@@ -973,6 +974,7 @@ export interface IExecuteSingleFunctions extends BaseExecutionFunctions {
BinaryHelperFunctions & {
assertBinaryData(propertyName: string, inputIndex?: number): IBinaryData;
getBinaryDataBuffer(propertyName: string, inputIndex?: number): Promise<Buffer>;
detectBinaryEncoding(buffer: Buffer): string;
};
}