modality-kit 0.15.2 → 0.15.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -59,8 +59,9 @@ function mergeResponsesContent(content) {
|
|
|
59
59
|
}
|
|
60
60
|
function formatSuccessResponse(successData, content) {
|
|
61
61
|
const data = structuredClone(successData);
|
|
62
|
+
const isError = data.success != null ? !data.success : false;
|
|
62
63
|
const result = {
|
|
63
|
-
isError
|
|
64
|
+
isError,
|
|
64
65
|
content: [
|
|
65
66
|
{
|
|
66
67
|
type: "text",
|
package/package.json
CHANGED