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

@ebenos/framework

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ebenos/framework - npm Package Compare versions

Comparing version 4.0.0-alpha.24 to 4.0.0-alpha.25

2

build/handlers/text.js

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

if (action) {
return action(user, message);
return action(user, message.text);
}

@@ -29,0 +29,0 @@ if (nlp) {

@@ -5,13 +5,13 @@ import User from '../models/User';

export declare function addAction<U extends User<any>>(module: Module<U>, action: (user: U, ...args: any[]) => Promise<any>): void;
export declare function addPostbackRule<U extends User<any>>(module: Module<U>, action: (user: U, payload: any, ...args: any[]) => Promise<any>, type: 'string' | 'object'): string | {
export declare function addPostbackRule<U extends User<any>>(module: Module<U>, action: (user: U, payload?: any, ...args: any[]) => Promise<any>, type: 'string' | 'object'): string | {
type: string;
};
export declare function addTextRule<U extends User<any>>(module: Module<U>, action: (user: U, payload: any, ...args: any[]) => Promise<any>, rule: RegExp | RegExp[]): void;
export declare function createPayload<U extends User<any>>(module: Module<U>, action: (user: U, payload: any, ...args: any[]) => Promise<any>, type: 'string'): string;
export declare function createPayload<U extends User<any>>(module: Module<U>, action: (user: U, payload: any, ...args: any[]) => Promise<any>, type: 'object'): {
export declare function addTextRule<U extends User<any>>(module: Module<U>, action: (user: U, payload?: string, ...args: any[]) => Promise<any>, rule: RegExp | RegExp[]): void;
export declare function createPayload<U extends User<any>>(module: Module<U>, action: (user: U, payload?: any, ...args: any[]) => Promise<any>, type: 'string'): string;
export declare function createPayload<U extends User<any>>(module: Module<U>, action: (user: U, payload?: any, ...args: any[]) => Promise<any>, type: 'object'): {
type: string;
};
export declare function createPayload<T extends Record<string, any>, U extends User<any>>(module: Module<U>, action: (user: U, payload: any, ...args: any[]) => Promise<any>, type: 'object', payloadData: T): {
export declare function createPayload<T extends Record<string, any>, U extends User<any>>(module: Module<U>, action: (user: U, payload?: any, ...args: any[]) => Promise<any>, type: 'object', payloadData: T): {
type: string;
} & T;
//# sourceMappingURL=index.d.ts.map
{
"name": "@ebenos/framework",
"version": "4.0.0-alpha.24",
"version": "4.0.0-alpha.25",
"description": "A module-based NodeJS chatbot framework.",

@@ -46,3 +46,3 @@ "main": "./build/index.js",

],
"gitHead": "7fa5f50d7720a9dea64c84fe5862b2414bdd1ff0"
"gitHead": "b74eb534ca88f234bf761162214d9b55cb2b809c"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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