mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
⚡ Make static data available in Function-Nodes
This commit is contained in:
parent
542ae1e785
commit
1b28825b94
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in a new issue