refactor(Code Node): Limit n8n item key check (#4737)

 Limit n8n item key check
This commit is contained in:
Iván Ovejero
2022-12-05 10:59:26 +01:00
committed by GitHub
parent 697efb2d31
commit 46d4c4d329
2 changed files with 5 additions and 5 deletions

View File

@@ -26,4 +26,4 @@ function isTraversable(maybe: unknown): maybe is IDataObject {
export type CodeNodeMode = 'runOnceForAllItems' | 'runOnceForEachItem';
export const N8N_ITEM_KEYS = new Set(['json', 'binary', 'error', 'pairedItem', 'index']);
export const REQUIRED_N8N_ITEM_KEYS = new Set(['json', 'binary']);