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

botbuilder

Package Overview
Dependencies
Maintainers
1
Versions
631
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

botbuilder - npm Package Compare versions

Comparing version 0.10.0 to 0.10.1

6

lib/bots/BotConnectorBot.js

@@ -221,9 +221,9 @@ var __extends = (this && this.__extends) || function (d, b) {

switch (message.type) {
case "botAddedToConversation":
case "BotAddedToConversation":
msg = this.options.groupWelcomeMessage;
break;
case "userAddedToConversation":
case "UserAddedToConversation":
msg = this.options.userWelcomeMessage;
break;
case "endOfConversation":
case "EndOfConversation":
msg = this.options.goodbyeMessage;

@@ -230,0 +230,0 @@ break;

@@ -164,3 +164,3 @@ var __extends = (this && this.__extends) || function (d, b) {

if (args.promptType == PromptType.choice) {
var style = args.listStyle || ListStyle.auto;
var style = args.listStyle;
if (style == ListStyle.auto) {

@@ -256,27 +256,3 @@ var maxBtns = Channel.maxButtons(session);

args.enumValues = entities.EntityRecognizer.expandChoices(choices);
args.listStyle = args.listStyle || ListStyle.auto;
var connector = '', list;
switch (args.listStyle) {
case ListStyle.list:
list = '\n ';
args.enumValues.forEach(function (value, index) {
list += connector + (index + 1) + '. ' + value;
connector = '\n ';
});
args.prompt += list;
break;
case ListStyle.inline:
list = ' ';
args.enumValues.forEach(function (value, index) {
list += connector + (index + 1) + '. ' + value;
if (index == args.enumValues.length - 2) {
connector = index == 0 ? ' or ' : ', or ';
}
else {
connector = ', ';
}
});
args.prompt += list;
break;
}
args.listStyle = args.hasOwnProperty('listStyle') ? args.listStyle : ListStyle.auto;
beginPrompt(session, args);

@@ -283,0 +259,0 @@ };

@@ -5,3 +5,3 @@ {

"description": "Bot Builder is a dialog system for building rich bots on virtually any platform.",
"version": "0.10.0",
"version": "0.10.1",
"license": "MIT",

@@ -8,0 +8,0 @@ "keywords": [

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