diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..4b322dc --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "cSpell.words": ["Changdu", "changdunovel"] +} diff --git a/nodes/GwezzChangdunovel/GwezzChangdunovel.node.ts b/nodes/GwezzChangdunovel/GwezzChangdunovel.node.ts index cdf4f7a..1776d94 100644 --- a/nodes/GwezzChangdunovel/GwezzChangdunovel.node.ts +++ b/nodes/GwezzChangdunovel/GwezzChangdunovel.node.ts @@ -1,4 +1,4 @@ -import { NodeConnectionType, type INodeType, type INodeTypeDescription } from 'n8n-workflow'; +import { type INodeType, type INodeTypeDescription } from 'n8n-workflow'; import { userDescription } from './resources/user'; import { companyDescription } from './resources/company'; @@ -15,8 +15,8 @@ export class GwezzChangdunovel implements INodeType { name: 'Gwezz Changdunovel', }, usableAsTool: true, - inputs: [NodeConnectionType.Main], - outputs: [NodeConnectionType.Main], + inputs: ['main'], + outputs: ['main'], credentials: [], requestDefaults: { baseURL: 'https://www.changdunovel.com/novelsale/openapi', diff --git a/package.json b/package.json index 277b068..6f93a73 100644 --- a/package.json +++ b/package.json @@ -1,14 +1,19 @@ { "name": "n8n-nodes-gwezz-changdunovel", "version": "0.1.0", - "description": "", + "description": "n8n node for Changdu Novel", "license": "MIT", "homepage": "", - "keywords": ["n8n-community-node-package"], - "author": { "name": "sshelgwezz", "email": "sshelgwezz@foxmail.com" }, + "keywords": [ + "n8n-community-node-package" + ], + "author": { + "name": "sshelgwezz", + "email": "sshelgwezz@foxmail.com" + }, "repository": { "type": "git", - "url": "https://github.com/<...>/n8n-nodes-<...>.git" + "url": "https://github.com/sshelgwezz/n8n-nodes-gwezz-changdunovel.git" }, "scripts": { "build": "n8n-node build", @@ -19,12 +24,16 @@ "release": "n8n-node release", "prepublishOnly": "n8n-node prerelease" }, - "files": ["dist"], + "files": [ + "dist" + ], "n8n": { "n8nNodesApiVersion": 1, "strict": true, "credentials": [], - "nodes": ["dist/nodes/GwezzChangdunovel/GwezzChangdunovel.node.js"] + "nodes": [ + "dist/nodes/GwezzChangdunovel/GwezzChangdunovel.node.js" + ] }, "devDependencies": { "@n8n/node-cli": "*", @@ -33,5 +42,7 @@ "release-it": "^19.0.4", "typescript": "5.9.2" }, - "peerDependencies": { "n8n-workflow": "*" } -} + "peerDependencies": { + "n8n-workflow": "*" + } +} \ No newline at end of file