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

superagent

Package Overview
Dependencies
Maintainers
1
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 0.4.0 to 0.4.1

7

History.md
0.4.1 / 2012-04-13
==================
* Added HTTP PATCH support
* Fixed: GET / HEAD when following redirects. Closes #86
* Fixed Content-Length detection for multibyte chars
0.4.0 / 2012-03-04

@@ -3,0 +10,0 @@ ==================

12

lib/node/index.js

@@ -36,3 +36,3 @@

exports.version = '0.4.0';
exports.version = '0.4.1';

@@ -384,4 +384,8 @@ /**

delete this.req;
this.method = 'HEAD' == this.method
? this.method
: 'GET';
this._data = null;
this.url = url;
this.emit('redirect', res);
this.url = url;
this.end(this.callback);

@@ -431,3 +435,3 @@ return this;

var self = this
, options = this.options || {}
, options = {}
, data = this._data

@@ -508,3 +512,3 @@ , query = this._query

if (data && !req.getHeader('Content-Length')) {
this.set('Content-Length', data.length);
this.set('Content-Length', Buffer.byteLength(data));
}

@@ -511,0 +515,0 @@ }

@@ -688,2 +688,19 @@

/**
* PATCH `url` with optional `data` and callback `fn(res)`.
*
* @param {String} url
* @param {Mixed} data
* @param {Function} fn
* @return {Request}
* @api public
*/
request.patch = function(url, data, fn){
var req = request('PATCH', url);
if (data) req.send(data);
if (fn) req.end(fn);
return req;
};
/**
* POST `url` with optional `data` and callback `fn(res)`.

@@ -690,0 +707,0 @@ *

{
"name": "superagent"
, "version": "0.4.0"
, "version": "0.4.1"
, "description": "elegant progressive ajax client"

@@ -5,0 +5,0 @@ , "keywords": ["http", "ajax", "request", "agent"]

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