mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor: Remove n8n-core dependency in nodes-base (no-changelog) (#5649)
This commit is contained in:
committed by
GitHub
parent
5790e5e719
commit
7a4e9ef5fa
@@ -1,4 +1,3 @@
|
||||
import { normalizeItems } from 'n8n-core';
|
||||
import type { NodeVMOptions } from 'vm2';
|
||||
import { NodeVM } from 'vm2';
|
||||
import { ValidationError } from './ValidationError';
|
||||
@@ -23,6 +22,7 @@ export class Sandbox extends NodeVM {
|
||||
context: ReturnType<typeof getSandboxContext>,
|
||||
workflowMode: WorkflowExecuteMode,
|
||||
private nodeMode: CodeNodeMode,
|
||||
private helpers: IExecuteFunctions['helpers'],
|
||||
) {
|
||||
super(Sandbox.getSandboxOptions(context, workflowMode));
|
||||
}
|
||||
@@ -138,7 +138,7 @@ export class Sandbox extends NodeVM {
|
||||
}
|
||||
}
|
||||
|
||||
return normalizeItems(executionResult as INodeExecutionData[]);
|
||||
return this.helpers.normalizeItems(executionResult as INodeExecutionData[]);
|
||||
}
|
||||
|
||||
private async runCodeEachItem() {
|
||||
|
||||
Reference in New Issue
Block a user