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

botnaut

Package Overview
Dependencies
Maintainers
2
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

botnaut - npm Package Compare versions

Comparing version 0.29.0-beta.9 to 0.29.0-beta.10

2

package.json
{
"name": "botnaut",
"version": "0.29.0-beta.9",
"version": "0.29.0-beta.10",
"description": "Facebook Messenger Chatbot Framework",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -40,3 +40,3 @@ /*

*
* blocks.code('exampleBlock', function* (req, res, postBack, context) {
* blocks.code('exampleBlock', function* (req, res, postBack, context, params) {
* yield res.run('responseBlockName');

@@ -43,0 +43,0 @@ * });

@@ -168,6 +168,7 @@ /*

*/
function proceedCallback (state, rootPostBack) {
function proceedCallback (state, isText, rootPostBack) {
return function (callbackContext = null) {
if (!state[ACTION]
|| !isText
|| callbackContext === state[CONTEXT]

@@ -202,5 +203,6 @@ || state[ACTION] === `${this.path === '/' ? '' : this.path}${this.routePath}`) {

*/
function addCallbackQuickReply (state) {
function addCallbackQuickReply (state, isText) {
return function (replyText) {
if (!state[ACTION]
|| !isText
|| state[ACTION] === `${this.path === '/' ? '' : this.path}${this.routePath}`) {

@@ -225,5 +227,7 @@ return this;

const isText = req.isText();
Object.assign(res, {
addCallbackQuickReply: addCallbackQuickReply(req.state),
proceedCallback: proceedCallback(req.state, postBack),
addCallbackQuickReply: addCallbackQuickReply(req.state, isText),
proceedCallback: proceedCallback(req.state, isText, postBack),
setCallback

@@ -230,0 +234,0 @@ });

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