Sign In

@ai-sdk/react

Package Overview
Dependencies
Maintainers
3
Versions
1148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ai-sdk/react - npm Package Compare versions

Comparing version
4.0.63
to
4.0.64
+7
-2
dist/index.js

@@ -532,5 +532,10 @@ var __accessCheck = (obj, member, msg) => {

(_a = event == null ? void 0 : event.preventDefault) == null ? void 0 : _a.call(event);
return input ? complete(input) : void 0;
if (!input) {
return;
}
const result = complete(input);
setInput("");
return result;
},
[input, complete]
[input, complete, setInput]
);

@@ -537,0 +542,0 @@ const handleInputChange = useCallback3(

{
"name": "@ai-sdk/react",
"version": "4.0.63",
"version": "4.0.64",
"type": "module",

@@ -31,6 +31,6 @@ "license": "Apache-2.0",

"throttleit": "2.1.0",
"@ai-sdk/mcp": "2.0.30",
"@ai-sdk/mcp": "2.0.31",
"@ai-sdk/provider": "4.0.7",
"@ai-sdk/provider-utils": "5.0.26",
"ai": "7.0.60"
"ai": "7.0.61",
"@ai-sdk/provider-utils": "5.0.27"
},

@@ -37,0 +37,0 @@ "devDependencies": {

@@ -191,5 +191,11 @@ import {

event?.preventDefault?.();
return input ? complete(input) : undefined;
if (!input) {
return;
}
const result = complete(input);
setInput('');
return result;
},
[input, complete],
[input, complete, setInput],
);

@@ -196,0 +202,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display