Merge pull request #14933 from overleaf/jdt-dependabot-mongo-monorepo

fix: update mongo and dependencies
GitOrigin-RevId: 8ea29e74b9b91bbfa42c3786b6690cff4be660cc
This commit is contained in:
Jimmy Domagala-Tang 2023-09-26 13:02:36 -04:00 committed by Copybot
parent 3383ec7908
commit 6ffaeb7a92
3 changed files with 292 additions and 443 deletions

729
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -127,7 +127,7 @@
"mmmagic": "^0.5.3",
"moment": "^2.29.4",
"mongodb": "^4.13.0",
"mongoose": "^6.11.4",
"mongoose": "^6.12.0",
"multer": "overleaf/multer#e1df247fbf8e7590520d20ae3601eaef9f3d2e9e",
"nocache": "^2.1.0",
"nock": "^13.1.3",

View file

@ -98,7 +98,7 @@ class UserHelper {
async fetch(url, opts = {}) {
url = UserHelper.url(url)
const headers = {}
const cookieString = this.jar.getCookieStringSync(url)
const cookieString = this.jar.getCookieStringSync(url.toString())
if (cookieString) {
headers.Cookie = cookieString
}
@ -115,7 +115,7 @@ class UserHelper {
const cookies = response.headers.raw()['set-cookie']
if (cookies != null) {
for (const cookie of cookies) {
this.jar.setCookieSync(cookie, url)
this.jar.setCookieSync(cookie, url.toString())
}
}
return response