fix(Code Node): Switch over to vm2 fork (#7018)

[Fork is here](https://github.com/n8n-io/vm2). Currently there are no
modifications in it.
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-08-30 11:17:04 +02:00
committed by GitHub
parent 9ca990b993
commit dfe0fa65f8
7 changed files with 47 additions and 159 deletions

View File

@@ -1,4 +1,4 @@
import { NodeVM, makeResolverFromLegacyOptions } from 'vm2';
import { NodeVM, makeResolverFromLegacyOptions } from '@n8n/vm2';
import type { IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
import { ValidationError } from './ValidationError';

View File

@@ -1,5 +1,5 @@
import { anyNumber, mock } from 'jest-mock-extended';
import { NodeVM } from 'vm2';
import { NodeVM } from '@n8n/vm2';
import type { IExecuteFunctions, IWorkflowDataProxyData } from 'n8n-workflow';
import { NodeHelpers } from 'n8n-workflow';
import { normalizeItems } from 'n8n-core';

View File

@@ -1,5 +1,5 @@
import type { NodeVMOptions } from 'vm2';
import { NodeVM } from 'vm2';
import type { NodeVMOptions } from '@n8n/vm2';
import { NodeVM } from '@n8n/vm2';
import type {
IExecuteFunctions,
IBinaryKeyData,

View File

@@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/no-loop-func */
import type { NodeVMOptions } from 'vm2';
import { NodeVM } from 'vm2';
import type { NodeVMOptions } from '@n8n/vm2';
import { NodeVM } from '@n8n/vm2';
import type {
IExecuteFunctions,
IBinaryKeyData,

View File

@@ -1,4 +1,4 @@
import { NodeVM } from 'vm2';
import { NodeVM } from '@n8n/vm2';
import {
NodeOperationError,
type IDataObject,

View File

@@ -809,6 +809,7 @@
},
"dependencies": {
"@kafkajs/confluent-schema-registry": "1.0.6",
"@n8n/vm2": "^3.9.19",
"amqplib": "^0.10.3",
"aws4": "^1.8.0",
"basic-auth": "^2.0.1",
@@ -861,11 +862,10 @@
"semver": "^7.5.4",
"showdown": "^2.0.3",
"simple-git": "^3.17.0",
"snowflake-sdk": "^1.6.23",
"snowflake-sdk": "^1.8.0",
"ssh2-sftp-client": "^7.0.0",
"tmp-promise": "^3.0.2",
"uuid": "^8.3.2",
"vm2": "^3.9.19",
"xlsx": "https://cdn.sheetjs.com/xlsx-0.19.3/xlsx-0.19.3.tgz",
"xml2js": "^0.5.0"
}