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.6.5 to 0.7.0

lib/storage/BotConnectorStorage.js

1

lib/botbuilder.js

@@ -1,2 +0,1 @@

"use strict";
var session = require('./Session');

@@ -3,0 +2,0 @@ var dialog = require('./dialogs/Dialog');

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

if (isSecure && _this.options.appId && _this.options.appSecret) {
if (req.headers && req.headers.hasOwnProperty('authorization')) {
if (req.headers.hasOwnProperty('authorization')) {
var tmp = req.headers['authorization'].split(' ');

@@ -43,0 +43,0 @@ var buf = new Buffer(tmp[1], 'base64');

@@ -1,2 +0,1 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -206,3 +205,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return SkypeBot;
}(collection.DialogCollection));
})(collection.DialogCollection);
exports.SkypeBot = SkypeBot;

@@ -231,3 +230,3 @@ var SkypeSession = (function (_super) {

return SkypeSession;
}(session.Session));
})(session.Session);
exports.SkypeSession = SkypeSession;

@@ -1,2 +0,1 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -251,3 +250,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return SlackBot;
}(collection.DialogCollection));
})(collection.DialogCollection);
exports.SlackBot = SlackBot;

@@ -276,3 +275,3 @@ var SlackSession = (function (_super) {

return SlackSession;
}(session.Session));
})(session.Session);
exports.SlackSession = SlackSession;

@@ -1,2 +0,1 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -162,3 +161,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return TextBot;
}(collection.DialogCollection));
})(collection.DialogCollection);
exports.TextBot = TextBot;

@@ -1,2 +0,1 @@

"use strict";
exports.Data = {

@@ -3,0 +2,0 @@ SessionState: 'BotBuilder.Data.SessionState',

@@ -1,2 +0,1 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -46,3 +45,5 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

matches.forEach(function (value) {
length += value.length;
if (value) {
length += value.length;
}
});

@@ -127,3 +128,3 @@ score = length / text.length;

return CommandDialog;
}(dialog.Dialog));
})(dialog.Dialog);
exports.CommandDialog = CommandDialog;

@@ -1,2 +0,1 @@

"use strict";
(function (ResumeReason) {

@@ -30,3 +29,3 @@ ResumeReason[ResumeReason["completed"] = 0] = "completed";

return Dialog;
}());
})();
exports.Dialog = Dialog;

@@ -1,2 +0,1 @@

"use strict";
var session = require('../Session');

@@ -25,3 +24,3 @@ var dialog = require('./Dialog');

}
else {
else if (!s.messageSent()) {
s.send();

@@ -92,3 +91,3 @@ }

return DialogAction;
}());
})();
exports.DialogAction = DialogAction;

@@ -1,2 +0,1 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -56,3 +55,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return DialogCollection;
}(events.EventEmitter));
})(events.EventEmitter);
exports.DialogCollection = DialogCollection;

@@ -1,2 +0,1 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -191,3 +190,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return IntentDialog;
}(dialog.Dialog));
})(dialog.Dialog);
exports.IntentDialog = IntentDialog;

@@ -223,3 +222,3 @@ var IntentGroup = (function () {

return IntentGroup;
}());
})();
exports.IntentGroup = IntentGroup;

@@ -1,2 +0,1 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -98,3 +97,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return SimplePromptRecognizer;
}());
})();
exports.SimplePromptRecognizer = SimplePromptRecognizer;

@@ -210,3 +209,3 @@ var Prompts = (function (_super) {

return Prompts;
}(dialog.Dialog));
})(dialog.Dialog);
exports.Prompts = Prompts;

@@ -213,0 +212,0 @@ function beginPrompt(ses, args) {

@@ -1,2 +0,1 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -29,3 +28,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return SimpleDialog;
}(dialog.Dialog));
})(dialog.Dialog);
exports.SimpleDialog = SimpleDialog;

@@ -118,4 +118,20 @@ var __extends = (this && this.__extends) || function (d, b) {

Session.prototype.endDialog = function (result) {
var args = [];
for (var _i = 1; _i < arguments.length; _i++) {
args[_i - 1] = arguments[_i];
}
var ss = this.sessionState;
var r = result || {};
var m;
var r = {};
if (result) {
if (typeof result === 'string') {
m = this.createMessage(result, args);
}
else if (result.hasOwnProperty('text') || result.hasOwnProperty('channelData')) {
m = result;
}
else {
r = result;
}
}
if (!r.hasOwnProperty('resumed')) {

@@ -127,2 +143,5 @@ r.resumed = dialog.ResumeReason.completed;

if (ss.callstack.length > 0) {
if (m) {
this.send(m);
}
var cur = ss.callstack[ss.callstack.length - 1];

@@ -134,3 +153,3 @@ var d = this.dialogs.getDialog(cur.id);

else {
this.send();
this.send(m);
if (r.error) {

@@ -137,0 +156,0 @@ this.emit('error', r.error);

@@ -1,2 +0,1 @@

"use strict";
var utils = require('../utils');

@@ -27,3 +26,3 @@ var MemoryStorage = (function () {

return MemoryStorage;
}());
})();
exports.MemoryStorage = MemoryStorage;

@@ -1,2 +0,1 @@

"use strict";
var sprintf = require('sprintf-js');

@@ -3,0 +2,0 @@ function clone(obj) {

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

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

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

Sorry, the diff of this file is too big to display

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