Socket
Socket
Sign inDemoInstall

socializr

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

socializr - npm Package Compare versions

Comparing version 0.0.22 to 0.0.23

2

lib/providers/facebook.js

@@ -168,3 +168,3 @@ var stream = require('stream')

fb.write(req.body);
next();
res.send(true);
};

@@ -171,0 +171,0 @@ };

@@ -108,2 +108,56 @@ var stream = require('stream')

Instagram.prototype.pipeSubscription = function(){
var _this = this;
return function(req, res, next){
console.log(req.get('X-Hub-Signature'));
console.log(req.body);
fb.write(req.body);
res.send(true);
};
};
Instagram.prototype._transform = function(chunk, encoding, done){
console.log('_transforming');
var expected = 0
, ig = this
;
for( var i in chunk){
console.log(chunk[i]);
//var auth = this.oauthConnections.get( chunk.entry[i].id);
//console.log(chunk.entry[i].changes[j]);
/*expected++;
this._graphRequest( chunk.entry[i].changes[j].value.post_id, 'GET', {
access_token: auth.accessToken
}, function(res){
expected--;
console.log("post:",res.text, res.body);
if( res.error){
console.log(res.error);
}else {
fb.push(JSON.parse(res.text));
}
if( !expected){
done();
}
})
*/
}
done();
};
Instagram.prototype.getMediaByTag = function(tag){

@@ -154,11 +208,4 @@ this._apiRequest( 'tags/' + tag + '/media/recent', 'GET', {

Instagram.prototype.pipeSubscription = function(){
var _this = this;
return function(req, res, next){
next();
};
};
Instagram.prototype._apiRequest = function(endpoint, method, data, cb){

@@ -165,0 +212,0 @@

{
"name": "socializr",
"version": "0.0.22",
"version": "0.0.23",
"description": "Read data streams from several social networks.",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc