Compare commits
4 Commits
updates
...
dependabot
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5650bed28f | ||
|
|
73c99818fa | ||
|
|
a36a4a1841 | ||
|
|
b2ba2d1cf1 |
@@ -17,7 +17,7 @@ export class HttpBinApi implements ICredentialType {
|
|||||||
default: '',
|
default: '',
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
password: true,
|
password: true,
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Domain',
|
displayName: 'Domain',
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import {
|
import type {
|
||||||
IExecuteFunctions,
|
IExecuteFunctions,
|
||||||
INodeExecutionData,
|
INodeExecutionData,
|
||||||
INodeType,
|
INodeType,
|
||||||
INodeTypeDescription,
|
INodeTypeDescription,
|
||||||
NodeOperationError,
|
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
|
import { NodeConnectionType, NodeOperationError } from 'n8n-workflow';
|
||||||
|
|
||||||
export class ExampleNode implements INodeType {
|
export class ExampleNode implements INodeType {
|
||||||
description: INodeTypeDescription = {
|
description: INodeTypeDescription = {
|
||||||
@@ -16,8 +16,8 @@ export class ExampleNode implements INodeType {
|
|||||||
defaults: {
|
defaults: {
|
||||||
name: 'Example Node',
|
name: 'Example Node',
|
||||||
},
|
},
|
||||||
inputs: ['main'],
|
inputs: [NodeConnectionType.Main],
|
||||||
outputs: ['main'],
|
outputs: [NodeConnectionType.Main],
|
||||||
properties: [
|
properties: [
|
||||||
// Node properties which the user gets displayed and
|
// Node properties which the user gets displayed and
|
||||||
// can change on the node.
|
// can change on the node.
|
||||||
@@ -50,7 +50,7 @@ export class ExampleNode implements INodeType {
|
|||||||
myString = this.getNodeParameter('myString', itemIndex, '') as string;
|
myString = this.getNodeParameter('myString', itemIndex, '') as string;
|
||||||
item = items[itemIndex];
|
item = items[itemIndex];
|
||||||
|
|
||||||
item.json['myString'] = myString;
|
item.json.myString = myString;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// This node should never fail but we want to showcase how
|
// This node should never fail but we want to showcase how
|
||||||
// to handle errors.
|
// to handle errors.
|
||||||
@@ -71,6 +71,6 @@ export class ExampleNode implements INodeType {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.prepareOutputData(items);
|
return [items];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
"url": "https://github.com/<...>/n8n-nodes-<...>.git"
|
"url": "https://github.com/<...>/n8n-nodes-<...>.git"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.17",
|
"node": ">=18.10",
|
||||||
"pnpm": ">=9.1"
|
"pnpm": ">=9.1"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@9.1.4",
|
"packageManager": "pnpm@9.1.4",
|
||||||
@@ -45,11 +45,10 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@typescript-eslint/parser": "^7.16.0",
|
"@typescript-eslint/parser": "^7.15.0",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.56.0",
|
||||||
"eslint-plugin-n8n-nodes-base": "^1.16.1",
|
"eslint-plugin-n8n-nodes-base": "^1.16.1",
|
||||||
"gulp": "^5.0.0",
|
"gulp": "^4.0.2",
|
||||||
"n8n-workflow": "*",
|
|
||||||
"prettier": "^3.3.2",
|
"prettier": "^3.3.2",
|
||||||
"typescript": "^5.5.3"
|
"typescript": "^5.5.3"
|
||||||
},
|
},
|
||||||
|
|||||||
2272
pnpm-lock.yaml
generated
2272
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
127
tslint.json
127
tslint.json
@@ -1,127 +0,0 @@
|
|||||||
{
|
|
||||||
"linterOptions": {
|
|
||||||
"exclude": [
|
|
||||||
"node_modules/**/*"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"defaultSeverity": "error",
|
|
||||||
"jsRules": {},
|
|
||||||
"rules": {
|
|
||||||
"array-type": [
|
|
||||||
true,
|
|
||||||
"array-simple"
|
|
||||||
],
|
|
||||||
"arrow-return-shorthand": true,
|
|
||||||
"ban": [
|
|
||||||
true,
|
|
||||||
{
|
|
||||||
"name": "Array",
|
|
||||||
"message": "tsstyle#array-constructor"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"ban-types": [
|
|
||||||
true,
|
|
||||||
[
|
|
||||||
"Object",
|
|
||||||
"Use {} instead."
|
|
||||||
],
|
|
||||||
[
|
|
||||||
"String",
|
|
||||||
"Use 'string' instead."
|
|
||||||
],
|
|
||||||
[
|
|
||||||
"Number",
|
|
||||||
"Use 'number' instead."
|
|
||||||
],
|
|
||||||
[
|
|
||||||
"Boolean",
|
|
||||||
"Use 'boolean' instead."
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"class-name": true,
|
|
||||||
"curly": [
|
|
||||||
true,
|
|
||||||
"ignore-same-line"
|
|
||||||
],
|
|
||||||
"forin": true,
|
|
||||||
"jsdoc-format": true,
|
|
||||||
"label-position": true,
|
|
||||||
"indent": [
|
|
||||||
true,
|
|
||||||
"tabs",
|
|
||||||
2
|
|
||||||
],
|
|
||||||
"member-access": [
|
|
||||||
true,
|
|
||||||
"no-public"
|
|
||||||
],
|
|
||||||
"new-parens": true,
|
|
||||||
"no-angle-bracket-type-assertion": true,
|
|
||||||
"no-any": true,
|
|
||||||
"no-arg": true,
|
|
||||||
"no-conditional-assignment": true,
|
|
||||||
"no-construct": true,
|
|
||||||
"no-debugger": true,
|
|
||||||
"no-default-export": true,
|
|
||||||
"no-duplicate-variable": true,
|
|
||||||
"no-inferrable-types": true,
|
|
||||||
"ordered-imports": [
|
|
||||||
true,
|
|
||||||
{
|
|
||||||
"import-sources-order": "any",
|
|
||||||
"named-imports-order": "case-insensitive"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"no-namespace": [
|
|
||||||
true,
|
|
||||||
"allow-declarations"
|
|
||||||
],
|
|
||||||
"no-reference": true,
|
|
||||||
"no-string-throw": true,
|
|
||||||
"no-unused-expression": true,
|
|
||||||
"no-var-keyword": true,
|
|
||||||
"object-literal-shorthand": true,
|
|
||||||
"only-arrow-functions": [
|
|
||||||
true,
|
|
||||||
"allow-declarations",
|
|
||||||
"allow-named-functions"
|
|
||||||
],
|
|
||||||
"prefer-const": true,
|
|
||||||
"radix": true,
|
|
||||||
"semicolon": [
|
|
||||||
true,
|
|
||||||
"always",
|
|
||||||
"ignore-bound-class-methods"
|
|
||||||
],
|
|
||||||
"switch-default": true,
|
|
||||||
"trailing-comma": [
|
|
||||||
true,
|
|
||||||
{
|
|
||||||
"multiline": {
|
|
||||||
"objects": "always",
|
|
||||||
"arrays": "always",
|
|
||||||
"functions": "always",
|
|
||||||
"typeLiterals": "ignore"
|
|
||||||
},
|
|
||||||
"esSpecCompliant": true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"triple-equals": [
|
|
||||||
true,
|
|
||||||
"allow-null-check"
|
|
||||||
],
|
|
||||||
"use-isnan": true,
|
|
||||||
"quotes": [
|
|
||||||
"error",
|
|
||||||
"single"
|
|
||||||
],
|
|
||||||
"variable-name": [
|
|
||||||
true,
|
|
||||||
"check-format",
|
|
||||||
"ban-keywords",
|
|
||||||
"allow-leading-underscore",
|
|
||||||
"allow-trailing-underscore"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"rulesDirectory": []
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user