@warleon/n8n-nodes-payload-cms 1.3.8 → 1.3.9

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.
@@ -378,9 +378,9 @@ class PayloadCms {
378
378
  //console.log("In Authenticated Request auth token:", authToken);
379
379
  // Add authorization header
380
380
  config.headers = {
381
- ...config.headers,
382
381
  Authorization: authToken,
383
382
  "Content-Type": "application/json",
383
+ ...config.headers,
384
384
  };
385
385
  config.validateStatus = (status) => {
386
386
  return status < 500;
@@ -542,6 +542,7 @@ class PayloadCms {
542
542
  data: formData,
543
543
  headers: {
544
544
  ...formData.getHeaders(),
545
+ "Content-Type": "multipart/form-data",
545
546
  },
546
547
  };
547
548
  }
@@ -561,14 +562,6 @@ class PayloadCms {
561
562
  typeof data === "string" ? JSON.parse(data) : data;
562
563
  }
563
564
  }
564
- returnData.push({
565
- json: {
566
- debug: {
567
- msg: "AXIOS CONFIG",
568
- requestConfig,
569
- },
570
- },
571
- });
572
565
  const response = await PayloadCms.prototype.makeAuthenticatedRequest.call(this, requestConfig);
573
566
  returnData.push({
574
567
  json: response.data,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warleon/n8n-nodes-payload-cms",
3
- "version": "1.3.8",
3
+ "version": "1.3.9",
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",