Merge pull request #18828 from overleaf/ac-node-20

Upgrade Node from `18.20.2` to `20.17.0`

GitOrigin-RevId: 0ba9b0921fc246a97d3da0aad7d48635c0e24ae8
This commit is contained in:
Andrew Rumble
2024-10-29 10:49:30 +00:00
committed by Copybot
parent 74bee7e30b
commit a480df8a89
87 changed files with 113 additions and 109 deletions

View File

@@ -1 +1 @@
18.20.2
20.18.0

View File

@@ -5,6 +5,6 @@ fetch-utils
--env-pass-through=
--esmock-loader=False
--is-library=True
--node-version=18.20.2
--node-version=20.18.0
--public-repo=False
--script-version=4.5.0

View File

@@ -30,7 +30,11 @@ const _originalLookup = dns.lookup
dns.lookup = (hostname, options, callback) => {
if (hostname === 'example.com') {
// If the hostname is our test case, return the ip address for the test server
callback(null, '127.0.0.1', 4)
if (options?.all) {
callback(null, [{ address: '127.0.0.1', family: 4 }])
} else {
callback(null, '127.0.0.1', 4)
}
} else {
// Otherwise, use the default lookup
_originalLookup(hostname, options, callback)