got 11.8.0 → 11.8.1

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 +1 -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
@@ -152,7 +152,7 @@ class RequestError extends Error {
152
152
  }
153
153
  this.timings = (_a = this.request) === null || _a === void 0 ? void 0 : _a.timings;
154
154
  // Recover the original stacktrace
155
- if (!is_1.default.undefined(error.stack)) {
155
+ if (is_1.default.string(error.stack) && is_1.default.string(this.stack)) {
156
156
  const indexOfMessage = this.stack.indexOf(this.message) + this.message.length;
157
157
  const thisStackTrace = this.stack.slice(indexOfMessage).split('\n').reverse();
158
158
  const errorStackTrace = error.stack.slice(error.stack.indexOf(error.message) + error.message.length).split('\n').reverse();
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.0",
3
+ "version": "11.8.1",
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