🚀 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.10
to
2.2.11
+3
-3
lib/file_uploader.js

@@ -130,8 +130,8 @@ var assert = require('assert');

var shared = self._isSharedMedia;
var media_category = 'dm_image';
var media_category = 'tweet_image';
if (mediaType.toLowerCase().indexOf('gif') > -1) {
media_category = 'dm_gif';
media_category = 'tweet_gif';
} else if (mediaType.toLowerCase().indexOf('video') > -1) {
media_category = 'dm_video';
media_category = 'tweet_video';
}

@@ -138,0 +138,0 @@

{
"name": "twit",
"description": "Twitter API client for node (REST & Streaming)",
"version": "2.2.10",
"version": "2.2.11",
"author": "Tolga Tezel",

@@ -6,0 +6,0 @@ "keywords": [

@@ -165,3 +165,3 @@ # twit

## var T = new Twit(config)`
## `var T = new Twit(config)`

@@ -191,3 +191,3 @@ Create a `Twit` instance that can be used to make requests to Twitter's APIs.

## T.get(path, [params], callback)`
## `T.get(path, [params], callback)`
GET any of the REST API endpoints.

@@ -210,7 +210,7 @@

## T.post(path, [params], callback)`
## `T.post(path, [params], callback)`
POST any of the REST API endpoints. Same usage as `T.get()`.
## T.postMediaChunked(params, callback)`
## `T.postMediaChunked(params, callback)`

@@ -228,9 +228,9 @@ Helper function to post media via the POST media/upload (chunked) API. `params` is an object containing a `file_path` key. `file_path` is the absolute path to the file you want to upload.

## T.getAuth()`
## `T.getAuth()`
Get the client's authentication tokens.
## T.setAuth(tokens)`
## `T.setAuth(tokens)`
Update the client's authentication tokens.
## T.stream(path, [params])`
## `T.stream(path, [params])`
Use this with the Streaming API.

@@ -584,2 +584,5 @@

### 2.2.11
* Fix media_category used for media uploads (thanks @BooDoo)
### 2.2.10

@@ -586,0 +589,0 @@ * Update maximum Tweet characters to 280 (thanks @maziyarpanahi)