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.
Files changed (49) hide show
  1. package/dist/source/as-promise/create-rejection.d.ts +0 -0
  2. package/dist/source/as-promise/create-rejection.js +0 -0
  3. package/dist/source/as-promise/index.d.ts +0 -0
  4. package/dist/source/as-promise/index.js +0 -0
  5. package/dist/source/as-promise/normalize-arguments.d.ts +0 -0
  6. package/dist/source/as-promise/normalize-arguments.js +0 -0
  7. package/dist/source/as-promise/parse-body.d.ts +0 -0
  8. package/dist/source/as-promise/parse-body.js +0 -0
  9. package/dist/source/as-promise/types.d.ts +0 -0
  10. package/dist/source/as-promise/types.js +0 -0
  11. package/dist/source/core/calculate-retry-delay.d.ts +0 -0
  12. package/dist/source/core/calculate-retry-delay.js +0 -0
  13. package/dist/source/core/index.d.ts +0 -0
  14. package/dist/source/core/index.js +4 -1
  15. package/dist/source/core/utils/dns-ip-version.d.ts +0 -0
  16. package/dist/source/core/utils/dns-ip-version.js +0 -0
  17. package/dist/source/core/utils/get-body-size.d.ts +0 -0
  18. package/dist/source/core/utils/get-body-size.js +0 -0
  19. package/dist/source/core/utils/get-buffer.d.ts +0 -0
  20. package/dist/source/core/utils/get-buffer.js +0 -0
  21. package/dist/source/core/utils/is-form-data.d.ts +0 -0
  22. package/dist/source/core/utils/is-form-data.js +0 -0
  23. package/dist/source/core/utils/is-response-ok.d.ts +0 -0
  24. package/dist/source/core/utils/is-response-ok.js +0 -0
  25. package/dist/source/core/utils/options-to-url.d.ts +0 -0
  26. package/dist/source/core/utils/options-to-url.js +0 -0
  27. package/dist/source/core/utils/proxy-events.d.ts +0 -0
  28. package/dist/source/core/utils/proxy-events.js +0 -0
  29. package/dist/source/core/utils/timed-out.d.ts +0 -0
  30. package/dist/source/core/utils/timed-out.js +0 -0
  31. package/dist/source/core/utils/unhandle.d.ts +0 -0
  32. package/dist/source/core/utils/unhandle.js +0 -0
  33. package/dist/source/core/utils/url-to-options.d.ts +0 -0
  34. package/dist/source/core/utils/url-to-options.js +0 -0
  35. package/dist/source/core/utils/weakable-map.d.ts +0 -0
  36. package/dist/source/core/utils/weakable-map.js +0 -0
  37. package/dist/source/create.d.ts +0 -0
  38. package/dist/source/create.js +0 -0
  39. package/dist/source/index.d.ts +0 -0
  40. package/dist/source/index.js +0 -0
  41. package/dist/source/types.d.ts +0 -0
  42. package/dist/source/types.js +0 -0
  43. package/dist/source/utils/deep-freeze.d.ts +0 -0
  44. package/dist/source/utils/deep-freeze.js +0 -0
  45. package/dist/source/utils/deprecation-warning.d.ts +0 -0
  46. package/dist/source/utils/deprecation-warning.js +0 -0
  47. package/license +0 -0
  48. package/package.json +1 -1
  49. 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
- const globalDnsCache = new cacheable_lookup_1.default();
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
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/license CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "got",
3
- "version": "11.8.1",
3
+ "version": "11.8.2",
4
4
  "description": "Human-friendly and powerful HTTP request library for Node.js",
5
5
  "license": "MIT",
6
6
  "repository": "sindresorhus/got",
package/readme.md CHANGED
File without changes