perf: update deepCopy (#4364)

* perf: update deepCopy

* fix: using deepCopy in core and cli packages

* fix: using deepCopy in editor

* chore: formatting

* fix: some micro optimisation in deepCopy
This commit is contained in:
Csaba Tuncsik
2022-10-18 13:33:31 +02:00
committed by GitHub
parent 638d6f60d3
commit 1aa21ed3df
14 changed files with 101 additions and 27 deletions

View File

@@ -63,6 +63,7 @@ import {
NodeParameterValueType,
NodeExecutionWithMetadata,
IPairedItemData,
deepCopy,
} from 'n8n-workflow';
import { Agent } from 'https';
@@ -1641,7 +1642,7 @@ export async function getCredentials(
*
*/
export function getNode(node: INode): INode {
return JSON.parse(JSON.stringify(node));
return deepCopy(node);
}
/**