🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

twit

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twit - npm Package Compare versions

Comparing version
2.2.7
to
2.2.8
+5
-1
lib/twitter.js

@@ -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": [

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