got 11.8.1 → 11.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/source/as-promise/create-rejection.d.ts +0 -0
- package/dist/source/as-promise/create-rejection.js +0 -0
- package/dist/source/as-promise/index.d.ts +0 -0
- package/dist/source/as-promise/index.js +0 -0
- package/dist/source/as-promise/normalize-arguments.d.ts +0 -0
- package/dist/source/as-promise/normalize-arguments.js +0 -0
- package/dist/source/as-promise/parse-body.d.ts +0 -0
- package/dist/source/as-promise/parse-body.js +0 -0
- package/dist/source/as-promise/types.d.ts +0 -0
- package/dist/source/as-promise/types.js +0 -0
- package/dist/source/core/calculate-retry-delay.d.ts +0 -0
- package/dist/source/core/calculate-retry-delay.js +0 -0
- package/dist/source/core/index.d.ts +0 -0
- package/dist/source/core/index.js +4 -1
- package/dist/source/core/utils/dns-ip-version.d.ts +0 -0
- package/dist/source/core/utils/dns-ip-version.js +0 -0
- package/dist/source/core/utils/get-body-size.d.ts +0 -0
- package/dist/source/core/utils/get-body-size.js +0 -0
- package/dist/source/core/utils/get-buffer.d.ts +0 -0
- package/dist/source/core/utils/get-buffer.js +0 -0
- package/dist/source/core/utils/is-form-data.d.ts +0 -0
- package/dist/source/core/utils/is-form-data.js +0 -0
- package/dist/source/core/utils/is-response-ok.d.ts +0 -0
- package/dist/source/core/utils/is-response-ok.js +0 -0
- package/dist/source/core/utils/options-to-url.d.ts +0 -0
- package/dist/source/core/utils/options-to-url.js +0 -0
- package/dist/source/core/utils/proxy-events.d.ts +0 -0
- package/dist/source/core/utils/proxy-events.js +0 -0
- package/dist/source/core/utils/timed-out.d.ts +0 -0
- package/dist/source/core/utils/timed-out.js +0 -0
- package/dist/source/core/utils/unhandle.d.ts +0 -0
- package/dist/source/core/utils/unhandle.js +0 -0
- package/dist/source/core/utils/url-to-options.d.ts +0 -0
- package/dist/source/core/utils/url-to-options.js +0 -0
- package/dist/source/core/utils/weakable-map.d.ts +0 -0
- package/dist/source/core/utils/weakable-map.js +0 -0
- package/dist/source/create.d.ts +0 -0
- package/dist/source/create.js +0 -0
- package/dist/source/index.d.ts +0 -0
- package/dist/source/index.js +0 -0
- package/dist/source/types.d.ts +0 -0
- package/dist/source/types.js +0 -0
- package/dist/source/utils/deep-freeze.d.ts +0 -0
- package/dist/source/utils/deep-freeze.js +0 -0
- package/dist/source/utils/deprecation-warning.d.ts +0 -0
- package/dist/source/utils/deprecation-warning.js +0 -0
- package/license +0 -0
- package/package.json +1 -1
- package/readme.md +0 -0
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -29,7 +29,7 @@ const is_response_ok_1 = require("./utils/is-response-ok");
|
|
|
29
29
|
const deprecation_warning_1 = require("../utils/deprecation-warning");
|
|
30
30
|
const normalize_arguments_1 = require("../as-promise/normalize-arguments");
|
|
31
31
|
const calculate_retry_delay_1 = require("./calculate-retry-delay");
|
|
32
|
-
|
|
32
|
+
let globalDnsCache;
|
|
33
33
|
const kRequest = Symbol('request');
|
|
34
34
|
const kResponse = Symbol('response');
|
|
35
35
|
const kResponseSize = Symbol('responseSize');
|
|
@@ -586,6 +586,9 @@ class Request extends stream_1.Duplex {
|
|
|
586
586
|
options.cacheOptions = { ...options.cacheOptions };
|
|
587
587
|
// `options.dnsCache`
|
|
588
588
|
if (options.dnsCache === true) {
|
|
589
|
+
if (!globalDnsCache) {
|
|
590
|
+
globalDnsCache = new cacheable_lookup_1.default();
|
|
591
|
+
}
|
|
589
592
|
options.dnsCache = globalDnsCache;
|
|
590
593
|
}
|
|
591
594
|
else if (!is_1.default.undefined(options.dnsCache) && !options.dnsCache.lookup) {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/source/create.d.ts
CHANGED
|
File without changes
|
package/dist/source/create.js
CHANGED
|
File without changes
|
package/dist/source/index.d.ts
CHANGED
|
File without changes
|
package/dist/source/index.js
CHANGED
|
File without changes
|
package/dist/source/types.d.ts
CHANGED
|
File without changes
|
package/dist/source/types.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/license
CHANGED
|
File without changes
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
File without changes
|