From f2a35aa3a103629e8c8f7dbdd90a491824e04c9e Mon Sep 17 00:00:00 2001 From: Kirill Bushmin Date: Mon, 23 Mar 2026 12:33:16 +0300 Subject: [PATCH 1/2] CCL-7441 fixed geeTest V4 payload --- nodes/CapmonsterCloud/captchas/geeTestV4.ts | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/nodes/CapmonsterCloud/captchas/geeTestV4.ts b/nodes/CapmonsterCloud/captchas/geeTestV4.ts index 64a534d..7adccdf 100644 --- a/nodes/CapmonsterCloud/captchas/geeTestV4.ts +++ b/nodes/CapmonsterCloud/captchas/geeTestV4.ts @@ -42,11 +42,11 @@ export const geeTestV4Fields: INodeProperties[] = [ { displayName: 'Init Parameters', name: 'initParameters', - type: 'json', + type: 'string', + typeOptions: { editor: 'codeNodeEditor', rows: 5 }, displayOptions: { show: { operation: ['geeTestV4'] } }, - default: {}, - description: - 'Whether Additional parameters for version 4, used together with “riskType” (captcha type/characteristics of its verification)', + default: '{}', + description: 'JSON string with additional parameters for V4 (will be parsed)', }, { displayName: 'User Agent', @@ -73,8 +73,14 @@ export const buildGeeTestV4 = function (this: IExecuteFunctions, i: number): IDa const getLib = this.getNodeParameter('geetestGetLib', i, '') as string; if (getLib) result.geetestGetLib = getLib; - const initParams = this.getNodeParameter('initParameters', i, {}) as object; - if (initParams && Object.keys(initParams).length > 0) result.initParameters = initParams; + const initParamsRaw = this.getNodeParameter('initParameters', i, '{}') as string; + let initParams: IDataObject = {}; + try { + initParams = JSON.parse(initParamsRaw); + } catch { + throw new Error('Init Parameters must be valid JSON'); + } + if (Object.keys(initParams).length) result.initParameters = initParams; const ua = this.getNodeParameter('userAgent', i, '') as string; if (ua) result.userAgent = ua; From a382d1a8aa52101bd7d94f95b9fff07e7f955438 Mon Sep 17 00:00:00 2001 From: Kirill Bushmin Date: Mon, 23 Mar 2026 12:33:46 +0300 Subject: [PATCH 2/2] Release 0.0.6 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index fbe7a0f..331321a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "n8n-nodes-capmonstercloud", - "version": "0.0.5", + "version": "0.0.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "n8n-nodes-capmonstercloud", - "version": "0.0.5", + "version": "0.0.6", "license": "MIT", "devDependencies": { "@n8n/node-cli": "*", diff --git a/package.json b/package.json index 24b9bb0..2cd9f39 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@zennolab_com/n8n-nodes-capmonstercloud", - "version": "0.0.5", + "version": "0.0.6", "publishConfig": { "access": "public" },