@raevon/n8n-nodes-whatsapp 2.0.1 → 2.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.
@@ -63,10 +63,12 @@ async function ensureServerRunning(cfg) {
63
63
  // Use nohup + background for Docker compatibility
64
64
  const cmd = `nohup node "${serverPath}" > /tmp/whatsapp-server-${port}.log 2>&1 &`;
65
65
  try {
66
- (0, node_child_process_1.execSync)(cmd, { env, stdio: 'ignore' });
66
+ (0, node_child_process_1.execSync)(cmd, { env, stdio: 'pipe' });
67
67
  }
68
68
  catch (err) {
69
- throw new Error(`Failed to start WhatsApp server: ${err.message}`);
69
+ const stderr = err.stderr ? err.stderr.toString() : '';
70
+ const stdout = err.stdout ? err.stdout.toString() : '';
71
+ throw new Error(`Failed to start WhatsApp server: ${err.message} | stdout: ${stdout} | stderr: ${stderr}`);
70
72
  }
71
73
  serverPort = port;
72
74
  // Wait for server to start (up to 10s)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raevon/n8n-nodes-whatsapp",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
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",