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

prague

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prague - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

19

dist/Prompt.js

@@ -50,20 +50,3 @@ "use strict";

Prompt.prototype.confirm = function (promptKey, text, action) {
var _this = this;
this.add(promptKey, {
matcher: function (input) { return input.text.toLowerCase() === 'yes'; },
action: action,
creator: function (input) {
_this.setPromptKey(input, promptKey);
input.reply({
type: 'message',
from: { id: 'MyBot' },
text: text,
suggestedActions: { actions: ['Yes', 'No'].map(function (choice) { return ({
type: 'postBack',
title: choice,
value: choice
}); }) }
});
}
});
return this.choice(promptKey, text, ['Yes', 'No'], action);
};

@@ -70,0 +53,0 @@ Prompt.prototype.rule = function () {

2

package.json
{
"name": "prague",
"version": "0.2.1",
"version": "0.2.2",
"description": "experimental Rx-based bot technology",

@@ -5,0 +5,0 @@ "main": "dist/prague.js",

@@ -88,20 +88,4 @@ import { CardAction, IChatInput, Activity } from './Chat';

confirm(promptKey: string, text: string, action: Action<S>) {
this.add(promptKey, {
matcher: (input) => input.text.toLowerCase() === 'yes', // TO DO we can do better than this
action,
creator: (input) => {
this.setPromptKey(input, promptKey);
input.reply({
type: 'message',
from: { id: 'MyBot' },
text,
suggestedActions: { actions: ['Yes', 'No'].map<CardAction>(choice => ({
type: 'postBack',
title: choice,
value: choice
})) }
});
}
});
confirm(promptKey: string, text: string, action: Action<S>) {
return this.choice(promptKey, text, ['Yes', 'No'], action);
}

@@ -108,0 +92,0 @@

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