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

Revert "Upgrade Node from `18.20.2` to `20.17.0`"

GitOrigin-RevId: cc12c33b4588caa2959817a113547d20d437d6f4
This commit is contained in:
Andrew Rumble
2024-10-29 14:51:59 +00:00
committed by Copybot
parent 8f56f39ec8
commit 79d80cc266
87 changed files with 109 additions and 113 deletions

View File

@@ -1 +1 @@
20.18.0
18.20.2

View File

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

View File

@@ -30,11 +30,7 @@ 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
if (options?.all) {
callback(null, [{ address: '127.0.0.1', family: 4 }])
} else {
callback(null, '127.0.0.1', 4)
}
callback(null, '127.0.0.1', 4)
} else {
// Otherwise, use the default lookup
_originalLookup(hostname, options, callback)