mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor(core): Remove linting exceptions in nodes-base (no-changelog) (#4944)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { IExecuteFunctions } from 'n8n-core';
|
||||
|
||||
import {
|
||||
IDataObject,
|
||||
INodeExecutionData,
|
||||
INodeType,
|
||||
INodeTypeDescription,
|
||||
@@ -11,7 +12,7 @@ import { readFile, rm, writeFile } from 'fs/promises';
|
||||
|
||||
import { file } from 'tmp-promise';
|
||||
|
||||
const nodeSSH = require('node-ssh');
|
||||
import { NodeSSH } from 'node-ssh';
|
||||
|
||||
export class Ssh implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
@@ -252,7 +253,7 @@ export class Ssh implements INodeType {
|
||||
|
||||
const temporaryFiles: string[] = [];
|
||||
|
||||
const ssh = new nodeSSH.NodeSSH();
|
||||
const ssh = new NodeSSH();
|
||||
|
||||
try {
|
||||
if (authentication === 'password') {
|
||||
@@ -292,7 +293,7 @@ export class Ssh implements INodeType {
|
||||
const command = this.getNodeParameter('command', i) as string;
|
||||
const cwd = this.getNodeParameter('cwd', i) as string;
|
||||
returnItems.push({
|
||||
json: await ssh.execCommand(command, { cwd }),
|
||||
json: (await ssh.execCommand(command, { cwd })) as unknown as IDataObject,
|
||||
pairedItem: {
|
||||
item: i,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user