Merge pull request #21627 from overleaf/ar-node-20

[all] node 20 upgrade v2

GitOrigin-RevId: aed13a800894717a796062e3dd4050e045040258
This commit is contained in:
Andrew Rumble
2024-11-15 09:04:32 +00:00
committed by Copybot
parent eb693e41dc
commit 73b17dd694
85 changed files with 112 additions and 104 deletions
+1 -1
View File
@@ -1 +1 @@
18.20.4
20.18.0
+1 -1
View File
@@ -5,6 +5,6 @@ fetch-utils
--env-pass-through=
--esmock-loader=False
--is-library=True
--node-version=18.20.4
--node-version=20.18.0
--public-repo=False
--script-version=4.5.0
@@ -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)