Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

calamarble-xhub

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

calamarble-xhub - npm Package Compare versions

Comparing version 0.1.8 to 0.1.9

2

package.json
{
"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

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