node-fetch
Advanced tools
Comparing version 1.7.0 to 1.7.1
@@ -8,6 +8,10 @@ | ||
(Note: `1.x` will only have backported bugfix releases beyond `1.7.0`) | ||
## v1.7.1 | ||
- Fix: close local test server properly under Node 8. | ||
## v1.7.0 | ||
(Note: this is a maintenance release, `1.x` will only have backported bugfix beyond this release.) | ||
- Fix: revert change in `v1.6.2` where 204 no-content response is handled with a special case, this conflicts with browser Fetch implementation (as browsers always throw when res.json() parses an empty string). Since this is an operational error, it's wrapped in a `FetchError` for easier error handling. | ||
@@ -14,0 +18,0 @@ - Fix: move code coverage tool to codecov platform and update travis config |
@@ -244,3 +244,3 @@ | ||
req.write(options.body); | ||
req.end() | ||
req.end(); | ||
} else if (typeof options.body === 'object' && options.body.pipe) { | ||
@@ -247,0 +247,0 @@ options.body.pipe(req); |
{ | ||
"name": "node-fetch", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"description": "A light-weight module that brings window.fetch to node.js and io.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -15,2 +15,5 @@ | ||
this.hostname = 'localhost'; | ||
// node 8 default keepalive timeout is 5000ms | ||
// make it shorter here as we want to close server quickly at the end of tests | ||
this.server.keepAliveTimeout = 1000; | ||
this.server.on('error', function(err) { | ||
@@ -17,0 +20,0 @@ console.log(err.stack); |
Sorry, the diff of this file is not supported yet
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
119903
3485