n8n-workflow
Advanced tools
Comparing version 0.24.0 to 0.25.0
@@ -106,2 +106,3 @@ import { Workflow } from './Workflow'; | ||
continueOnFail(): boolean; | ||
evaluateExpression(expression: string, itemIndex: number): NodeParameterValue | INodeParameters | NodeParameterValue[] | INodeParameters[]; | ||
executeWorkflow(workflowInfo: IExecuteWorkflowInfo, inputData?: INodeExecutionData[]): Promise<any>; | ||
@@ -126,2 +127,3 @@ getContext(type: string): IContextObject; | ||
continueOnFail(): boolean; | ||
evaluateExpression(expression: string, itemIndex: number | undefined): NodeParameterValue | INodeParameters | NodeParameterValue[] | INodeParameters[]; | ||
getContext(type: string): IContextObject; | ||
@@ -424,4 +426,8 @@ getCredentials(type: string): ICredentialDataDecryptedObject | undefined; | ||
$env: any; | ||
$evaluateExpression: any; | ||
$item: any; | ||
$json: any; | ||
$node: any; | ||
$parameter: any; | ||
$workflow: any; | ||
} | ||
@@ -428,0 +434,0 @@ export interface IWorkflowMetadata { |
@@ -431,4 +431,8 @@ "use strict"; | ||
const dataProxy = new _1.WorkflowDataProxy(this, runExecutionData, runIndex, itemIndex, activeNodeName, connectionInputData); | ||
const data = dataProxy.getDataProxy(); | ||
data.$evaluateExpression = (expression) => { | ||
return this.resolveSimpleParameterValue('=' + expression, runExecutionData, runIndex, itemIndex, activeNodeName, connectionInputData, returnObjectAsString); | ||
}; | ||
try { | ||
const returnValue = tmpl.tmpl(parameterValue, dataProxy.getDataProxy()); | ||
const returnValue = tmpl.tmpl(parameterValue, data); | ||
if (returnValue !== null && typeof returnValue === 'object') { | ||
@@ -435,0 +439,0 @@ if (Object.keys(returnValue).length === 0) { |
@@ -162,2 +162,3 @@ "use strict"; | ||
$env: this.envGetter(), | ||
$evaluateExpression: (expression) => { }, | ||
$item: (itemIndex) => { | ||
@@ -164,0 +165,0 @@ const dataProxy = new WorkflowDataProxy(this.workflow, this.runExecutionData, this.runIndex, itemIndex, this.activeNodeName, this.connectionInputData); |
{ | ||
"name": "n8n-workflow", | ||
"version": "0.24.0", | ||
"version": "0.25.0", | ||
"description": "Workflow base code of n8n", | ||
@@ -5,0 +5,0 @@ "license": "SEE LICENSE IN LICENSE.md", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
401780
6416