mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
⚡ Make static data available in Function-Nodes
This commit is contained in:
@@ -48,6 +48,7 @@ export class Function implements INodeType {
|
|||||||
// Define the global objects for the custom function
|
// Define the global objects for the custom function
|
||||||
const sandbox = {
|
const sandbox = {
|
||||||
getNodeParameter: this.getNodeParameter,
|
getNodeParameter: this.getNodeParameter,
|
||||||
|
getWorkflowStaticData: this.getWorkflowStaticData,
|
||||||
helpers: this.helpers,
|
helpers: this.helpers,
|
||||||
items,
|
items,
|
||||||
// To be able to access data of other items
|
// To be able to access data of other items
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ export class FunctionItem implements INodeType {
|
|||||||
return item.binary;
|
return item.binary;
|
||||||
},
|
},
|
||||||
getNodeParameter: this.getNodeParameter,
|
getNodeParameter: this.getNodeParameter,
|
||||||
|
getWorkflowStaticData: this.getWorkflowStaticData,
|
||||||
helpers: this.helpers,
|
helpers: this.helpers,
|
||||||
item: item.json,
|
item: item.json,
|
||||||
setBinaryData: (data: IBinaryKeyData) => {
|
setBinaryData: (data: IBinaryKeyData) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user