@raevon/n8n-nodes-whatsapp 1.0.9 → 1.0.10

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.
@@ -241,12 +241,14 @@ async function ensureConnected(cfg) {
241
241
  // Check if session exists on disk
242
242
  const resolvedPath = expandHome(cfg.sessionPath);
243
243
  const hasSession = node_fs_1.default.existsSync(resolvedPath) && node_fs_1.default.readdirSync(resolvedPath).length > 0;
244
+ console.log(`[WhatsApp] Session path: ${resolvedPath}, exists: ${hasSession}`);
244
245
  if (!hasSession) {
245
246
  throw new n8n_workflow_1.NodeApiError({}, {
246
247
  message: 'No WhatsApp session found. Run the WhatsApp Connect node first to scan QR code.',
247
248
  });
248
249
  }
249
250
  // Check if current socket is actually alive
251
+ console.log(`[WhatsApp] Current status: ${socketStatus}, socket exists: ${!!socketInstance}`);
250
252
  if (socketInstance && socketStatus === 'connected') {
251
253
  try {
252
254
  if (socketInstance.user) {
@@ -133,10 +133,12 @@ class WhatsAppSend {
133
133
  const returnData = [];
134
134
  const credentials = await this.getCredentials('whatsappApi');
135
135
  const cfg = await (0, WhatsAppApiHelper_1.getWhatsAppCredentials)(credentials);
136
+ console.log(`[WhatsApp Send] Starting execution, recipient check: ${cfg.checkRecipientExists}`);
136
137
  for (let i = 0; i < items.length; i++) {
137
138
  try {
138
139
  const operation = this.getNodeParameter('operation', i);
139
140
  const recipient = this.getNodeParameter('recipient', i);
141
+ console.log(`[WhatsApp Send] Operation: ${operation}, To: ${recipient}`);
140
142
  let content = {};
141
143
  switch (operation) {
142
144
  case 'sendText':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raevon/n8n-nodes-whatsapp",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "n8n community node for WhatsApp — send and receive messages with anti-ban protection via the Baileys library",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",