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.42.0 to 0.43.0

7

dist/src/Expression.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Expression = void 0;
const _1 = require("./");

@@ -48,3 +49,3 @@ const tmpl = require("riot-tmpl");

runData: {},
}
},
};

@@ -63,3 +64,3 @@ return this.getParameterValue(parameterValue, runData, runIndex, itemIndex, node.name, connectionInputData);

runData: {},
}
},
};

@@ -94,3 +95,3 @@ const returnData = this.getParameterValue(parameterValue, runData, runIndex, itemIndex, node.name, connectionInputData);

}
else if (parameterValue === null) {
else if (parameterValue === null || parameterValue === undefined) {
return parameterValue;

@@ -97,0 +98,0 @@ }

"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./Interfaces"));
__export(require("./Expression"));
__export(require("./Workflow"));
__export(require("./WorkflowDataProxy"));
__export(require("./WorkflowHooks"));
exports.ObservableObject = exports.NodeHelpers = void 0;
__exportStar(require("./Interfaces"), exports);
__exportStar(require("./Expression"), exports);
__exportStar(require("./Workflow"), exports);
__exportStar(require("./WorkflowDataProxy"), exports);
__exportStar(require("./WorkflowHooks"), exports);
const NodeHelpers = require("./NodeHelpers");

@@ -12,0 +20,0 @@ exports.NodeHelpers = NodeHelpers;

@@ -295,3 +295,3 @@ import { Workflow } from './Workflow';

}
export declare type NodeParameterValue = string | number | boolean;
export declare type NodeParameterValue = string | number | boolean | undefined | null;
export interface INodeParameters {

@@ -298,0 +298,0 @@ [key: string]: NodeParameterValue | INodeParameters | NodeParameterValue[] | INodeParameters[];

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ICredentialsHelper = exports.ICredentials = void 0;
class ICredentials {

@@ -4,0 +5,0 @@ constructor(name, type, nodesAccess, data) {

@@ -1,2 +0,2 @@

import { IContextObject, INodeCredentialDescription, INode, INodeExecutionData, INodeIssues, INodeParameters, INodeProperties, INodeType, IParameterDependencies, IRunExecutionData, IWebhookData, IWorkflowExecuteAdditionalData, NodeParameterValue } from './Interfaces';
import { IContextObject, INode, INodeCredentialDescription, INodeExecutionData, INodeIssues, INodeParameters, INodeProperties, INodeType, IParameterDependencies, IRunExecutionData, IWebhookData, IWorkflowExecuteAdditionalData, NodeParameterValue } from './Interfaces';
import { Workflow } from './Workflow';

@@ -111,5 +111,5 @@ export declare function getSpecialNodeParameters(nodeType: INodeType): {

export declare function addToIssuesIfMissing(foundIssues: INodeIssues, nodeProperties: INodeProperties, value: NodeParameterValue): void;
export declare function getParameterValueByPath(nodeValues: INodeParameters, parameterName: string, path: string): string | number | boolean | INodeParameters | (string | number | boolean)[] | INodeParameters[];
export declare function getParameterValueByPath(nodeValues: INodeParameters, parameterName: string, path: string): string | number | boolean | INodeParameters | NodeParameterValue[] | INodeParameters[] | null | undefined;
export declare function getParameterIssues(nodeProperties: INodeProperties, nodeValues: INodeParameters, path: string): INodeIssues;
export declare function mergeIssues(destination: INodeIssues, source: INodeIssues | null): void;
export declare function mergeNodeProperties(mainProperties: INodeProperties[], addProperties: INodeProperties[]): void;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.mergeNodeProperties = exports.mergeIssues = exports.getParameterIssues = exports.getParameterValueByPath = exports.addToIssuesIfMissing = exports.nodeIssuesToString = exports.getNodeParametersIssues = exports.getNodeWebhookUrl = exports.getNodeWebhookPath = exports.getNodeWebhooksBasic = exports.getNodeWebhooks = exports.prepareOutputData = exports.getNodeParameters = exports.getParamterResolveOrder = exports.getParamterDependencies = exports.getContext = exports.displayParameterPath = exports.displayParameter = exports.getSpecialNodeParameters = void 0;
const lodash_1 = require("lodash");

@@ -209,7 +210,7 @@ function getSpecialNodeParameters(nodeType) {

name: 'Minutes',
value: 'minutes'
value: 'minutes',
},
{
name: 'Hours',
value: 'hours'
value: 'hours',
},

@@ -473,3 +474,3 @@ ],

}
for (const itemName of Object.keys(propertyValues)) {
for (const itemName of Object.keys(propertyValues || {})) {
if (nodeProperties.typeOptions !== undefined && nodeProperties.typeOptions.multipleValues === true) {

@@ -476,0 +477,0 @@ const tempArrayValue = [];

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.create = void 0;
function create(target, parent, option, depth) {

@@ -4,0 +5,0 @@ depth = depth || 0;

@@ -1,2 +0,2 @@

import { Expression, IConnections, IGetExecuteTriggerFunctions, INode, INodes, INodeExecuteFunctions, INodeExecutionData, INodeParameters, INodeType, INodeTypes, IPollFunctions, IRunExecutionData, ITaskDataConnections, ITriggerResponse, IWebhookData, IWebhookResponseData, IWorfklowIssues, IWorkflowExecuteAdditionalData, IWorkflowSettings, NodeParameterValue, WebhookSetupMethodNames, WorkflowExecuteMode } from './';
import { Expression, IConnections, IGetExecuteTriggerFunctions, INode, INodeExecuteFunctions, INodeExecutionData, INodeParameters, INodes, INodeType, INodeTypes, IPollFunctions, IRunExecutionData, ITaskDataConnections, ITriggerResponse, IWebhookData, IWebhookResponseData, IWorfklowIssues, IWorkflowExecuteAdditionalData, IWorkflowSettings, NodeParameterValue, WebhookSetupMethodNames, WorkflowExecuteMode } from './';
import { IDataObject } from './Interfaces';

@@ -3,0 +3,0 @@ export declare class Workflow {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Workflow = void 0;
const _1 = require("./");

@@ -57,3 +58,3 @@ class Workflow {

type,
index: parseInt(inputIndex, 10)
index: parseInt(inputIndex, 10),
});

@@ -181,3 +182,3 @@ }

const returnData = {};
for (const parameterName of Object.keys(parameterValue)) {
for (const parameterName of Object.keys(parameterValue || {})) {
returnData[parameterName] = this.renameNodeInExpressions(parameterValue[parameterName], currentName, newName);

@@ -184,0 +185,0 @@ }

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WorkflowDataProxy = void 0;
const _1 = require("./");

@@ -31,3 +32,3 @@ class WorkflowDataProxy {

return contextData[name];
}
},
});

@@ -52,3 +53,3 @@ }

return returnValue;
}
},
});

@@ -143,3 +144,3 @@ }

return Reflect.get(target, name, receiver);
}
},
});

@@ -151,3 +152,3 @@ }

return process.env[name.toString()];
}
},
});

@@ -168,3 +169,3 @@ }

return that.workflow[name.toString()];
}
},
});

@@ -177,3 +178,3 @@ }

return that.nodeDataGetter(name.toString());
}
},
});

@@ -223,3 +224,3 @@ }

return Reflect.get(target, name, receiver);
}
},
});

@@ -226,0 +227,0 @@ }

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WorkflowHooks = void 0;
class WorkflowHooks {

@@ -4,0 +5,0 @@ constructor(hookFunctions, mode, executionId, workflowData, optionalParameters) {

@@ -1,2 +0,2 @@

import { INodeType, INodeTypes, INodeTypeData } from '../src';
import { INodeType, INodeTypeData, INodeTypes } from '../src';
export interface INodeTypesObject {

@@ -3,0 +3,0 @@ [key: string]: INodeType;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NodeTypes = void 0;
class NodeTypesClass {

@@ -33,6 +34,6 @@ constructor() {

default: 'default-value2',
}
]
}
}
},
],
},
},
},

@@ -82,9 +83,9 @@ 'test.setMulti': {

},
]
],
},
],
},
]
}
}
],
},
},
},

@@ -91,0 +92,0 @@ };

@@ -17,3 +17,3 @@ "use strict";

value2: 'value2Node1',
}
},
},

@@ -81,3 +81,3 @@ output: {

value2b: '={{$node.Node1.data.value1 + \'Node1\'}}',
}
},
],

@@ -94,6 +94,6 @@ level1c: {

},
}
]
},
],
},
}
},
},

@@ -107,3 +107,3 @@ },

value2b: '={{$node.NewName.data.value1 + \'Node1\'}}',
}
},
],

@@ -120,6 +120,6 @@ level1c: {

},
}
]
},
],
},
}
},
},

@@ -151,5 +151,5 @@ },

},
}
},
],
connections: {}
connections: {},
},

@@ -164,5 +164,5 @@ output: {

},
}
},
],
connections: {}
connections: {},
},

@@ -370,5 +370,5 @@ },

index: 0,
}
]
]
},
],
],
},

@@ -497,5 +497,5 @@ Node3: {

},
}
},
],
connections: {}
connections: {},
},

@@ -517,5 +517,5 @@ output: {

},
}
},
],
connections: {}
connections: {},
},

@@ -565,3 +565,3 @@ },

value1: 'valueNode1',
}
},
},

@@ -572,6 +572,6 @@ Node2: {

},
}
},
},
output: {
value1: 'valueNode2'
value1: 'valueNode2',
},

@@ -585,3 +585,3 @@ },

value1: '',
}
},
},

@@ -592,6 +592,6 @@ Node2: {

},
}
},
},
output: {
value1: 3
value1: 3,
},

@@ -605,3 +605,3 @@ },

value1: 'valueNode1',
}
},
},

@@ -612,6 +612,6 @@ Node2: {

},
}
},
},
output: {
value1: 'valueNode1'
value1: 'valueNode1',
},

@@ -625,3 +625,3 @@ },

value1: 1,
}
},
},

@@ -632,6 +632,6 @@ Node2: {

},
}
},
},
output: {
value1: '3 asdf'
value1: '3 asdf',
},

@@ -670,9 +670,9 @@ },

value1: 'valueNode1',
}
},
},
Node2: {
parameters: {
value1: '={{$data.value1}}'
value1: '={{$data.value1}}',
},
}
},
},

@@ -745,4 +745,4 @@ output: {

fileName: 'test-file1.jpg',
}
}
},
},
},

@@ -771,4 +771,4 @@ Node2: {

fileName: 'test-file1.jpg',
}
}
},
},
},

@@ -791,9 +791,9 @@ Node2: {

value1: 'valueNode1',
}
},
},
Node2: {
parameters: {
value1: '={{$node.Node1.parameter.value1}}'
value1: '={{$node.Node1.parameter.value1}}',
},
}
},
},

@@ -810,9 +810,9 @@ output: {

value1: 'valueNode1',
}
},
},
Node2: {
parameters: {
value1: '={{$env.TEST_VARIABLE_1}}'
value1: '={{$env.TEST_VARIABLE_1}}',
},
}
},
},

@@ -829,9 +829,9 @@ output: {

value1: 'valueNode1',
}
},
},
Node2: {
parameters: {
value1: '={{$env.DOES_NOT_EXIST}}'
value1: '={{$env.DOES_NOT_EXIST}}',
},
}
},
},

@@ -848,3 +848,3 @@ output: {

value1: 'valueNode1',
}
},
},

@@ -856,3 +856,3 @@ Node2: {

},
}
},
},

@@ -870,3 +870,3 @@ output: {

value1: 'valueNode1',
}
},
},

@@ -878,3 +878,3 @@ Node2: {

},
}
},
},

@@ -892,3 +892,3 @@ output: {

value1: 'valueNode1',
}
},
},

@@ -900,3 +900,3 @@ Node2: {

},
}
},
},

@@ -914,3 +914,3 @@ output: {

value1: 'valueNode1',
}
},
},

@@ -921,3 +921,3 @@ Node2: {

},
}
},
},

@@ -934,3 +934,3 @@ output: {

value1: 'valueNode1',
}
},
},

@@ -946,3 +946,3 @@ Node2: {

},
}
},
},

@@ -997,3 +997,3 @@ output: {

],
}
},
];

@@ -1007,6 +1007,6 @@ const connections = {

"type": "main",
"index": 0
}
]
]
"index": 0,
},
],
],
},

@@ -1019,7 +1019,7 @@ "Node2": {

"type": "main",
"index": 0
}
]
]
}
"index": 0,
},
],
],
},
};

@@ -1040,11 +1040,11 @@ const workflow = new src_1.Workflow({ nodes, connections, active: false, nodeTypes });

json: testData.input.Node1.outputJson || testData.input.Node1.parameters,
binary: testData.input.Node1.outputBinary
}
]
]
}
}
]
}
}
binary: testData.input.Node1.outputBinary,
},
],
],
},
},
],
},
},
};

@@ -1071,10 +1071,10 @@ const itemIndex = 0;

"name": "name1",
"value": "value1"
"value": "value1",
},
{
"name": "name2",
"value": "={{$parameter.values.string[0].value}}A"
}
]
}
"value": "={{$parameter.values.string[0].value}}A",
},
],
},
},

@@ -1104,10 +1104,10 @@ "type": "test.setMulti",

json: {},
}
]
]
}
}
]
}
}
},
],
],
},
},
],
},
},
};

@@ -1130,3 +1130,3 @@ const itemIndex = 0;

},
]
],
});

@@ -1133,0 +1133,0 @@ });

{
"name": "n8n-workflow",
"version": "0.42.0",
"version": "0.43.0",
"description": "Workflow base code of n8n",

@@ -21,2 +21,3 @@ "license": "SEE LICENSE IN LICENSE.md",

"tslint": "tslint -p tsconfig.json -c tslint.json",
"tslintfix": "tslint --fix -p tsconfig.json -c tslint.json",
"watch": "tsc --watch",

@@ -36,3 +37,3 @@ "test": "jest"

"tslint": "^6.1.2",
"typescript": "~3.7.4"
"typescript": "~3.9.7"
},

@@ -39,0 +40,0 @@ "dependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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