Some updates

This commit is contained in:
Valentina 2021-12-02 11:29:35 +02:00
commit 1e43acf743
4 changed files with 9 additions and 9 deletions

1
.gitignore vendored
View file

@ -6,3 +6,4 @@ dist
npm-debug.log*
package-lock.json
yarn.lock
.idea

View file

@ -1,7 +1,7 @@
const { src, dest } = require('gulp');
function copyIcons() {
return src('nodes/**/*.png')
return src('nodes/**/*.{png,svg}')
.pipe(dest('dist/nodes'));
}

View file

@ -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<INodeExecutionData[][]> {
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++) {

View file

@ -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": {