n8n-workflow
Advanced tools
Comparing version 0.29.0 to 0.30.0
@@ -438,3 +438,3 @@ import { Workflow } from './Workflow'; | ||
} | ||
export declare type WebhookHttpMethod = 'GET' | 'POST'; | ||
export declare type WebhookHttpMethod = 'GET' | 'POST' | 'HEAD'; | ||
export interface IWebhookResponseData { | ||
@@ -441,0 +441,0 @@ workflowData?: INodeExecutionData[][]; |
@@ -521,5 +521,2 @@ "use strict"; | ||
} | ||
if (workflow.id === undefined) { | ||
return []; | ||
} | ||
const nodeType = workflow.nodeTypes.getByName(node.type); | ||
@@ -529,2 +526,3 @@ if (nodeType.description.webhooks === undefined) { | ||
} | ||
const workflowId = workflow.id || '__UNSAVED__'; | ||
const returnData = []; | ||
@@ -534,3 +532,3 @@ for (const webhookDescription of nodeType.description.webhooks) { | ||
if (nodeWebhookPath === undefined) { | ||
console.error(`No webhook path could be found for node "${node.name}" in workflow "${workflow.id}".`); | ||
console.error(`No webhook path could be found for node "${node.name}" in workflow "${workflowId}".`); | ||
continue; | ||
@@ -542,6 +540,6 @@ } | ||
} | ||
const path = getNodeWebhookPath(workflow.id, node, nodeWebhookPath); | ||
const path = getNodeWebhookPath(workflowId, node, nodeWebhookPath); | ||
const httpMethod = workflow.getSimpleParameterValue(node, webhookDescription['httpMethod'], 'GET'); | ||
if (httpMethod === undefined) { | ||
console.error(`The webhook "${path}" for node "${node.name}" in workflow "${workflow.id}" could not be added because the httpMethod is not defined.`); | ||
console.error(`The webhook "${path}" for node "${node.name}" in workflow "${workflowId}" could not be added because the httpMethod is not defined.`); | ||
continue; | ||
@@ -554,3 +552,3 @@ } | ||
webhookDescription, | ||
workflowId: workflow.id, | ||
workflowId, | ||
workflowExecuteAdditionalData: additionalData, | ||
@@ -557,0 +555,0 @@ }); |
@@ -24,3 +24,3 @@ “Commons Clause” License Condition v1.0 | ||
Licensor: Jan Oberhauser | ||
Licensor: n8n GmbH | ||
@@ -27,0 +27,0 @@ |
{ | ||
"name": "n8n-workflow", | ||
"version": "0.29.0", | ||
"version": "0.30.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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
407533
6494