n8n-workflow
Advanced tools
Comparing version 1.74.0 to 1.75.0
@@ -34,2 +34,4 @@ "use strict"; | ||
get(target, key, receiver) { | ||
if (key === 'constructor') | ||
return Array; | ||
const value = Reflect.get(newData ?? target, key, receiver); | ||
@@ -73,2 +75,4 @@ const newValue = augment(value); | ||
get(target, key, receiver) { | ||
if (key === 'constructor') | ||
return Object; | ||
if (deletedProperties.has(key)) { | ||
@@ -75,0 +79,0 @@ return undefined; |
@@ -502,13 +502,12 @@ "use strict"; | ||
}; | ||
const createMissingPairedItemError = (nodeCause) => { | ||
return createExpressionError("Can't get data for expression", { | ||
messageTemplate: 'Info for expression missing from previous node', | ||
const createMissingPairedItemError = (nodeCause, usedMethodName = 'pairedItem') => { | ||
const message = `Using the ${usedMethodName} method doesn't work with pinned data in this scenario. Please unpin '${nodeCause}' and try again.`; | ||
return new expression_error_1.ExpressionError(message, { | ||
runIndex: that.runIndex, | ||
itemIndex: that.itemIndex, | ||
functionality: 'pairedItem', | ||
functionOverrides: { | ||
message: "Can't get data", | ||
}, | ||
nodeCause, | ||
descriptionKey: isScriptingNode(nodeCause, that.workflow) | ||
? 'pairedItemNoInfoCodeNode' | ||
: 'pairedItemNoInfo', | ||
nodeCause, | ||
causeDetailed: `Missing pairedItem data (node '${nodeCause}' probably didn't supply it)`, | ||
@@ -530,3 +529,3 @@ type: 'paired_item_no_info', | ||
}; | ||
const getPairedItem = (destinationNodeName, incomingSourceData, pairedItem) => { | ||
const getPairedItem = (destinationNodeName, incomingSourceData, pairedItem, usedMethodName = '$getPairedItem') => { | ||
let taskData; | ||
@@ -572,3 +571,3 @@ let sourceData = incomingSourceData; | ||
if (itemPreviousNode.pairedItem === undefined) { | ||
throw createMissingPairedItemError(sourceData.previousNode); | ||
throw createMissingPairedItemError(sourceData.previousNode, usedMethodName); | ||
} | ||
@@ -583,3 +582,3 @@ if (Array.isArray(itemPreviousNode.pairedItem)) { | ||
} | ||
return getPairedItem(destinationNodeName, source[itemInput], item); | ||
return getPairedItem(destinationNodeName, source[itemInput], item, usedMethodName); | ||
} | ||
@@ -761,3 +760,3 @@ catch (error) { | ||
} | ||
if (['pairedItem', 'itemMatching', 'item'].includes(property)) { | ||
if (property === 'pairedItem' || property === 'itemMatching' || property === 'item') { | ||
const activeNode = that.workflow.getNode(that.activeNodeName); | ||
@@ -807,3 +806,3 @@ let contextNode = that.contextNodeName; | ||
if (pairedItem === undefined) { | ||
throw createMissingPairedItemError(that.activeNodeName); | ||
throw createMissingPairedItemError(that.activeNodeName, property); | ||
} | ||
@@ -824,3 +823,3 @@ if (!that.executeData?.source) { | ||
that.executeData.source.main[0]; | ||
return getPairedItem(nodeName, sourceData, pairedItem); | ||
return getPairedItem(nodeName, sourceData, pairedItem, property); | ||
}; | ||
@@ -827,0 +826,0 @@ if (property === 'item') { |
{ | ||
"name": "n8n-workflow", | ||
"version": "1.74.0", | ||
"version": "1.75.0", | ||
"description": "Workflow base code of n8n", | ||
@@ -22,3 +22,3 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@langchain/core": "0.3.19", | ||
"@langchain/core": "0.3.30", | ||
"@types/deep-equal": "^1.0.1", | ||
@@ -31,3 +31,3 @@ "@types/express": "^4.17.21", | ||
"@types/xml2js": "^0.4.14", | ||
"@n8n/config": "1.25.0" | ||
"@n8n/config": "1.26.0" | ||
}, | ||
@@ -34,0 +34,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 too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1050061
13177