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

@magicul/react-chat-stream

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@magicul/react-chat-stream - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

2

dist/hooks/useChatStream.js

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

_h.trys.push([2, 5, 7, 8]);
return [4 /*yield*/, fetchAndUpdateAIResponse(formInput)];
return [4 /*yield*/, fetchAndUpdateAIResponse(message !== null && message !== void 0 ? message : formInput)];
case 3:

@@ -170,0 +170,0 @@ addedMessage_1 = _h.sent();

{
"name": "@magicul/react-chat-stream",
"description": "A React hook that lets you easily integrate your custom ChatGPT-like chat in React.",
"version": "0.3.0",
"version": "0.3.1",
"main": "dist/index.js",

@@ -6,0 +6,0 @@ "types": "dist/index.d.ts",

@@ -61,3 +61,3 @@ import { ChangeEvent, FormEvent, useState } from 'react';

try {
const addedMessage = await fetchAndUpdateAIResponse(formInput);
const addedMessage = await fetchAndUpdateAIResponse(message ?? formInput);
await input.handlers.onMessageAdded?.(addedMessage);

@@ -64,0 +64,0 @@ } catch {

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