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

superagent

Package Overview
Dependencies
Maintainers
10
Versions
174
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

superagent - npm Package Compare versions

Comparing version 3.3.0 to 3.3.1

test.js

4

History.md

@@ -0,1 +1,5 @@

# 3.3.1 (2016-12-17)
* Fixed "double callback bug" warning on timeouts of gzipped responses
# 3.3.0 (2016-12-14)

@@ -2,0 +6,0 @@

@@ -843,2 +843,9 @@

parser(res, function(err, obj, files) {
if (self.timedout) {
// Timeout has already handled all callbacks
return;
}
// Intentional (non-timeout) abort is supposed to preserve partial response,
// even if it doesn't parse.
if (err && !self._aborted) {

@@ -845,0 +852,0 @@ return self.callback(err);

12

lib/node/unzip.js

@@ -8,13 +8,5 @@

var Stream = require('stream');
var zlib;
var zlib = require('zlib');
/**
* Require zlib module for Node 0.6+
*/
try {
zlib = require('zlib');
} catch (e) { }
/**
* Buffers response data events and re-emits when they're unzipped.

@@ -28,4 +20,2 @@ *

exports.unzip = function(req, res){
if (!zlib) return;
var unzip = zlib.createUnzip();

@@ -32,0 +22,0 @@ var stream = new Stream;

{
"name": "superagent",
"version": "3.3.0",
"version": "3.3.1",
"description": "elegant & feature rich browser / node HTTP with a fluent API",

@@ -5,0 +5,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

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