socializr
Advanced tools
Comparing version 0.0.28 to 0.0.29
@@ -17,3 +17,8 @@ var util = require('util') | ||
PubSubConnection.prototype.isSignatureValid = function(data, signature){ | ||
console.log(this.appSecret); | ||
if( !data) { | ||
throw new Error('Required parameter `data` cannot be `undefined`.'); | ||
} | ||
if( !signature) { | ||
throw new Error('Required parameter `signature` cannot be `undefined`.'); | ||
} | ||
var hmac = crypto.createHmac('sha1', this.appSecret); | ||
@@ -27,3 +32,2 @@ hmac.update( | ||
module.exports = PubSubConnection; |
{ | ||
"name": "socializr", | ||
"version": "0.0.28", | ||
"version": "0.0.29", | ||
"description": "Read data streams from several social networks.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
33556
1260