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

prompt-anything

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prompt-anything - npm Package Compare versions

Comparing version 2.0.1 to 3.0.0

2

build/interfaces/Channel.d.ts
import { VisualInterface } from "./Visual";
import { MessageInterface } from "./Message";
export interface ChannelInterface<MessageType extends MessageInterface> {
send: (format: VisualInterface) => Promise<MessageType>;
send: (format: VisualInterface) => Promise<MessageType | MessageType[]>;
}

@@ -78,3 +78,3 @@ /// <reference types="node" />

*/
sendVisual(visual: VisualInterface | VisualInterface[], channel: ChannelInterface<MessageType>): Promise<MessageType | MessageType[]>;
sendVisual(visual: VisualInterface | VisualInterface[], channel: ChannelInterface<MessageType>): Promise<(MessageType | MessageType[])[] | MessageType>;
/**

@@ -86,3 +86,3 @@ * Send the visual generated by the visual generator

*/
sendUserVisual(channel: ChannelInterface<MessageType>, data: DataType): Promise<MessageType | MessageType[]>;
sendUserVisual(channel: ChannelInterface<MessageType>, data: DataType): Promise<(MessageType | MessageType[])[] | MessageType>;
/**

@@ -89,0 +89,0 @@ * Runs the Prompt function for every message collected.

{
"name": "prompt-anything",
"version": "2.0.1",
"version": "3.0.0",
"description": "Framework to build a a tree of modular and interactable prompts for anything",

@@ -5,0 +5,0 @@ "main": "build/index.js",

@@ -40,3 +40,3 @@

interface ChannelInterface<MessageType extends MessageInterface> {
send: (visual: VisualInterface) => Promise<MessageType>;
send: (visual: VisualInterface) => Promise<MessageType|MessageType[]>;
}

@@ -43,0 +43,0 @@ ```

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