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

botframework

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

botframework - npm Package Compare versions

Comparing version 0.8.1 to 0.8.2

8

dist/es5/src/facebook/server.js

@@ -45,6 +45,6 @@ "use strict";

FacebookServer.prototype.verifyRequest = function (request, reply) {
var hub = request.query.hub;
if (hub.mode === FACEBOOK_HUB_MODE.SUBSCRIBE) {
if (hub.verify_token === this.settings.fb.verify_token) {
return reply(hub.challenge);
var query = request.query;
if (query['hub.mode'] === FACEBOOK_HUB_MODE.SUBSCRIBE) {
if (query['hub.verify_token'] === this.settings.fb.verify_token) {
return reply(query['hub.challenge']);
}

@@ -51,0 +51,0 @@ }

{
"name": "botframework",
"version": "0.8.1",
"version": "0.8.2",
"description": "Framework for messaging bots",

@@ -5,0 +5,0 @@ "main": "./dist/es5/src/bot.js",

@@ -55,6 +55,6 @@ import {IBotSettings} from '../interfaces';

private verifyRequest(request: Request, reply: IReply) {
let hub: IFacebookVerifyHubParams = request.query.hub;
if (hub.mode === FACEBOOK_HUB_MODE.SUBSCRIBE) {
if (hub.verify_token === this.settings.fb.verify_token) {
return reply(hub.challenge);
let query: any = request.query;
if (query['hub.mode'] === FACEBOOK_HUB_MODE.SUBSCRIBE) {
if (query['hub.verify_token'] === this.settings.fb.verify_token) {
return reply(query['hub.challenge']);
}

@@ -61,0 +61,0 @@ }

Sorry, the diff of this file is not supported yet

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