From e5fd2a462cd6e06dae9b06ea24f40c6b5b1796ab Mon Sep 17 00:00:00 2001 From: Andrew Rumble Date: Wed, 6 Nov 2024 16:25:40 +0000 Subject: [PATCH] Convert references service to ES modules GitOrigin-RevId: f904721ff81b291127fdc8750105846a9cf3ceb0 --- package-lock.json | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 567fa58576..042625d7d2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -40905,7 +40905,6 @@ "@overleaf/redis-wrapper": "*", "@overleaf/settings": "*", "async": "^3.2.5", - "body-parser": "^1.20.3", "bunyan": "^1.8.15", "express": "^4.21.0", "ioredis": "^4.16.1", @@ -40914,13 +40913,22 @@ "devDependencies": { "chai": "^4.3.6", "chai-as-promised": "^7.1.1", + "esmock": "^2.6.9", "mocha": "^10.2.0", "mongodb": "6.7.0", - "sandboxed-module": "^2.0.4", "sinon": "^9.2.4", "typescript": "^5.0.4" } }, + "services/references/node_modules/esmock": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/esmock/-/esmock-2.6.9.tgz", + "integrity": "sha512-SJ5YnoWi8yuGghBrupScARmIcUh2A2a2gIfdVRtQ2MQpQo91wMWHx/fsN0ZDERLAUso1ea4Q/9CKCL88O5MEpg==", + "dev": true, + "engines": { + "node": ">=14.16.0" + } + }, "services/spelling": { "name": "@overleaf/spelling", "version": "0.1.4", @@ -50575,18 +50583,25 @@ "@overleaf/redis-wrapper": "*", "@overleaf/settings": "*", "async": "^3.2.5", - "body-parser": "^1.20.3", "bunyan": "^1.8.15", "chai": "^4.3.6", "chai-as-promised": "^7.1.1", + "esmock": "^2.6.9", "express": "^4.21.0", "ioredis": "^4.16.1", "lodash": "^4.17.19", "mocha": "^10.2.0", "mongodb": "6.7.0", - "sandboxed-module": "^2.0.4", "sinon": "^9.2.4", "typescript": "^5.0.4" + }, + "dependencies": { + "esmock": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/esmock/-/esmock-2.6.9.tgz", + "integrity": "sha512-SJ5YnoWi8yuGghBrupScARmIcUh2A2a2gIfdVRtQ2MQpQo91wMWHx/fsN0ZDERLAUso1ea4Q/9CKCL88O5MEpg==", + "dev": true + } } }, "@overleaf/settings": {