mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
✨ Add functionality to evaluate expression
This commit is contained in:
@@ -48,6 +48,9 @@ export class FunctionItem implements INodeType {
|
||||
|
||||
// Define the global objects for the custom function
|
||||
const sandbox = {
|
||||
evaluateExpression: (expression: string, itemIndex: number | undefined) => {
|
||||
return this.evaluateExpression(expression, itemIndex);
|
||||
},
|
||||
getBinaryData: (): IBinaryKeyData | undefined => {
|
||||
return item.binary;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user