Socket
Socket
Sign inDemoInstall

make-fetch-happen

Package Overview
Dependencies
Maintainers
1
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

make-fetch-happen - npm Package Compare versions

Comparing version 1.4.0 to 1.5.0

10

CHANGELOG.md

@@ -5,2 +5,12 @@ # Change Log

<a name="1.5.0"></a>
# [1.5.0](https://github.com/zkat/make-fetch-happen/compare/v1.4.0...v1.5.0) (2017-04-04)
### Features
* **retry:** retry requests on 408 timeouts, too ([8d8b5bd](https://github.com/zkat/make-fetch-happen/commit/8d8b5bd))
<a name="1.4.0"></a>

@@ -7,0 +17,0 @@ # [1.4.0](https://github.com/zkat/make-fetch-happen/compare/v1.3.1...v1.4.0) (2017-04-04)

5

index.js

@@ -286,3 +286,4 @@ 'use strict'

})
} else if (res.status >= 500) {
} else if (res.status === 408 || res.status >= 500) {
// 408 === timeout
if (req.method === 'POST') {

@@ -306,3 +307,3 @@ return res

}, opts.retry === false ? { retries: 0 } : opts.retry).catch(err => {
if (err.status >= 500) {
if (err.status >= 500 || err.status === 408) {
return err

@@ -309,0 +310,0 @@ } else {

2

package.json
{
"name": "make-fetch-happen",
"version": "1.4.0",
"version": "1.5.0",
"description": "Opinionated, caching, retrying fetch client",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc