Comparing version 0.2.11 to 0.2.12
@@ -62,7 +62,7 @@ var util = require('util') | ||
return function(req, res, next){ | ||
console.log('published', req.body); | ||
console.log('published', req.body, req.text); | ||
console.log('valid signature',_this.isSignatureValid( req.rawBody, req.get('X-Hub-Signature'))); | ||
if( _this.isSignatureValid( | ||
req.rawBody, req.get('X-Hub-Signature')) | ||
req.text, req.get('X-Hub-Signature')) | ||
){ | ||
@@ -69,0 +69,0 @@ _this.stream.write(req.body); |
@@ -28,4 +28,2 @@ var stream = require('stream') | ||
console.log('28',opts); | ||
Transform.call(this, { | ||
@@ -32,0 +30,0 @@ objectMode: true |
@@ -78,3 +78,3 @@ var https = require('https') | ||
req.on('end', function(){ | ||
req.rawBody = data; | ||
req.text = data; | ||
}); | ||
@@ -81,0 +81,0 @@ next(); |
{ | ||
"name": "socializr", | ||
"version": "0.2.11", | ||
"version": "0.2.12", | ||
"description": "Read data streams from several social networks.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48804
1734