calamarble-xhub
Advanced tools
Comparing version 0.2.4 to 0.2.5
{ | ||
"name": "calamarble-xhub", | ||
"description": "xhub signature verification for POST requests from facebook", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"main": "./src/index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -27,5 +27,3 @@ 'use strict'; | ||
const apiEndpoint = userConfig => (req, res) => { | ||
const config = _extends({}, defaultConfig, { | ||
userConfig | ||
}); | ||
const config = _extends({}, defaultConfig, userConfig); | ||
const rawBody = req.rawBody || JSON.stringify(req.body); | ||
@@ -32,0 +30,0 @@ const xHubSignature = req.headers['X-Hub-Signature']; |
5775
48