mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
n8n-3867-progressively-apply-prettier-to-all (#3873)
* 🔨 formatting nodes with prettier
This commit is contained in:
@@ -1,16 +1,9 @@
|
||||
import { IExecuteFunctions } from 'n8n-core';
|
||||
import {
|
||||
INodeExecutionData,
|
||||
INodeType,
|
||||
INodeTypeDescription,
|
||||
} from 'n8n-workflow';
|
||||
import { INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
||||
import glob from 'fast-glob';
|
||||
import path from 'path';
|
||||
|
||||
import {
|
||||
readFile as fsReadFile,
|
||||
} from 'fs/promises';
|
||||
|
||||
import { readFile as fsReadFile } from 'fs/promises';
|
||||
|
||||
export class ReadBinaryFiles implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
@@ -47,7 +40,6 @@ export class ReadBinaryFiles implements INodeType {
|
||||
],
|
||||
};
|
||||
|
||||
|
||||
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
||||
const fileSelector = this.getNodeParameter('fileSelector', 0) as string;
|
||||
const dataPropertyName = this.getNodeParameter('dataPropertyName', 0) as string;
|
||||
@@ -58,7 +50,7 @@ export class ReadBinaryFiles implements INodeType {
|
||||
let item: INodeExecutionData;
|
||||
let data: Buffer;
|
||||
for (const filePath of files) {
|
||||
data = await fsReadFile(filePath) as Buffer;
|
||||
data = (await fsReadFile(filePath)) as Buffer;
|
||||
|
||||
item = {
|
||||
binary: {
|
||||
|
||||
Reference in New Issue
Block a user