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.16.0 to 0.17.0

.vscode/launch.json

14

dist/es5/src/facebook/bot.js

@@ -149,2 +149,16 @@ "use strict";

break;
case interfaces_2.FB_ATTACHMENT_TYPE.AUDIO:
var audioMessage = {
user: user, link: { url: attachment.payload.url },
type: interfaces_1.BOT_REQUEST_TYPE.FACEBOOK
};
this.botController.audioMessage(audioMessage, reply) || null;
break;
case interfaces_2.FB_ATTACHMENT_TYPE.VIDEO:
var videoMessage = {
user: user, link: { url: attachment.payload.url },
type: interfaces_1.BOT_REQUEST_TYPE.FACEBOOK
};
this.botController.videoMessage(videoMessage, reply) || null;
break;
case interfaces_2.FB_ATTACHMENT_TYPE.LOCATION:

@@ -151,0 +165,0 @@ var location_1 = {

2

dist/es5/src/interfaces.d.ts

@@ -74,2 +74,4 @@ import * as Promise from 'bluebird';

imageMessage?(request: IBotRequest, reply: IBotReply): void;
audioMessage?(request: IBotRequest, reply: IBotReply): void;
videoMessage?(request: IBotRequest, reply: IBotReply): void;
linkMessage?(request: IBotRequest, reply: IBotReply): void;

@@ -76,0 +78,0 @@ locationMessage?(request: IBotRequest, reply: IBotReply): void;

4

package.json
{
"name": "botframework",
"version": "0.16.0",
"version": "0.17.0",
"description": "Framework for messaging bots",

@@ -43,2 +43,2 @@ "main": "./dist/es5/src/bot.js",

}
}
}

@@ -142,2 +142,16 @@ import {IBotController, BOT_REQUEST_TYPE, IBotSettings, IBotUser, IBotRequest, IBotReply, IBotReplyListItemAction, IBotReplyListItem} from '../interfaces'

break;
case FB_ATTACHMENT_TYPE.AUDIO:
let audioMessage = {
user, link: {url: attachment.payload.url},
type: BOT_REQUEST_TYPE.FACEBOOK
};
this.botController.audioMessage(audioMessage, reply) || null;
break;
case FB_ATTACHMENT_TYPE.VIDEO:
let videoMessage = {
user, link: {url: attachment.payload.url},
type: BOT_REQUEST_TYPE.FACEBOOK
};
this.botController.videoMessage(videoMessage, reply) || null;
break;
case FB_ATTACHMENT_TYPE.LOCATION:

@@ -144,0 +158,0 @@ let location: IBotRequest = {

@@ -96,2 +96,4 @@ import * as Promise from 'bluebird';

imageMessage?(request: IBotRequest, reply: IBotReply): void;
audioMessage?(request: IBotRequest, reply: IBotReply): void;
videoMessage?(request: IBotRequest, reply: IBotReply): void;
linkMessage?(request: IBotRequest, reply: IBotReply): void;

@@ -98,0 +100,0 @@ locationMessage?(request: IBotRequest, reply: IBotReply): void;

Sorry, the diff of this file is not supported yet

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