refactor(core): Refactor some imports to reduce baseline memory usage (#15916)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-06-03 11:23:44 +02:00
committed by GitHub
parent 8abd556597
commit 7c806ff532
133 changed files with 237 additions and 238 deletions

View File

@@ -1,6 +1,6 @@
import { json as generateSchemaFromExample, type SchemaObject } from 'generate-schema';
import type { JSONSchema7 } from 'json-schema';
import _ from 'lodash';
import pickBy from 'lodash/pickBy';
import type {
FieldValueOption,
FieldType,
@@ -157,7 +157,7 @@ export function getCurrentWorkflowInputData(this: IExecuteFunctions | ISupplyDat
const filteredInputData: INodeExecutionData[] = inputData.map(({ json, binary }, index) => ({
index,
pairedItem: { item: index },
json: _.pickBy(json, (_v, key) => !removedKeys.has(key)),
json: pickBy(json, (_v, key) => !removedKeys.has(key)),
binary,
}));