Make static data available in Function-Nodes

This commit is contained in:
Jan Oberhauser 2019-10-15 07:37:49 +02:00
parent 542ae1e785
commit 1b28825b94
2 changed files with 2 additions and 0 deletions

View file

@ -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

View file

@ -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) => {