n8n-nodes-syncmate 1.0.22 → 1.0.23

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.
@@ -227,6 +227,7 @@ class WhatsAuto {
227
227
  };
228
228
  }
229
229
  async execute() {
230
+ var _a;
230
231
  const items = this.getInputData();
231
232
  const returnData = [];
232
233
  const authMethod = this.getNodeParameter('authentication', 0);
@@ -320,21 +321,17 @@ class WhatsAuto {
320
321
  });
321
322
  }
322
323
  catch (error) {
323
- console.error(`[WhatsAuto] Item ${i} Failed:`, error.message);
324
- if (error.response) {
325
- console.error(`[WhatsAuto] Error Response Body:`, error.response.body);
326
- }
327
324
  if (this.continueOnFail()) {
328
325
  returnData.push({
329
326
  json: {
330
327
  error: error.message,
328
+ details: ((_a = error.response) === null || _a === void 0 ? void 0 : _a.body) || undefined,
331
329
  },
332
330
  pairedItem: { item: i },
333
331
  });
334
332
  continue;
335
333
  }
336
- const errorMsg = error.message || 'Unknown error';
337
- throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Failed to send message: ${errorMsg}`, { itemIndex: i });
334
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), error, { itemIndex: i });
338
335
  }
339
336
  }
340
337
  return [returnData];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-syncmate",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "Send WhatsApp messages or media using SyncMate Assistro API.",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",