calamarble-xhub
Advanced tools
Comparing version 0.1.8 to 0.1.9
{ | ||
"name": "calamarble-xhub", | ||
"description": "xhub signature verification for POST requests from facebook", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"main": "./src/index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -21,3 +21,8 @@ 'use strict'; | ||
const xHubSignature = req.headers['X-Hub-Signature']; | ||
const serverSignature = signSha1(config.xHubSecret, rawBody); | ||
let serverSignature; | ||
try { | ||
serverSignature = signSha1(config.xHubSecret, rawBody); | ||
} catch (e) { | ||
serverSignature = e.message; | ||
} | ||
const result = _extends({}, req.headers, { | ||
@@ -24,0 +29,0 @@ 'my-debug-header': serverSignature |
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
3089
44