Skip to content

Commit 79e1f44

Browse files
author
drowl87
committed
refactor DynamicNode to add contextData in executeWorkflow call and bump version to 0.3.3
1 parent c95a6b8 commit 79e1f44

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

nodes/DynamicNode/DynamicNode.node.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,12 @@ export class DynamicNode implements INodeType {
9595
const execResult = await this.executeWorkflow(
9696
{ code: template },
9797
[item],
98-
{},
98+
{
99+
contextData: {
100+
$data: item.json,
101+
$json: item.json,
102+
},
103+
},
99104
{
100105
parentExecution: {
101106
executionId: workflowProxy.$execution.id,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "n8n-nodes-dynamic-node",
3-
"version": "0.3.2",
3+
"version": "0.3.3",
44
"description": "A dynamic n8n node wrapper that can execute any node JSON by feeding it at runtime.",
55
"keywords": [
66
"n8n-community-node-package",

0 commit comments

Comments
 (0)