superagent
Advanced tools
Comparing version 0.9.2 to 0.9.3
@@ -5,5 +5,5 @@ { | ||
"description": "awesome http requests", | ||
"version": "0.9.2", | ||
"version": "0.9.3", | ||
"keywords": ["http", "ajax", "request", "agent"], | ||
"main": "lib/superagent.js" | ||
} |
0.9.3 / 2012-09-18 | ||
================== | ||
* remove __GET__ `.send()` == `.query()` special-case (__API__ change !!!) | ||
0.9.2 / 2012-09-17 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -320,3 +320,2 @@ | ||
Request.prototype.send = function(data){ | ||
if ('GET' == this.method) return this.query(data); | ||
var obj = isObject(data); | ||
@@ -323,0 +322,0 @@ var req = this.request(); |
@@ -502,3 +502,2 @@ | ||
* request.get('/search') | ||
* .send({ search: 'query' }) | ||
* .end(callback) | ||
@@ -548,3 +547,2 @@ * | ||
Request.prototype.send = function(data){ | ||
if ('GET' == this.method) return this.query(data); | ||
var obj = isObject(data); | ||
@@ -676,3 +674,3 @@ var type = this.header['content-type']; | ||
if (isFunction(data)) fn = data, data = null; | ||
if (data) req.send(data); | ||
if (data) req.query(data); | ||
if (fn) req.end(fn); | ||
@@ -679,0 +677,0 @@ return req; |
{ | ||
"name": "superagent" | ||
, "version": "0.9.2" | ||
, "description": "elegant & feature rich browser / node HTTP with a fluent API" | ||
, "keywords": ["http", "ajax", "request", "agent"] | ||
, "author": "TJ Holowaychuk <tj@vision-media.ca>" | ||
, "contributors": ["Hunter Loftis <hunter@hunterloftis.com>"] | ||
, "repository": { "type": "git", "url": "git://github.com/visionmedia/superagent.git" } | ||
, "dependencies": { | ||
"qs": "0.4.2" | ||
, "formidable": "1.0.9" | ||
, "mime": "1.2.5" | ||
, "emitter-component": "0.0.5" | ||
, "methods": "0.0.1" | ||
, "cookiejar": "1.3.0" | ||
} | ||
, "devDependencies": { | ||
"express": "3.0.0rc2" | ||
, "should": "*" | ||
, "mocha": "*" | ||
} | ||
, "component": { | ||
"name": "superagent", | ||
"version": "0.9.3", | ||
"description": "elegant & feature rich browser / node HTTP with a fluent API", | ||
"keywords": [ | ||
"http", | ||
"ajax", | ||
"request", | ||
"agent" | ||
], | ||
"author": "TJ Holowaychuk <tj@vision-media.ca>", | ||
"contributors": [ | ||
"Hunter Loftis <hunter@hunterloftis.com>" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/visionmedia/superagent.git" | ||
}, | ||
"dependencies": { | ||
"qs": "0.4.2", | ||
"formidable": "1.0.9", | ||
"mime": "1.2.5", | ||
"emitter-component": "0.0.5", | ||
"methods": "0.0.1", | ||
"cookiejar": "1.3.0" | ||
}, | ||
"devDependencies": { | ||
"express": "3.0.0rc5", | ||
"should": "*", | ||
"mocha": "*" | ||
}, | ||
"component": { | ||
"scripts": { | ||
"superagent": "lib/superagent.js" | ||
} | ||
}, | ||
"main": "index", | ||
"engines": { | ||
"node": "*" | ||
} | ||
, "main": "index" | ||
, "engines": { "node": "*" } | ||
} | ||
} |
91884
2735