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.
Files changed (2) hide show
  1. package/dist/index.js +2 -1
  2. 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(restContent || {}).length ? restContent : undefined,
215
+ content: Object.keys(otherContent || {}).length ? otherContent : undefined,
215
216
  meta
216
217
  });
217
218
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.13.0",
2
+ "version": "0.13.1",
3
3
  "name": "modality-kit",
4
4
  "repository": {
5
5
  "type": "git",