n8n-nodes-cala 0.5.3 → 0.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -352,11 +352,13 @@ class Cala {
352
352
  });
353
353
  }
354
354
  else {
355
- throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unknown operation: ${operation}`);
355
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unknown operation: ${operation}`, { itemIndex: i });
356
356
  }
357
357
  }
358
358
  else {
359
- throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unknown resource: ${resource}`);
359
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unknown resource: ${resource}`, {
360
+ itemIndex: i,
361
+ });
360
362
  }
361
363
  returnData.push({
362
364
  json: response,
@@ -364,11 +366,12 @@ class Cala {
364
366
  });
365
367
  }
366
368
  catch (error) {
367
- if (error instanceof n8n_workflow_1.NodeOperationError)
368
- throw error;
369
369
  if (this.continueOnFail()) {
370
370
  returnData.push({
371
- json: { error: new n8n_workflow_1.NodeApiError(this.getNode(), error).message },
371
+ json: {
372
+ error: new n8n_workflow_1.NodeApiError(this.getNode(), error, { itemIndex: i })
373
+ .message,
374
+ },
372
375
  pairedItem: { item: i },
373
376
  });
374
377
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-cala",
3
- "version": "0.5.3",
3
+ "version": "0.5.5",
4
4
  "description": "n8n nodes for Cala AI knowledge search",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",
@@ -61,7 +61,7 @@
61
61
  "n8n-workflow": "*"
62
62
  },
63
63
  "engines": {
64
- "node": ">=18",
64
+ "node": ">=20.19",
65
65
  "pnpm": ">=10"
66
66
  },
67
67
  "volta": {
@@ -1,13 +0,0 @@
1
- import { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
- export declare class CalaApi implements ICredentialType {
3
- name: string;
4
- displayName: string;
5
- documentationUrl: string;
6
- icon: {
7
- readonly light: "file:cala.svg";
8
- readonly dark: "file:cala.dark.svg";
9
- };
10
- properties: INodeProperties[];
11
- authenticate: IAuthenticateGeneric;
12
- test: ICredentialTestRequest;
13
- }
@@ -1,5 +0,0 @@
1
- import { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
- export declare class Cala implements INodeType {
3
- description: INodeTypeDescription;
4
- execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
5
- }