🚀 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.4
to
2.2.5
+2
-1
examples/bot.js

@@ -23,2 +23,3 @@ //

// choose a random tweet and follow that user
Bot.prototype.searchFollow = function (params, callback) {

@@ -128,2 +129,2 @@ var self = this;

return arr[index];
};
};

@@ -300,2 +300,4 @@

else if (ev === 'unfollow') { self.emit('unfollow', msg) }
else if (ev === 'mute') { self.emit('mute', msg) }
else if (ev === 'unmute') { self.emit('unmute', msg) }
else if (ev === 'user_update') { self.emit('user_update', msg) }

@@ -302,0 +304,0 @@ else if (ev === 'list_created') { self.emit('list_created', msg) }

@@ -210,2 +210,6 @@ //

if (path.match(/^https?:\/\//i)) {
// This is a full url request
reqOpts.url = path
} else
if (isStreaming) {

@@ -212,0 +216,0 @@ // This is a Streaming API request.

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

@@ -17,3 +17,3 @@ "keywords": [

"mime": "^1.3.4",
"request": "2.58.0"
"request": "^2.68.0"
},

@@ -20,0 +20,0 @@ "devDependencies": {

@@ -430,2 +430,4 @@ #twit

* `unfollow`
* `mute`
* `unmute`
* `user_update`

@@ -578,2 +580,6 @@ * `list_created`

###2.2.4
* Fix 401 Unauthorized error on streaming connection reconnect after not being
connected for some time (eg. due to > 1min loss of network).
###2.2.2

@@ -580,0 +586,0 @@ * Emit `parser-error` instead of `error` event if Twitter sends back

@@ -673,4 +673,5 @@ var assert = require('assert')

it('config.trusted_cert_fingerprints works against cert fingerprint for api.twitter.com:443', function (done) {
// TODO: mock getPeerCertificate so we don't have to pin here
config1.trusted_cert_fingerprints = [
'66:EA:47:62:D9:B1:4F:1A:AE:89:5F:68:BA:6B:8E:BB:F8:1D:BF:8E'
'24:EB:85:86:7A:98:71:85:E6:73:DF:0C:57:18:AE:50:2D:BA:0A:69'
];

@@ -677,0 +678,0 @@ var t = new Twit(config1);