Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

n8n-workflow

Package Overview
Dependencies
Maintainers
1
Versions
284
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

n8n-workflow - npm Package Compare versions

Comparing version 0.24.0 to 0.25.0

6

dist/src/Interfaces.d.ts

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

6

dist/src/Workflow.js

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

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc