@ywfe/fe-tools 1.2.1-beta.33 → 1.2.1-beta.34

Sign up to get free protection for your applications and to get access to all the features.
@@ -8782,15 +8782,12 @@ function userInputToJson(_a) {
8782
8782
  function JSON2String(_a) {
8783
8783
  var input = _a.input;
8784
8784
  var data = input.data;
8785
- var result = { content: '' };
8786
8785
  try {
8787
8786
  var str = JSON.stringify(data);
8788
- result.content = '```json' + str + 'json```';
8789
- return result;
8787
+ return '```json' + str + 'json```';
8790
8788
  }
8791
8789
  catch (error) {
8792
- result.content = '```json' + '{}' + 'json```';
8793
- return result;
8790
+ return '```json' + '{}' + 'json```';
8794
8791
  }
8795
8792
  }
8796
8793