got
Advanced tools
Comparing version 11.8.1 to 11.8.2
@@ -32,3 +32,3 @@ "use strict"; | ||
const calculate_retry_delay_1 = require("./calculate-retry-delay"); | ||
const globalDnsCache = new cacheable_lookup_1.default(); | ||
let globalDnsCache; | ||
const kRequest = Symbol('request'); | ||
@@ -590,2 +590,5 @@ const kResponse = Symbol('response'); | ||
if (options.dnsCache === true) { | ||
if (!globalDnsCache) { | ||
globalDnsCache = new cacheable_lookup_1.default(); | ||
} | ||
options.dnsCache = globalDnsCache; | ||
@@ -592,0 +595,0 @@ } |
{ | ||
"name": "got", | ||
"version": "11.8.1", | ||
"version": "11.8.2", | ||
"description": "Human-friendly and powerful HTTP request library for Node.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
266380
4265