fix(#263): Replace vm2 with fork of vm2 to fix security issues (#1400)

This commit is contained in:
Timon
2024-01-16 23:31:00 +01:00
committed by GitHub
parent b5fccef417
commit 4e34aba1ca
5 changed files with 64 additions and 54 deletions

View File

@ -8,7 +8,7 @@
"package.json"
],
"peerDependencies": {
"vm2": "^3.9.13"
"@n8n/vm2": "^3.9.23"
},
"scripts": {
"test": "jest --testPathIgnorePatterns test.js"

View File

@ -1,4 +1,4 @@
const { NodeVM } = require('vm2');
const { NodeVM } = require('@n8n/vm2');
const path = require('path');
const http = require('http');
const https = require('https');

View File

@ -1,4 +1,4 @@
const { NodeVM } = require('vm2');
const { NodeVM } = require('@n8n/vm2');
const chai = require('chai');
const path = require('path');
const http = require('http');