n8n-workflow
Advanced tools
Comparing version 0.51.0 to 0.52.0
@@ -511,3 +511,3 @@ import { Workflow } from './Workflow'; | ||
startedAt: Date; | ||
stoppedAt: Date; | ||
stoppedAt?: Date; | ||
} | ||
@@ -565,3 +565,3 @@ export interface IRunExecutionData { | ||
[key: string]: Array<((...args: any[]) => Promise<void>)> | undefined; | ||
nodeExecuteAfter?: Array<((nodeName: string, data: ITaskData) => Promise<void>)>; | ||
nodeExecuteAfter?: Array<((nodeName: string, data: ITaskData, executionData: IRunExecutionData) => Promise<void>)>; | ||
nodeExecuteBefore?: Array<((nodeName: string) => Promise<void>)>; | ||
@@ -568,0 +568,0 @@ workflowExecuteAfter?: Array<((data: IRun, newStaticData: IDataObject) => Promise<void>)>; |
@@ -551,5 +551,8 @@ "use strict"; | ||
nodeWebhookPath = nodeWebhookPath.toString(); | ||
if (nodeWebhookPath.charAt(0) === '/') { | ||
if (nodeWebhookPath.startsWith('/')) { | ||
nodeWebhookPath = nodeWebhookPath.slice(1); | ||
} | ||
if (nodeWebhookPath.endsWith('/')) { | ||
nodeWebhookPath = nodeWebhookPath.slice(0, -1); | ||
} | ||
const isFullPath = workflow.expression.getSimpleParameterValue(node, webhookDescription['isFullPath'], 'internal', false); | ||
@@ -597,5 +600,8 @@ const path = getNodeWebhookPath(workflowId, node, nodeWebhookPath, isFullPath); | ||
nodeWebhookPath = nodeWebhookPath.toString(); | ||
if (nodeWebhookPath.charAt(0) === '/') { | ||
if (nodeWebhookPath.startsWith('/')) { | ||
nodeWebhookPath = nodeWebhookPath.slice(1); | ||
} | ||
if (nodeWebhookPath.endsWith('/')) { | ||
nodeWebhookPath = nodeWebhookPath.slice(0, -1); | ||
} | ||
const isFullPath = workflow.expression.getSimpleParameterValue(node, webhookDescription['isFullPath'], mode, false); | ||
@@ -602,0 +608,0 @@ const path = getNodeWebhookPath(workflowId, node, nodeWebhookPath, isFullPath); |
{ | ||
"name": "n8n-workflow", | ||
"version": "0.51.0", | ||
"version": "0.52.0", | ||
"description": "Workflow base code of n8n", | ||
@@ -5,0 +5,0 @@ "license": "SEE LICENSE IN LICENSE.md", |
Sorry, the diff of this file is not supported yet
424871
6739