diff --git a/.gitignore b/.gitignore index ffb419d..fd78d30 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ tmp dist npm-debug.log* package-lock.json -yarn.lock \ No newline at end of file +yarn.lock +.idea \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js index 9771a40..58ba6ec 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,7 +1,7 @@ const { src, dest } = require('gulp'); function copyIcons() { - return src('nodes/**/*.png') + return src('nodes/**/*.{png,svg}') .pipe(dest('dist/nodes')); } diff --git a/nodes/ExampleNode/ExampleNode.node.ts b/nodes/ExampleNode/ExampleNode.node.ts index dfad49e..4cd9240 100644 --- a/nodes/ExampleNode/ExampleNode.node.ts +++ b/nodes/ExampleNode/ExampleNode.node.ts @@ -5,13 +5,13 @@ import { INodeTypeDescription, } from 'n8n-workflow'; - export class ExampleNode implements INodeType { description: INodeTypeDescription = { displayName: 'Example Node', name: 'exampleNode', group: ['transform'], version: 1, + subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}', description: 'Basic Example Node', defaults: { name: 'Example Node', @@ -33,7 +33,6 @@ export class ExampleNode implements INodeType { ] }; - async execute(this: IExecuteFunctions): Promise { const items = this.getInputData(); @@ -41,7 +40,7 @@ export class ExampleNode implements INodeType { let item: INodeExecutionData; let myString: string; - // Itterates over all input items and add the key "myString" with the + // Iterates over all input items and add the key "myString" with the // value the parameter "myString" resolves to. // (This could be a different value for each item in case it contains an expression) for (let itemIndex = 0; itemIndex < items.length; itemIndex++) { diff --git a/package.json b/package.json index 0f9422b..ac210b7 100644 --- a/package.json +++ b/package.json @@ -34,17 +34,17 @@ "devDependencies": { "@types/express": "^4.17.6", "@types/jest": "^24.0.18", - "@types/node": "^10.10.1", + "@types/node": "^14.14.40", "@types/request-promise-native": "^1.0.17", "gulp": "^4.0.0", "jest": "^24.9.0", - "n8n-workflow": "^0.11.0", + "n8n-workflow": "^0.70.0", "ts-jest": "^24.0.2", "tslint": "^5.17.0", - "typescript": "~3.5.2" + "typescript": "~4.3.5" }, "dependencies": { - "n8n-core": "^0.10.0" + "n8n-core": "^0.84.0" }, "jest": { "transform": {