mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
Fix typescript build
This commit is contained in:
parent
97391df49d
commit
6f15aa6a88
|
@ -506,14 +506,9 @@ export class Ftp implements INodeType {
|
|||
let returnItems: INodeExecutionData[] = [];
|
||||
const operation = this.getNodeParameter('operation', 0);
|
||||
|
||||
let credentials: ICredentialDataDecryptedObject | undefined = undefined;
|
||||
const protocol = this.getNodeParameter('protocol', 0) as string;
|
||||
const credentials = await this.getCredentials(protocol === 'sftp' ? 'sftp' : 'ftp');
|
||||
|
||||
if (protocol === 'sftp') {
|
||||
credentials = await this.getCredentials('sftp');
|
||||
} else {
|
||||
credentials = await this.getCredentials('ftp');
|
||||
}
|
||||
let ftp: ftpClient;
|
||||
let sftp: sftpClient;
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
"tsBuildInfoFile": "dist/build.tsbuildinfo"
|
||||
},
|
||||
"include": [
|
||||
"types.d.ts",
|
||||
"credentials/**/*.ts",
|
||||
"nodes/**/*.ts",
|
||||
"nodes/**/*.json",
|
||||
|
|
|
@ -24,7 +24,7 @@ class CredentialSchemaRootObject<
|
|||
S extends ZodType | null,
|
||||
T extends { [k: string]: CredentialSchemaProperty<M, S> } = {},
|
||||
> {
|
||||
constructor(private shape: T) {}
|
||||
constructor(public shape: T) {}
|
||||
|
||||
validate<Data>(data: Data) {
|
||||
return this.toZodSchema().safeParse(data);
|
||||
|
|
Loading…
Reference in a new issue