New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

n8n-workflow

Package Overview
Dependencies
Maintainers
3
Versions
287
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.153.0 to 0.154.0

22

dist/Interfaces.d.ts

@@ -1191,2 +1191,18 @@ /// <reference types="node" />

}
export interface WorkflowTestData {
description: string;
input: {
workflowData: {
nodes: INode[];
connections: IConnections;
settings?: IWorkflowSettings;
};
};
output: {
nodeExecutionOrder?: string[];
nodeData: {
[key: string]: any[][];
};
};
}
export type LogTypes = 'debug' | 'verbose' | 'info' | 'warn' | 'error';

@@ -1305,2 +1321,3 @@ export interface ILogger {

export declare const enum OAuth2GrantType {
pkce = "pkce",
authorizationCode = "authorizationCode",

@@ -1310,3 +1327,3 @@ clientCredentials = "clientCredentials"

export interface IOAuth2Credentials {
grantType: 'authorizationCode' | 'clientCredentials';
grantType: 'authorizationCode' | 'clientCredentials' | 'pkce';
clientId: string;

@@ -1505,3 +1522,4 @@ clientSecret: string;

variables: boolean;
versionControl: boolean;
sourceControl: boolean;
auditLogs: boolean;
};

@@ -1508,0 +1526,0 @@ hideUsagePage: boolean;

@@ -23,2 +23,3 @@ "use strict";

(function (OAuth2GrantType) {
OAuth2GrantType["pkce"] = "pkce";
OAuth2GrantType["authorizationCode"] = "authorizationCode";

@@ -25,0 +26,0 @@ OAuth2GrantType["clientCredentials"] = "clientCredentials";

@@ -45,2 +45,5 @@ import type { IDataObject, INode, JsonObject } from './Interfaces';

}
export declare class NodeSSLError extends ExecutionBaseError {
constructor(cause: Error);
}
export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NodeApiError = exports.NodeOperationError = exports.NodeError = exports.ExecutionBaseError = void 0;
exports.NodeSSLError = exports.NodeApiError = exports.NodeOperationError = exports.NodeError = exports.ExecutionBaseError = void 0;
const xml2js_1 = require("xml2js");

@@ -283,2 +283,8 @@ const ERROR_MESSAGE_PROPERTIES = [

exports.NodeApiError = NodeApiError;
class NodeSSLError extends ExecutionBaseError {
constructor(cause) {
super("SSL Issue: consider using the 'Ignore SSL issues' option", { cause });
}
}
exports.NodeSSLError = NodeSSLError;
//# sourceMappingURL=NodeErrors.js.map

20

dist/NodeHelpers.js

@@ -7,4 +7,4 @@ "use strict";

exports.getVersionedNodeTypeAll = exports.getVersionedNodeType = exports.mergeNodeProperties = exports.mergeIssues = exports.getParameterIssues = exports.getParameterValueByPath = exports.addToIssuesIfMissing = exports.validateResourceMapperParameter = exports.validateResourceLocatorParameter = exports.tryToParseObject = exports.tryToParseArray = exports.tryToParseTime = exports.tryToParseDateTime = exports.tryToParseBoolean = exports.tryToParseNumber = exports.validateFieldType = exports.nodeIssuesToString = exports.getNodeParametersIssues = exports.getNodeWebhookUrl = exports.getNodeWebhookPath = exports.getNodeWebhooks = exports.prepareOutputData = exports.getNodeParameters = exports.getParameterResolveOrder = exports.getContext = exports.displayParameterPath = exports.displayParameter = exports.applySpecialNodeParameters = exports.cronNodeOptions = void 0;
const lodash_get_1 = __importDefault(require("lodash.get"));
const lodash_isequal_1 = __importDefault(require("lodash.isequal"));
const get_1 = __importDefault(require("lodash/get"));
const isEqual_1 = __importDefault(require("lodash/isEqual"));
const type_guards_1 = require("./type-guards");

@@ -229,3 +229,3 @@ const utils_1 = require("./utils");

if (propertyName.charAt(0) === '/') {
value = (0, lodash_get_1.default)(nodeValuesRoot, propertyName.slice(1));
value = (0, get_1.default)(nodeValuesRoot, propertyName.slice(1));
}

@@ -236,3 +236,3 @@ else if (propertyName === '@version') {

else {
value = (0, lodash_get_1.default)(nodeValues, propertyName);
value = (0, get_1.default)(nodeValues, propertyName);
}

@@ -261,3 +261,3 @@ if (value && typeof value === 'object' && '__rl' in value && value.__rl) {

if (propertyName.charAt(0) === '/') {
value = (0, lodash_get_1.default)(nodeValuesRoot, propertyName.slice(1));
value = (0, get_1.default)(nodeValuesRoot, propertyName.slice(1));
}

@@ -268,3 +268,3 @@ else if (propertyName === '@version') {

else {
value = (0, lodash_get_1.default)(nodeValues, propertyName);
value = (0, get_1.default)(nodeValues, propertyName);
}

@@ -293,7 +293,7 @@ if (value && typeof value === 'object' && '__rl' in value && value.__rl) {

if (path !== '') {
resolvedNodeValues = (0, lodash_get_1.default)(nodeValues, path);
resolvedNodeValues = (0, get_1.default)(nodeValues, path);
}
let nodeValuesRoot = nodeValues;
if (path && path.split('.').indexOf('parameters') === 0) {
nodeValuesRoot = (0, lodash_get_1.default)(nodeValues, 'parameters');
nodeValuesRoot = (0, get_1.default)(nodeValues, 'parameters');
}

@@ -455,3 +455,3 @@ return displayParameter(resolvedNodeValues, parameter, node, nodeValuesRoot);

(typeof nodeValues[nodeProperties.name] === 'object' &&
!(0, lodash_isequal_1.default)(nodeValues[nodeProperties.name], nodeProperties.default)) ||
!(0, isEqual_1.default)(nodeValues[nodeProperties.name], nodeProperties.default)) ||
(nodeValues[nodeProperties.name] !== undefined && parentType === 'collection')) {

@@ -934,3 +934,3 @@ nodeParameters[nodeProperties.name] = nodeValues[nodeProperties.name];

function getParameterValueByPath(nodeValues, parameterName, path) {
return (0, lodash_get_1.default)(nodeValues, path ? `${path}.${parameterName}` : parameterName);
return (0, get_1.default)(nodeValues, path ? `${path}.${parameterName}` : parameterName);
}

@@ -937,0 +937,0 @@ exports.getParameterValueByPath = getParameterValueByPath;

@@ -30,5 +30,5 @@ "use strict";

exports.RoutingNode = void 0;
const lodash_get_1 = __importDefault(require("lodash.get"));
const lodash_merge_1 = __importDefault(require("lodash.merge"));
const lodash_set_1 = __importDefault(require("lodash.set"));
const get_1 = __importDefault(require("lodash/get"));
const merge_1 = __importDefault(require("lodash/merge"));
const set_1 = __importDefault(require("lodash/set"));
const NodeErrors_1 = require("./NodeErrors");

@@ -97,3 +97,3 @@ const NodeHelpers = __importStar(require("./NodeHelpers"));

for (const property of nodeType.description.properties) {
let value = (0, lodash_get_1.default)(this.node.parameters, property.name, []);
let value = (0, get_1.default)(this.node.parameters, property.name, []);
value = this.getParameterValue(value, i, runIndex, executeData, { $credentials: credentials, $version: this.node.typeVersion }, false);

@@ -110,3 +110,3 @@ const tempOptions = this.getRequestOptionsFromParameters(thisArgs, property, i, runIndex, '', { $credentials: credentials, $value: value, $version: this.node.typeVersion });

catch (error) {
if ((0, lodash_get_1.default)(this.node, 'continueOnFail', false)) {
if ((0, get_1.default)(this.node, 'continueOnFail', false)) {
returnData.push({ json: {}, error: error.message });

@@ -135,3 +135,3 @@ continue;

: destinationOptions.maxResults;
(0, lodash_merge_1.default)(destinationOptions.options, sourceOptions.options);
(0, merge_1.default)(destinationOptions.options, sourceOptions.options);
destinationOptions.preSend.push(...sourceOptions.preSend);

@@ -151,3 +151,3 @@ destinationOptions.postReceive.push(...sourceOptions.postReceive);

return inputData.flatMap((item) => {
let itemContent = (0, lodash_get_1.default)(item.json, action.properties.property);
let itemContent = (0, get_1.default)(item.json, action.properties.property);
if (!Array.isArray(itemContent)) {

@@ -351,3 +351,3 @@ itemContent = [itemContent];

if (properties.rootProperty) {
const tempResponseValue = (0, lodash_get_1.default)(tempResponseData[0].json, properties.rootProperty);
const tempResponseValue = (0, get_1.default)(tempResponseData[0].json, properties.rootProperty);
if (tempResponseValue === undefined) {

@@ -426,3 +426,3 @@ throw new NodeErrors_1.NodeOperationError(this.node, `The rootProperty "${properties.rootProperty}" could not be found on item.`, { runIndex, itemIndex });

else {
(0, lodash_set_1.default)(returnData.options.body, propertyName, value);
(0, set_1.default)(returnData.options.body, propertyName, value);
}

@@ -435,3 +435,3 @@ }

else {
(0, lodash_set_1.default)(returnData.options.qs, propertyName, value);
(0, set_1.default)(returnData.options.qs, propertyName, value);
}

@@ -438,0 +438,0 @@ }

@@ -535,2 +535,6 @@ "use strict";

if (results.length !== 1) {
const firstResult = results[0];
if (results.every((result) => result === firstResult)) {
return firstResult;
}
throw createExpressionError('Invalid expression', {

@@ -537,0 +541,0 @@ messageTemplate: 'Invalid expression under ‘%%PARAMETER%%’',

{
"name": "n8n-workflow",
"version": "0.153.0",
"version": "0.154.0",
"description": "Workflow base code of n8n",

@@ -34,6 +34,3 @@ "license": "SEE LICENSE IN LICENSE.md",

"@types/jmespath": "^0.15.0",
"@types/lodash.get": "^4.4.6",
"@types/lodash.isequal": "^4.5.6",
"@types/lodash.merge": "^4.6.6",
"@types/lodash.set": "^4.3.6",
"@types/lodash": "^4.14.195",
"@types/luxon": "^3.2.0",

@@ -50,6 +47,3 @@ "@types/xml2js": "^0.4.11"

"js-base64": "^3.7.2",
"lodash.get": "^4.4.2",
"lodash.isequal": "^4.5.0",
"lodash.merge": "^4.6.2",
"lodash.set": "^4.3.2",
"lodash": "^4.17.21",
"luxon": "^3.3.0",

@@ -56,0 +50,0 @@ "recast": "^0.21.5",

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

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