+5
-1
@@ -68,5 +68,9 @@ // | ||
| Twitter.prototype.delete = function (path, params, callback) { | ||
| return this.request('DELETE', path, params, callback) | ||
| } | ||
| Twitter.prototype.request = function (method, path, params, callback) { | ||
| var self = this; | ||
| assert(method == 'GET' || method == 'POST'); | ||
| assert(method == 'GET' || method == 'POST' || method == 'DELETE'); | ||
| // if no `params` is specified but a callback is, use default params | ||
@@ -73,0 +77,0 @@ if (typeof params === 'function') { |
+1
-1
| { | ||
| "name": "twit", | ||
| "description": "Twitter API client for node (REST & Streaming)", | ||
| "version": "2.2.7", | ||
| "version": "2.2.8", | ||
| "author": "Tolga Tezel", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
+3
-0
@@ -579,2 +579,5 @@ # twit | ||
| ### 2.2.8 | ||
| * Add support for HTTP DELETE; you can now `T.delete(...)`. | ||
| ### 2.2.7 | ||
@@ -581,0 +584,0 @@ * Don't attempt to reconnect to Twitter API when receiving HTTP status code 413 - request entity too large. |
637681
0.03%2782
0.11%663
0.45%