Comparing version 2.1.6 to 2.1.7
@@ -141,3 +141,3 @@ import { ServerResponse } from 'node:http'; | ||
*/ | ||
onResponse?: (response: Response) => void; | ||
onResponse?: (response: Response) => void | Promise<void>; | ||
/** | ||
@@ -198,3 +198,3 @@ * Callback function to be called when the chat is finished streaming. | ||
*/ | ||
onResponse?: (response: Response) => void; | ||
onResponse?: (response: Response) => void | Promise<void>; | ||
/** | ||
@@ -201,0 +201,0 @@ * Callback function to be called when the completion is finished streaming. |
{ | ||
"name": "ai", | ||
"version": "2.1.6", | ||
"version": "2.1.7", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
@@ -39,3 +39,3 @@ /** | ||
*/ | ||
onResponse?: (response: Response) => void; | ||
onResponse?: (response: Response) => void | Promise<void>; | ||
/** | ||
@@ -96,3 +96,3 @@ * Callback function to be called when the chat is finished streaming. | ||
*/ | ||
onResponse?: (response: Response) => void; | ||
onResponse?: (response: Response) => void | Promise<void>; | ||
/** | ||
@@ -99,0 +99,0 @@ * Callback function to be called when the completion is finished streaming. |
@@ -41,3 +41,3 @@ import { Readable, Writable } from 'svelte/store'; | ||
*/ | ||
onResponse?: (response: Response) => void; | ||
onResponse?: (response: Response) => void | Promise<void>; | ||
/** | ||
@@ -98,3 +98,3 @@ * Callback function to be called when the chat is finished streaming. | ||
*/ | ||
onResponse?: (response: Response) => void; | ||
onResponse?: (response: Response) => void | Promise<void>; | ||
/** | ||
@@ -101,0 +101,0 @@ * Callback function to be called when the completion is finished streaming. |
@@ -41,3 +41,3 @@ import { Ref } from 'vue'; | ||
*/ | ||
onResponse?: (response: Response) => void; | ||
onResponse?: (response: Response) => void | Promise<void>; | ||
/** | ||
@@ -98,3 +98,3 @@ * Callback function to be called when the chat is finished streaming. | ||
*/ | ||
onResponse?: (response: Response) => void; | ||
onResponse?: (response: Response) => void | Promise<void>; | ||
/** | ||
@@ -101,0 +101,0 @@ * Callback function to be called when the completion is finished streaming. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
147684