@ywfe/fe-tools 1.2.1-beta.39 → 1.2.1-beta.40

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