@heines/n8n-nodes-pax8 0.3.0 → 0.4.0

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.
@@ -3097,7 +3097,9 @@ class Pax8 {
3097
3097
  returnAll = this.getNodeParameter('returnAll', i, false);
3098
3098
  maxResults = this.getNodeParameter('maxResults', i, 0);
3099
3099
  }
3100
- const url = `${baseUrl}${applyPathParams(def.path, pathParams)}`;
3100
+ const normalizedBase = baseUrl.replace(/\/+$/, '');
3101
+ const apiBase = normalizedBase.endsWith('/v1') ? normalizedBase : `${normalizedBase}/v1`;
3102
+ const url = `${apiBase}${applyPathParams(def.path, pathParams)}`;
3101
3103
  const makeRequest = async (qs) => {
3102
3104
  const options = {
3103
3105
  method: def.method,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heines/n8n-nodes-pax8",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "n8n community node for the Pax8 API (Partner endpoints).",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",