n8n-nodes-binary-to-url 0.1.1 → 0.1.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.
@@ -212,7 +212,9 @@ async function handleUpload(context, items) {
212
212
  const workflow = context.getWorkflow();
213
213
  const workflowId = workflow.id;
214
214
  const baseUrl = context.getInstanceBaseUrl();
215
- const webhookUrl = `${baseUrl}/webhook/${workflowId}/file/:fileKey`;
215
+ // Remove trailing slash and ensure clean URL
216
+ const cleanBaseUrl = baseUrl.replace(/\/+$/, '');
217
+ const webhookUrl = `${cleanBaseUrl}/webhook/${workflowId}/file/:fileKey`;
216
218
  const returnData = [];
217
219
  for (const item of items) {
218
220
  const binaryData = item.binary?.[binaryPropertyName];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-binary-to-url",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "n8n community node for creating temporary URLs for binary files within workflow execution",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",