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.12 to 0.29.0-beta.13

.nyc_output/7a78c3ae9577dcf71cfe9442b4c8ffb8.json

2

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

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

@@ -29,3 +29,10 @@ /*

return Object.assign(replyData, { action });
const condition = reply.hasCondition
? eval(reply.conditionFn) // eslint-disable-line no-eval
: () => true;
return Object.assign(replyData, {
action,
condition
});
});

@@ -95,5 +102,7 @@ }

if (replies) {
res.text(text, replies.map(reply => Object.assign({}, reply, {
title: getLanguageText(reply.title, req.state.lang)
})));
res.text(text, replies
.filter(reply => reply.condition(req, res))
.map(reply => Object.assign({}, reply, {
title: getLanguageText(reply.title, req.state.lang)
})));
} else {

@@ -100,0 +109,0 @@ res.text(text);

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