modality-kit 0.13.0 → 0.13.1
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
|
@@ -208,10 +208,11 @@ function withErrorHandling(fn, operation) {
|
|
|
208
208
|
// src/util_response.ts
|
|
209
209
|
function formatSuccessResponse(content, meta) {
|
|
210
210
|
const { instructions, ...restContent } = content;
|
|
211
|
+
const otherContent = JSON.parse(JSON.stringify(restContent || {}));
|
|
211
212
|
return JSON.stringify({
|
|
212
213
|
success: true,
|
|
213
214
|
instructions,
|
|
214
|
-
content: Object.keys(
|
|
215
|
+
content: Object.keys(otherContent || {}).length ? otherContent : undefined,
|
|
215
216
|
meta
|
|
216
217
|
});
|
|
217
218
|
}
|
package/package.json
CHANGED