Add dependency on cheerio

This commit is contained in:
Peter Stockings
2023-12-19 22:44:49 +11:00
parent 95320487f2
commit a09e91adf0
2 changed files with 3 additions and 0 deletions

View File

@@ -15,6 +15,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"cheerio": "^1.0.0-rc.12",
"express": "^4.18.2",
"jsdom": "^23.0.1",
"node-fetch": "^3.3.2",

View File

@@ -2,6 +2,7 @@ const express = require("express");
const bodyParser = require("body-parser");
const { VM } = require("vm2");
const { JSDOM } = require("jsdom");
const cheerio = require("cheerio");
const app = express();
const port = 5000;
@@ -134,6 +135,7 @@ async function executeUserCode(
requestObject,
environment,
JSDOM,
cheerio,
HTTP_STATUS_CODES,
Response,
JsonResponse,