@kichat/n8n-nodes-kirimchat 1.0.0 → 1.0.1

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.
@@ -23,7 +23,7 @@ class KirimChatApi {
23
23
  type: 'string',
24
24
  default: 'https://api.paijoe.com/api/v1/public',
25
25
  required: true,
26
- description: 'The base URL for the KirimChat API',
26
+ description: '⚠️ WARNING: Only change this URL if you know what you\'re doing. Your API key will be sent to this URL. Changing this to an untrusted URL could expose your credentials.',
27
27
  },
28
28
  ];
29
29
  this.authenticate = {
@@ -345,8 +345,8 @@ class KirimChat {
345
345
  try {
346
346
  templateComponents = JSON.parse(templateComponentsJson);
347
347
  }
348
- catch {
349
- // Keep empty array if invalid JSON
348
+ catch (error) {
349
+ throw new Error(`Invalid JSON in Template Components: ${error instanceof Error ? error.message : 'Parse failed'}`);
350
350
  }
351
351
  body.template = {
352
352
  name: templateName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kichat/n8n-nodes-kirimchat",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "n8n community node for KirimChat - Send WhatsApp & Instagram messages, mark as read, and send typing indicators",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",