diff --git a/src/drivers/npm/driver.js b/src/drivers/npm/driver.js index b09462124..38cf01994 100644 --- a/src/drivers/npm/driver.js +++ b/src/drivers/npm/driver.js @@ -433,7 +433,7 @@ class Site { promise, fallback, errorMessage = 'Operation took too long to complete', - maxWait = this.options.maxWait + maxWait = Math.min(this.options.maxWait, 1000) ) { let timeout = null @@ -955,14 +955,6 @@ class Site { // Continue } - let hostname = url - - try { - ;({ hostname } = new URL(url)) - } catch (error) { - // Continue - } - if (error.message.includes('net::ERR_NAME_NOT_RESOLVED')) { const newError = new Error(`Hostname could not be resolved (${url})`)