Comparing version 11.1.1 to 11.1.2
@@ -305,2 +305,5 @@ "use strict"; | ||
} | ||
if (options.dnsCache === false) { | ||
options.dnsCache = undefined; | ||
} | ||
// Nice type assertions | ||
@@ -446,3 +449,3 @@ is_1.assert.any([is_1.default.string, is_1.default.undefined], options.method); | ||
} | ||
else if (!is_1.default.undefined(options.dnsCache) && options.dnsCache !== false && !(options.dnsCache instanceof cacheable_lookup_1.default)) { | ||
else if (!is_1.default.undefined(options.dnsCache) && !(options.dnsCache instanceof cacheable_lookup_1.default)) { | ||
throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${is_1.default(options.dnsCache)}`); | ||
@@ -449,0 +452,0 @@ } |
@@ -7,3 +7,2 @@ "use strict"; | ||
const url_1 = require("url"); | ||
const cacheable_lookup_1 = require("cacheable-lookup"); | ||
const create_1 = require("./create"); | ||
@@ -61,3 +60,3 @@ const defaults = { | ||
cache: undefined, | ||
dnsCache: new cacheable_lookup_1.default(), | ||
dnsCache: undefined, | ||
decompress: true, | ||
@@ -64,0 +63,0 @@ throwHttpErrors: true, |
{ | ||
"name": "got", | ||
"version": "11.1.1", | ||
"version": "11.1.2", | ||
"description": "Human-friendly and powerful HTTP request library for Node.js", | ||
@@ -46,11 +46,11 @@ "license": "MIT", | ||
"dependencies": { | ||
"@sindresorhus/is": "^2.1.0", | ||
"@szmarczak/http-timer": "^4.0.0", | ||
"@sindresorhus/is": "^2.1.1", | ||
"@szmarczak/http-timer": "^4.0.5", | ||
"@types/cacheable-request": "^6.0.1", | ||
"@types/responselike": "^1.0.0", | ||
"cacheable-lookup": "^4.1.1", | ||
"cacheable-lookup": "^4.3.0", | ||
"cacheable-request": "^7.0.1", | ||
"decompress-response": "^5.0.0", | ||
"get-stream": "^5.0.0", | ||
"http2-wrapper": "^1.0.0-beta.4.4", | ||
"get-stream": "^5.1.0", | ||
"http2-wrapper": "^1.0.0-beta.4.5", | ||
"lowercase-keys": "^2.0.0", | ||
@@ -57,0 +57,0 @@ "p-cancelable": "^2.0.0", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
180109
2756
1908
Updated@sindresorhus/is@^2.1.1
Updated@szmarczak/http-timer@^4.0.5
Updatedcacheable-lookup@^4.3.0
Updatedget-stream@^5.1.0