Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-fetch

Package Overview
Dependencies
Maintainers
2
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-fetch - npm Package Compare versions

Comparing version 1.7.0 to 1.7.1

8

CHANGELOG.md

@@ -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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc