@kichat/n8n-nodes-kirimchat 1.0.0 → 1.0.2
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.
|
@@ -21,9 +21,9 @@ class KirimChatApi {
|
|
|
21
21
|
displayName: 'API Base URL',
|
|
22
22
|
name: 'baseUrl',
|
|
23
23
|
type: 'string',
|
|
24
|
-
default: 'https://api.
|
|
24
|
+
default: 'https://api-ig.kirim.chat/api/v1/public',
|
|
25
25
|
required: true,
|
|
26
|
-
description: '
|
|
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
|
-
|
|
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.
|
|
3
|
+
"version": "1.0.2",
|
|
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",
|
|
@@ -53,4 +53,4 @@
|
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"n8n-workflow": "*"
|
|
55
55
|
}
|
|
56
|
-
}
|
|
56
|
+
}
|