make-fetch-happen
Advanced tools
Comparing version 1.3.1 to 1.4.0
@@ -105,4 +105,8 @@ 'use strict' | ||
}) | ||
}).catch({code: 'ENOENT'}, () => { | ||
return null | ||
}).catch(err => { | ||
if (err.code === 'ENOENT') { | ||
return null | ||
} else { | ||
throw err | ||
} | ||
}) | ||
@@ -109,0 +113,0 @@ } |
@@ -5,2 +5,17 @@ # Change Log | ||
<a name="1.4.0"></a> | ||
# [1.4.0](https://github.com/zkat/make-fetch-happen/compare/v1.3.1...v1.4.0) (2017-04-04) | ||
### Bug Fixes | ||
* **cache:** stop relying on BB.catch ([2b04494](https://github.com/zkat/make-fetch-happen/commit/2b04494)) | ||
### Features | ||
* **retry:** report retry attempt number as extra header ([fd50927](https://github.com/zkat/make-fetch-happen/commit/fd50927)) | ||
<a name="1.3.1"></a> | ||
@@ -7,0 +22,0 @@ ## [1.3.1](https://github.com/zkat/make-fetch-happen/compare/v1.3.0...v1.3.1) (2017-04-04) |
@@ -245,2 +245,3 @@ 'use strict' | ||
return fetch(req).then(res => { | ||
res.headers.set('x-fetch-attempts', attemptNum) | ||
if (opts.integrity) { | ||
@@ -247,0 +248,0 @@ const oldBod = res.body |
{ | ||
"name": "make-fetch-happen", | ||
"version": "1.3.1", | ||
"version": "1.4.0", | ||
"description": "Opinionated, caching, retrying fetch client", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38174
562