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

.vscode/launch.json

2

dist/es5/src/facebook/bot.js

@@ -73,3 +73,3 @@ "use strict";

.then(function (user) {
return _this.botController.newUser(user, reply);
return _this.botController.newUser({ user: user, ref: messaging.optin.ref }, reply);
});

@@ -76,0 +76,0 @@ }

@@ -40,2 +40,6 @@ export interface IBotUser {

}
export interface INewUserMessage {
user: IBotUser;
ref: string;
}
export declare class BOT_REPLY_LIST_ACTION_TYPE {

@@ -62,3 +66,3 @@ static LINK: string;

export interface IBotController {
newUser?(user: IBotUser, reply: IBotReply): void;
newUser?(msg: INewUserMessage, reply: IBotReply): void;
textMessage?(textMessage: ITextMessage, reply: IBotReply): void;

@@ -65,0 +69,0 @@ imageMessage?(imageMessage: IImageMessage, reply: IBotReply): void;

{
"name": "botframework",
"version": "0.6.1",
"version": "0.7.0",
"description": "Framework for messaging bots",

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

}
}
}

@@ -66,3 +66,3 @@ import {IBotController, IBotSettings, IBotUser, ITextMessage, IBotReply, IBotReplyListItem} from '../interfaces'

.then( (user: IBotUser) => {
return this.botController.newUser(user, reply);
return this.botController.newUser({user, ref: messaging.optin.ref}, reply);
});

@@ -69,0 +69,0 @@ }

@@ -50,2 +50,8 @@

export interface INewUserMessage {
user: IBotUser;
ref: string;
}
// enum

@@ -81,3 +87,3 @@ // currently very aligned to facebook

export interface IBotController {
newUser?(user: IBotUser, reply: IBotReply): void;
newUser?(msg: INewUserMessage, reply: IBotReply): void;
textMessage?(textMessage: ITextMessage, reply: IBotReply): void;

@@ -84,0 +90,0 @@ imageMessage?(imageMessage: IImageMessage, 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