mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-07 23:40:21 -05:00
9fda261dde
* chore: upgrade electron to 32.2.0 -- run ci * fix node versions * fix build * fix evil-dns * various fixes * fix srcdoc * various fixes * update package.json * update yarn.lock * various fixes * fix integrity check * fix binary verification * various fixes * update yarn.lock * fix typo * fix lock file * fix tests * fix tests * various fixes * various fixes * various fixes * fix stuff * fix things * try to fix errors * fix * updates * add yarn berry * upgrade electron * attempt with gcc * blank * update arm64 executor * try to fix the arm64 issue * fix arm64 * bump cache * attempt to fix arm64 again * attempt to fix arm64 again * fix darwin problems * merge release/14.0.0 * update yarn.lock * blank -- run ci * blank * blank * blank * try something * try something * clean up * blank * try to fix sessions issue * fixes * get more info * get more info * try something * fix * try something * try something * try something * tweak * one more thing * let us see if this works * blank * chore: updating v8 snapshot cache * chore: updating v8 snapshot cache * chore: updating v8 snapshot cache * Apply suggestions from code review * Apply suggestions from code review * Update cli/CHANGELOG.md Co-authored-by: Jennifer Shehane <jennifer@cypress.io> * Update cli/CHANGELOG.md Co-authored-by: Jennifer Shehane <jennifer@cypress.io> * Update CHANGELOG.md * Update cache-version.txt * fix nx (maybe) * Update package.json * try something * Update packages/app/src/runner/aut-iframe.ts * bump version * try to bust cache * try to invalidate cache * Update cli/CHANGELOG.md * suppress benign warnings * Apply suggestions from code review * PR comments * PR comment * Apply suggestions from code review * chore: updating v8 snapshot cache * chore: updating v8 snapshot cache * chore: updating v8 snapshot cache * Update cli/CHANGELOG.md Co-authored-by: Matt Schile <mschile@cypress.io> * update debug scenario 4 regex * Update scripts/binary/trigger-publish-binary-pipeline.js --------- Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com> Co-authored-by: Jennifer Shehane <jennifer@cypress.io> Co-authored-by: Matt Schile <mschile@cypress.io>
24 lines
861 B
Diff
24 lines
861 B
Diff
diff --git a/node_modules/evil-dns/evil-dns.js b/node_modules/evil-dns/evil-dns.js
|
|
index 740f40d..b78790d 100644
|
|
--- a/node_modules/evil-dns/evil-dns.js
|
|
+++ b/node_modules/evil-dns/evil-dns.js
|
|
@@ -25,10 +25,14 @@ dns.lookup = function(domain, options, callback) {
|
|
|
|
for (i = 0; i < domains.length; i++) {
|
|
var entry = domains[i];
|
|
- if (domain.match(entry.domain)) {
|
|
- if (!family || family === entry.family) {
|
|
- return callback(null, entry.ip, entry.family);
|
|
- }
|
|
+ // Note: this is patched to get around this issue:
|
|
+ // https://github.com/JamesHight/node-evil-dns/issues/7
|
|
+ if (domain.match(entry.domain) && (!family || family === entry.family)) {
|
|
+ return process.nextTick(
|
|
+ options.all
|
|
+ ? () => callback(null, [{ address: entry.ip, family: entry.family }])
|
|
+ : () => callback(null, entry.ip, entry.family)
|
|
+ );
|
|
}
|
|
}
|
|
|