mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
feat: Add once for each item support for JS task runner (no-changelog) (#11109)
This commit is contained in:
@@ -107,7 +107,7 @@ function getSandbox(
|
||||
}
|
||||
// eslint-disable-next-line @typescript-eslint/unbound-method
|
||||
|
||||
const sandbox = new JavaScriptSandbox(context, code, itemIndex, this.helpers, {
|
||||
const sandbox = new JavaScriptSandbox(context, code, this.helpers, {
|
||||
resolver: vmResolver,
|
||||
});
|
||||
|
||||
@@ -368,7 +368,7 @@ export class Code implements INodeType {
|
||||
}
|
||||
|
||||
const sandbox = getSandbox.call(this, code.supplyData.code, { itemIndex });
|
||||
const response = (await sandbox.runCode()) as Tool;
|
||||
const response = await sandbox.runCode<Tool>();
|
||||
|
||||
return {
|
||||
response: logWrapper(response, this),
|
||||
|
||||
Reference in New Issue
Block a user