perf(Code Node): Improve n8n item key validation performance (#4669)

 Improve validator performance
This commit is contained in:
Iván Ovejero
2022-11-22 14:49:13 +01:00
committed by GitHub
parent 7b00d6e731
commit 740513b424
2 changed files with 16 additions and 14 deletions

View File

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