@warleon/n8n-nodes-payload-cms 1.3.6 → 1.3.7

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.
@@ -490,7 +490,17 @@ class PayloadCms {
490
490
  let requestConfig = {};
491
491
  // handle binary inputs
492
492
  const binaryPropertyName = additionalOptions.upload;
493
+ returnData.push({
494
+ json: {
495
+ debug: `upload name: ${binaryPropertyName}`,
496
+ },
497
+ });
493
498
  if (binaryPropertyName) {
499
+ returnData.push({
500
+ json: {
501
+ debug: "entered file data, form-data path",
502
+ },
503
+ });
494
504
  const binaryData = this.helpers.assertBinaryData(i, binaryPropertyName);
495
505
  const fileBuffer = await this.helpers.getBinaryDataBuffer(i, binaryPropertyName);
496
506
  const fileName = binaryData.fileName;
@@ -516,6 +526,11 @@ class PayloadCms {
516
526
  };
517
527
  }
518
528
  else {
529
+ returnData.push({
530
+ json: {
531
+ debug: "entered normal data, json data path",
532
+ },
533
+ });
519
534
  requestConfig = {
520
535
  method: method,
521
536
  url,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warleon/n8n-nodes-payload-cms",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
4
4
  "description": "Dynamic n8n node for Payload CMS that auto-discovers collections and operations forked and extended from https://github.com/leadership-institute/n8n-payload-dynamic",
5
5
  "main": "dist/index.js",
6
6
  "author": "warleon",