4 Commits

Author SHA1 Message Date
dependabot[bot]
a482745df7 ⬆️ Bump semver from 5.7.1 to 5.7.2
Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v5.7.2/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v5.7.1...v5.7.2)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-03 11:08:19 +00:00
Iván Ovejero
73c99818fa fix: Remove n8n-workflow as dev dependency (#63) 2025-02-03 12:07:10 +01:00
Iván Ovejero
a36a4a1841 chore: Remove tslint config (#64) 2025-02-03 12:04:47 +01:00
कारतोफ्फेलस्क्रिप्ट™
b2ba2d1cf1 Update ExampleNode.node.ts 2024-10-21 17:00:23 +02:00
5 changed files with 1851 additions and 571 deletions

View File

@@ -17,7 +17,7 @@ export class HttpBinApi implements ICredentialType {
default: '',
typeOptions: {
password: true,
},
}
},
{
displayName: 'Domain',

View File

@@ -1,10 +1,10 @@
import {
import type {
IExecuteFunctions,
INodeExecutionData,
INodeType,
INodeTypeDescription,
NodeOperationError,
} from 'n8n-workflow';
import { NodeConnectionType, NodeOperationError } from 'n8n-workflow';
export class ExampleNode implements INodeType {
description: INodeTypeDescription = {
@@ -16,8 +16,8 @@ export class ExampleNode implements INodeType {
defaults: {
name: 'Example Node',
},
inputs: ['main'],
outputs: ['main'],
inputs: [NodeConnectionType.Main],
outputs: [NodeConnectionType.Main],
properties: [
// Node properties which the user gets displayed and
// can change on the node.
@@ -50,7 +50,7 @@ export class ExampleNode implements INodeType {
myString = this.getNodeParameter('myString', itemIndex, '') as string;
item = items[itemIndex];
item.json['myString'] = myString;
item.json.myString = myString;
} catch (error) {
// This node should never fail but we want to showcase how
// to handle errors.
@@ -71,6 +71,6 @@ export class ExampleNode implements INodeType {
}
}
return this.prepareOutputData(items);
return [items];
}
}

View File

@@ -16,7 +16,7 @@
"url": "https://github.com/<...>/n8n-nodes-<...>.git"
},
"engines": {
"node": ">=18.17",
"node": ">=18.10",
"pnpm": ">=9.1"
},
"packageManager": "pnpm@9.1.4",
@@ -45,11 +45,10 @@
]
},
"devDependencies": {
"@typescript-eslint/parser": "^7.16.0",
"eslint": "^8.57.0",
"@typescript-eslint/parser": "^7.15.0",
"eslint": "^8.56.0",
"eslint-plugin-n8n-nodes-base": "^1.16.1",
"gulp": "^5.0.0",
"n8n-workflow": "*",
"gulp": "^4.0.2",
"prettier": "^3.3.2",
"typescript": "^5.5.3"
},

2272
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -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": []
}