github sindresorhus/got v2.0.0

  • Return an error object on connection failure instead of the HTTP status code. 4a6b6d7cc7a6f3d97f4e55ab07900bb9206a6da2
    The HTTP status code is now available as a code property on the error object.
  • Read response stream even if status is not 200. cef2daacb55882dac46b8007fe14142fa29bfaed
    If you only care about the returned status code make sure to do a HEAD request.
  • Add timeout option. 14e0dd88924324ed25ece7beef6132f8acdb96a4
latest releases: v11.7.0, v11.6.2, v11.6.1...
6 years ago