Update package-lock.json and add pairedItem

This commit is contained in:
Omar Ajoue 2022-07-12 10:25:39 +02:00
commit f6d9d17b43
2 changed files with 258 additions and 243 deletions

View file

@ -55,7 +55,7 @@ export class ExampleNode implements INodeType {
// This node should never fail but we want to showcase how
// to handle errors.
if (this.continueOnFail()) {
items.push({ json: this.getInputData(itemIndex)[0].json, error });
items.push({ json: this.getInputData(itemIndex)[0].json, error, pairedItem: itemIndex });
} else {
// Adding `itemIndex` allows other workflows to handle this error
if (error.context) {